>>> Qt statically build program is fail. >>> >>> libQt5Core.a depend on libpcre16 >>> >>> libQt5Gui.a depend on -lopengl32, -lglu32 >>> >>> What do I? >> >> You link to those libraries. >> >>> ../ThirdLibary/windows_mingw_static/qt/lib/libQt5Core.a(qregularexpression.o >>> ):qregularexpression.cpp:(.text+0x261): undefined reference to `pcre16_exec' >> >>> ../ThirdLibary/windows_mingw_static/qt/lib/libQt5Core.a(qeventdispatcher_win >>> .o):qeventdispatcher_win.cpp:(.text+0x8db): undefined reference to >>> `_imp__WSAAsyncSelect@16' >> >> If you're doing a static link, you need to link to the indirect >> dependencies. >> The full library list is in the .prl and .pc files for each library. Looks >> like cmake doesn't automatically add that... >> >> This doesn't look like a Qt bug, so please drop the >> developm...@qt-project.org >> mailing list when replying. This is a normal user error. > > Shouldn't Qt5Config.cmake provide those interface libraries for static > Qt libraries? It seems to me it should, and since Qt is shipping its > Qt5Config.cmake these days, that would imply that the problem can/should > be fixed in Qt itself...
https://bugreports.qt.io/browse/QTBUG-38913 _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest