Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946

Can't compile qt 5.5.0 statically



  • Hi. I wana compile qt 5.5.0 statically with MSVC2010:

     ..\..\..\source\configure -debug-and-release -opensource -confirm-license -opengl dynamic -static -static-runtime -nomake too
    ls -nomake examples -nomake tests -skip qt3d -skip qtwebengine -skip qtwebkit -skip qtwebkit-examples -skip qtwayland -skip qta
    ndroidextras -skip qtmacextras -skip qtx11extras -target xp -prefix "D:\myqt\5.5.0\install\msvc2010\32bit-static\"
    

    And here is the output:

    D:\myqt\5.5.0\source\qtbase\mkspecs\win32-g++ -ID:\myqt\5.5.0\source\qtbase/tools/shared -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DP
    ROEVALUATOR_FULL -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_COMPRESS -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT
    _NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_JSON_READONLY -DQT_NO_STANDARDPATHS D:\myqt\5.5.0\sou
    rce\qtbase/src/corelib/io/qtextstream.cpp
    g++ -c -o qiodevice.o -DUNICODE -ffunction-sections -g  -ID:\myqt\5.5.0\source\qtbase/qmake -ID:\myqt\5.5.0\source\qtbase/qmake
    /library -ID:\myqt\5.5.0\source\qtbase/qmake/generators -ID:\myqt\5.5.0\source\qtbase/qmake/generators/unix -ID:\myqt\5.5.0\sou
    rce\qtbase/qmake/generators/win32 -ID:\myqt\5.5.0\source\qtbase/qmake/generators/mac -ID:\myqt\5.5.0\source\qtbase/qmake/genera
    tors/integrity -ID:\myqt\5.5.0\source\qtbase\include -ID:\myqt\5.5.0\source\qtbase\include/QtCore -ID:\myqt\5.5.0\source\qtbase
    \include/QtCore/5.5.0 -ID:\myqt\5.5.0\source\qtbase\include/QtCore/5.5.0/QtCore -I../src/corelib/global -DHAVE_QCONFIG_CPP -ID:
    \myqt\5.5.0\source\qtbase\mkspecs\win32-g++ -ID:\myqt\5.5.0\source\qtbase/tools/shared -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPRO
    EVALUATOR_FULL -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_COMPRESS -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_N
    O_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_JSON_READONLY -DQT_NO_STANDARDPATHS D:\myqt\5.5.0\sourc
    e\qtbase/src/corelib/io/qiodevice.cpp
    g++ -c -o qdebug.o -DUNICODE -ffunction-sections -g  -ID:\myqt\5.5.0\source\qtbase/qmake -ID:\myqt\5.5.0\source\qtbase/qmake/li
    brary -ID:\myqt\5.5.0\source\qtbase/qmake/generators -ID:\myqt\5.5.0\source\qtbase/qmake/generators/unix -ID:\myqt\5.5.0\source
    \qtbase/qmake/generators/win32 -ID:\myqt\5.5.0\source\qtbase/qmake/generators/mac -ID:\myqt\5.5.0\source\qtbase/qmake/generator
    s/integrity -ID:\myqt\5.5.0\source\qtbase\include -ID:\myqt\5.5.0\source\qtbase\include/QtCore -ID:\myqt\5.5.0\source\qtbase\in
    clude/QtCore/5.5.0 -ID:\myqt\5.5.0\source\qtbase\include/QtCore/5.5.0/QtCore -I../src/corelib/global -DHAVE_QCONFIG_CPP -ID:\my
    qt\5.5.0\source\qtbase\mkspecs\win32-g++ -ID:\myqt\5.5.0\source\qtbase/tools/shared -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVA
    LUATOR_FULL -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_COMPRESS -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_G
    EOM_VARIANT -DQT_NO_DATASTREAM -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_JSON_READONLY -DQT_NO_STANDARDPATHS D:\myqt\5.5.0\source\q
    tbase/src/corelib/io/qdebug.cpp
    g++ -c -o qmalloc.o -DUNICODE -ffunction-sections -g  -ID:\myqt\5.5.0\source\qtbase/qmake -ID:\myqt\5.5.0\source\qtbase/qmake/l
    ibrary -ID:\myqt\5.5.0\source\qtbase/qmake/generators -ID:\myqt\5.5.0\source\qtbase/qmake/generators/unix -ID:\myqt\5.5.0\sourc
    e\qtbase/qmake/generators/win32 -ID:\myqt\5.5.0\source\qtbase/qmake/generators/mac -ID:\myqt\5.5.0\source\qtbase/qmake/generato
    rs/integrity -ID:\myqt\5.5.0\source\qtbase\include -ID:\myqt\5.5.0\source\qtbase\include/QtCore -ID:\myqt\5.5.0\source\qtbase\i
    nclude/QtCore/5.5.0 -ID:\myqt\5.5.0\source\qtbase\include/QtCore/5.5.0/QtCore -I../src/corelib/global -DHAVE_QCONFIG_CPP -ID:\m
    yqt\5.5.0\source\qtbase\mkspecs\win32-g++ -ID:\myqt\5.5.0\source\qtbase/tools/shared -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEV
    ALUATOR_FULL -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_COMPRESS -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_
    GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_JSON_READONLY -DQT_NO_STANDARDPATHS D:\myqt\5.5.0\source\
    qtbase/src/corelib/global/qmalloc.cpp
    g++ -c -o qglobal.o -DUNICODE -ffunction-sections -g  -ID:\myqt\5.5.0\source\qtbase/qmake -ID:\myqt\5.5.0\source\qtbase/qmake/l
    ibrary -ID:\myqt\5.5.0\source\qtbase/qmake/generators -ID:\myqt\5.5.0\source\qtbase/qmake/generators/unix -ID:\myqt\5.5.0\sourc
    e\qtbase/qmake/generators/win32 -ID:\myqt\5.5.0\source\qtbase/qmake/generators/mac -ID:\myqt\5.5.0\source\qtbase/qmake/generato
    rs/integrity -ID:\myqt\5.5.0\source\qtbase\include -ID:\myqt\5.5.0\source\qtbase\include/QtCore -ID:\myqt\5.5.0\source\qtbase\i
    nclude/QtCore/5.5.0 -ID:\myqt\5.5.0\source\qtbase\include/QtCore/5.5.0/QtCore -I../src/corelib/global -DHAVE_QCONFIG_CPP -ID:\m
    yqt\5.5.0\source\qtbase\mkspecs\win32-g++ -ID:\myqt\5.5.0\source\qtbase/tools/shared -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEV
    ALUATOR_FULL -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_COMPRESS -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_
    GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_JSON_READONLY -DQT_NO_STANDARDPATHS D:\myqt\5.5.0\source\
    qtbase/src/corelib/global/qglobal.cpp
    D:\myqt\5.5.0\source\qtbase/src/corelib/global/qglobal.cpp: In static member function 'static QString QSysInfo::currentCpuArchi
    tecture()':
    D:\myqt\5.5.0\source\qtbase/src/corelib/global/qglobal.cpp:2378:5: error: 'GetNativeSystemInfo' was not declared in this scope;
     did you mean 'GetSystemInfo'?
     2378 |     GetNativeSystemInfo(&info);
          |     ^~~~~~~~~~~~~~~~~~~
          |     GetSystemInfo
    Makefile:298: recipe for target 'qglobal.o' failed
    mingw32-make: *** [qglobal.o] Error 1
    Building qmake failed, return code 2
    

  • Lifetime Qt Champion

    The only thing I can say is that you have to debug it by your own - GetNativeSystemInfo is available in WinXP so the compiler should find it when the correct headers are included (see my link). I would at least try the latest Qt5.5 version, maybe it was a problem with 5.5.0


Log in to reply