Cannot build Qt Creator with Mingw64 and static Qt5



  • Hello!

    I'm trying to build Qt Creator with a version of Qt5 stable static that I built before this. More to try and see if everything works. And it seems not...

    First I tried to build from git, than from stable but no change. I'm using the same mingw toolchain build that I used for building Qt5.

    It looks to me like there's a problem with linking but I don't know if a lib is missing or if it's the order of linking... Anyway, this is the point that fails:
    @g++ -Wl,-s -Wl,-subsystem,console -mthreads -o ......\bin\buildoutputparser.exe release/main.o release/outputprocessor.o release/buildoutputparser_plugin_import.o release/moc_outputprocessor.o -LD:/Downloads/QT/src/qt-creator-opensource-src-3.1.0/build/lib/qtcreator -lProjectExplorer -lQtSupport -lQmakeProjectManager -lCore -lTextEditor -lCppTools -lQmlJSTools -lResourceEditor -lQtcSsh -lCPlusPlus -lLanguageUtils -lQmlJS -lAggregation -lExtensionSystem -lUtils -LD:/Downloads/QT/src/qt-creator-opensource-src-3.1.0/build/lib/qtcreator/plugins/QtProject -LD:/Qt5/lib -LD:\Qt5\lib -lQt5Concurrent -LD:/Qt5/plugins/accessible -lqtaccessiblewidgets -lQt5Widgets -LD:/Qt5/plugins/bearer -lqgenericbearer -lqnativewifibearer -lQt5Network -ldnsapi -lcrypt32 -LD:/Qt5/plugins/platforms -lqwindows -lwinspool -lshlwapi -lQt5PlatformSupport -LD:/Qt5/plugins/imageformats -lqdds -lqicns -lqico -lqjp2 -lqmng -lqtga -lqtiff -lqwbmp -lqwebp -lQt5Gui -lcomdlg32 -loleaut32 -limm32 -lwinmm -lglu32 -lopengl32 -lgdi32 -lQt5Core -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32 -lz -lsicuin -lsicuuc -lsicudt -v

    <skipped gcc config, COMPILER_PATH and COLLECT_GCC_OPTIONS because of lenght>

    Thread model: posix
    gcc version 4.9.0 (x86_64-posix-seh-rev1, Built by MinGW-W64 project)

    COMPILER_PATH=D:/Downloads/QT/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.9.0/;D:/Downloads/QT/mingw64/bin/../libexec/gcc/;D:/Downloads/QT/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.0/../../../../x86_64-w64-mingw32/bin/

    LIBRARY_PATH=D:/Downloads/QT/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.0/;D:/Downloads/QT/mingw64/bin/../lib/gcc/;D:/Downloads/QT/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.0/../../../../x86_64-w64-mingw32/lib/../lib/;D:/Downloads/QT/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.0/../../../../lib/;D:/Downloads/QT/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.0/../../../../x86_64-w64-mingw32/lib/;D:/Downloads/QT/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.0/../../../

    release/outputprocessor.o:outputprocessor.cpp:(.text+0xfe): undefined reference to __imp__ZN15ProjectExplorer8OsParserC1Ev' release/outputprocessor.o:outputprocessor.cpp:(.text+0x114): undefined reference to__imp__ZN19QmakeProjectManager11QMakeParserC1Ev'
    release/outputprocessor.o:outputprocessor.cpp:(.text+0x121): undefined reference to __imp__ZN15ProjectExplorer13IOutputParser18appendOutputParserEPS0_' release/outputprocessor.o:outputprocessor.cpp:(.text+0x139): undefined reference to__imp__ZN15ProjectExplorer13GnuMakeParserC1Ev'
    release/outputprocessor.o:outputprocessor.cpp:(.text+0x157): undefined reference to __imp__ZN9QtSupport8QtParserC1Ev' release/outputprocessor.o:outputprocessor.cpp:(.text+0x1be): undefined reference to__imp__ZN15ProjectExplorer8OsParser8stdErrorERK7QString'
    release/outputprocessor.o:outputprocessor.cpp:(.text+0x2cc): undefined reference to __imp__ZTVN15ProjectExplorer8OsParserE' release/outputprocessor.o:outputprocessor.cpp:(.text+0x2de): undefined reference to__imp__ZN15ProjectExplorer13IOutputParserD2Ev'
    release/outputprocessor.o:outputprocessor.cpp:(.text+0x392): undefined reference to __imp__ZN15ProjectExplorer9GccParserC1Ev' release/outputprocessor.o:outputprocessor.cpp:(.text+0x3b5): undefined reference to__imp__ZN15ProjectExplorer10MsvcParserC1Ev'
    release/outputprocessor.o:outputprocessor.cpp:(.text+0x3cd): undefined reference to __imp__ZN15ProjectExplorer11ClangParserC1Ev' release/outputprocessor.o:outputprocessor.cpp:(.text+0x3e1): undefined reference to__imp__ZTVN15ProjectExplorer8OsParserE'
    release/outputprocessor.o:outputprocessor.cpp:(.text+0x3f3): undefined reference to __imp__ZN15ProjectExplorer13IOutputParserD2Ev' D:/Downloads/QT/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.0/../../../../x86_64-w64-mingw32/bin/ld.exe: release/outputprocessor.o: bad reloc address 0xc in section.xdata'
    collect2.exe: error: ld returned 1 exit status@

    Thanks!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.