Skip to content

Instantly share code, notes, and snippets.

@Wohlstand
Created July 5, 2015 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wohlstand/30a3f2410e5781c825fb to your computer and use it in GitHub Desktop.
Save Wohlstand/30a3f2410e5781c825fb to your computer and use it in GitHub Desktop.
Build static Qt
#Hot to build static Qt on Linux
#For Linux Mint
./configure -static -release -nomake examples -nomake tools -prefix ~/Qt/Qt-5.5_static -qt-xcb -qt-libpng -no-libjpeg -qt-zlib -qt-pcre -gtkstyle -opensource -confirm-license -gtkstyle -opengl -qt-freetype -c++11
make
make install
#For CentOS
./configure -static -release -nomake examples -nomake tools -no-compile-examples -prefix ~/Qt/Qt-5.5_static -qt-xcb -qt-xkbcommon -qt-libpng -qt-zlib -qt-pcre -gtkstyle -opensource -confirm-license -gtkstyle -opengl -qt-freetype -c++11
#for Mac OS X:
./configure -static -release -nomake examples -nomake tools -prefix ~/Qt/5.5_static -qt-libpng -no-libjpeg -qt-zlib -qt-pcre -gtkstyle -opensource -confirm-license -gtkstyle -opengl -qt-freetype
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment