Unsolved problem compiling static qt with mingw32
-
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 -
Hi,
Maybe a silly question but, why not use the MinGW version provided by Qt ?
That way you ensure you use a proven version.