I attempted to build QT as static, I used the following for ./configure (sample found in tutorial):
./configure -release -opensource -static -platform linux-g++ -no-ssse3 -no-sse4.1 -no-sse4.2 -no-avx -nomake examples -no-nis -no-cups -no-gtkstyle -no-opengl -no-openvg -no-glib -nomake tests
./configure -release -opensource -static -platform linux-g++ -no-ssse3 -no-sse4.1 -no-sse4.2 -no-avx -nomake examples -no-nis -no-cups -no-gtkstyle -no-opengl -no-openvg -no-glib -nomake tests
To copy to clipboard, switch view to plain text mode
When trying to run a app configured as
CONFIG += console
CONFIG -= app_bundle
CONFIG += static
CONFIG += console
CONFIG -= app_bundle
CONFIG += static
To copy to clipboard, switch view to plain text mode
but it fails to run in a environment without QT installed, failing with:
error while loading shared libraries: libQt5sql.so.5: cannot open shared object file: No such file or directory
error while loading shared libraries: libQt5sql.so.5: cannot open shared object file: No such file or directory
To copy to clipboard, switch view to plain text mode
Is my ./configure wrong, or is it the .pro config?
Bookmarks