Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Not Evaluated
-
Resolution: Done
-
Affects Version/s: 1.15.0, 1.16.0
-
Fix Version/s: None
-
Component/s: Build & Distribution of Qbs
-
Labels:None
-
Platform/s:
-
Commits:66067b05faa48efe7e5c6eb81e12766b997ca65d (qbs/qbs/1.18)
Description
A static build of QBS, using qmake, fails in Linux:
g++ -Wl,-z,origin '-Wl,-rpath,$ORIGIN/../lib' -Wl,--require-defined=qbs_static_plugin_register_qbs_cpp_scanner -Wl,--require-defined=qbs_static_plugin_register_qbs_qt_scanner -Wl,--require-defined=qbs_static_plugin_register_clangcompilationdbgenerator -Wl,--require-defined=qbs_static_plugin_register_iarewgenerator -Wl,--require-defined=qbs_static_plugin_register_keiluvgenerator -Wl,--require-defined=qbs_static_plugin_register_makefilegenerator -Wl,--require-defined=qbs_static_plugin_register_visualstudiogenerator -Wl,-O1 -Wl,--gc-sections -o ../../../bin/qbs consolelogger.o coloredoutput.o commandlineparser.o commandpool.o commandlineoption.o commandlineoptionpool.o parsercommand.o main.o ctrlchandler.o application.o session.o sessionpacket.o sessionpacketreader.o stdinreader.o status.o consoleprogressobserver.o commandlinefrontend.o qbstool.o moc_application.o moc_sessionpacketreader.o moc_stdinreader.o moc_commandlinefrontend.o -L/<<PKGBUILDDIR>>/src/app/qbs/../../../lib -lqbscore -L/<<PKGBUILDDIR>>/lib -lqbsscriptengine /usr/lib/libQt5Network.a /usr/lib/libQt5Xml.a -L/<<PKGBUILDDIR>>/src/plugins/../../lib/qbs/plugins -lqbs_cpp_scanner -lqbs_qt_scanner -lclangcompilationdbgenerator -liarewgenerator -lkeiluvgenerator -lmakefilegenerator -lvisualstudiogenerator /usr/lib/libQt5Core.a -lm /usr/lib/libqtpcre2.a /usr/lib/x86_64-linux-gnu/libdl.so -lpthread
/usr/bin/ld: cannot find -lqbs_cpp_scanner
/usr/bin/ld: cannot find -lqbs_qt_scanner
/usr/bin/ld: cannot find -lclangcompilationdbgenerator
/usr/bin/ld: cannot find -liarewgenerator
/usr/bin/ld: cannot find -lkeiluvgenerator
/usr/bin/ld: cannot find -lmakefilegenerator
/usr/bin/ld: cannot find -lvisualstudiogenerator
collect2: error: ld returned 1 exit status
(full build logs are available here)
I fix it locally with this change:
--- a/qbs/qbs.pro +++ b/qbs/qbs.pro @@ -35,7 +35,7 @@ src_app.subdir = src/app src_app.depends = corelib src_libexec.subdir = src/libexec src_plugins.subdir = src/plugins -CONFIG(shared, static|shared) { +CONFIG(static, static|shared) { src_plugins.depends = corelib src_app.depends += src_plugins }
which is most likely not correct. It really seems to me that we should remove the conditional on that block; or maybe it's needed only on some platforms?
Attachments
Issue Links
- relates to
-
QBS-1534 CI needs to cover static Qt builds
-
- Closed
-