Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. problem compiling static qt with mingw32
Qt 6.11 is out! See what's new in the release blog

problem compiling static qt with mingw32

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 1.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mastupristiM Offline
    mastupristiM Offline
    mastupristi
    wrote on last edited by
    #1

    I have configured qt build in an msys console with

    configure -developer-build -opensource -nomake examples -nomake tests -static -release -platform win32-g++ -prefix "C:\Qt5.5.1-static-mingw32"
    

    the I run mingw32-make and the error is:

    mingw32-make[3]: Entering directory 'c:/Qt-Src/qt5/qtbase/src/tools/moc'
    c:/MinGW/bin/mingw32-make -f Makefile.Release
    mingw32-make[4]: Entering directory 'c:/Qt-Src/qt5/qtbase/src/tools/moc'
    g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=c++0x -fno-exceptions -frtti -Wall -Wextra -Werror -Wno-error=cpp -Wno-error=deprecated-declarations -Wno-error=strict-overflow -DUNICODE -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_MOC -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_COMPRESS-DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_BOOTSTRAP_LIB -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -DQT_NO_TRANSLATION -I. -I. -I../../../include -I../../../include/QtCore -I../../../include/QtXml -I../../../include/QtCore/5.5.1 -I../../../include/QtCore/5.5.1/QtCore -I../../../include/QtXml/5.5.1 -I../../../include/QtXml/5.5.1/QtXml -I../../../mkspecs/win32-g++  -o .obj/release/moc.o moc.cpp
    In file included from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cmath:44:0,
                     from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\random:38,
                     from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\stl_algo.h:66,
                     from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\algorithm:62,
                     from ../../../include/QtCore/../../src/corelib/global/qglobal.h:85,
                     from ../../../include/QtCore/qglobal.h:1,
                     from ../../../include/QtCore/../../src/corelib/tools/qalgorithms.h:37,
                     from ../../../include/QtCore/qalgorithms.h:1,
                     from ../../../include/QtCore/../../src/corelib/tools/qvector.h:37,
                     from ../../../include/QtCore/qvector.h:1,
                     from ../../../include/QtCore/../../src/corelib/tools/qstack.h:37,
                     from ../../../include/QtCore/qstack.h:1,
                     from parser.h:37,
                     from moc.h:37,
                     from moc.cpp:34:
    c:\mingw\include\math.h: In function 'float hypotf(float, float)':
    c:\mingw\include\math.h:635:30: error: '_hypot' was not declared in this scope
     { return (float)(_hypot (x, y)); }
                                  ^
    

    I cannot figure out what is wrong.

    best regards
    Max

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Maybe a silly question but, why not use the MinGW version provided by Qt ?

      That way you ensure you use a proven version.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved