Static build of project
-
I want to build a program with static binding and add @QMAKE_LFLAGS + = -static@ in the .pro file, but prints an error message
/usr/bin/ld: cannot find -lQt5WebEngineWidgets
/usr/bin/ld: cannot find -lQt5Widgets
/usr/bin/ld: cannot find -lQt5WebEngine
/usr/bin/ld: cannot find -lQt5Quick
/usr/bin/ld: cannot find -lQt5Multimedia
/usr/bin/ld: cannot find -lQt5Gui
/usr/bin/ld: cannot find -lQt5Qml
/usr/bin/ld: cannot find -lQt5Network
/usr/bin/ld: cannot find -lQt5Core
/usr/bin/ld: cannot find -lGL -
Do you have also a static compilation of Qt libs?
The standard download is coming with dynamic libs. If you want to do a static build of your application, you need to start with a build of static Qt libs.