I want to make a static build of Qt, in order to create a stand-along program, and not dependant of Qt libs; however, when running
Code:
configure -static -release -no-exceptions
it gives me these errors:

Code:
g++ -c -o qmakebuiltins.o -DUNICODE -std=c++11 -ffunction-sections -g  -IC:/Qt/Static/src/qt-everywhere-src-5.10.0/qtbase/qmake -IC:/Qt/Static/src/qt-everywhere-src-5.10.0/qtbase/qmake/library -IC:/Qt/Static/src/qt-everywhere-src-5.10.0/qtbase/qmake/generators -IC:/Qt/Static/src/qt-everywhere-src-5.10.0/qtbase/qmake/generators/unix -IC:/Qt/Static/src/qt-everywhere-src-5.10.0/qtbase/qmake/generators/win32 -IC:/Qt/Static/src/qt-everywhere-src-5.10.0/qtbase/qmake/generators/mac -IC:/Qt/Static/src/qt-everywhere-src-5.10.0/qtbase/include -IC:/Qt/Static/src/qt-everywhere-src-5.10.0/qtbase/include/QtCore -IC:/Qt/Static/src/qt-everywhere-src-5.10.0/qtbase/include/QtCore/5.10.0 -IC:/Qt/Static/src/qt-everywhere-src-5.10.0/qtbase/include/QtCore/5.10.0/QtCore -I../src/corelib/global -IC:/Qt/Static/src/qt-everywhere-src-5.10.0/qtbase/mkspecs/win32-g++ -DQT_VERSION_STR="5.10.0" -DQT_VERSION_MAJOR=5  -DQT_VERSION_MINOR=10  -DQT_VERSION_PATCH=0  -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL -DQT_NO_FOREACH C:/Qt/Static/src/qt-everywhere-src-5.10.0/qtbase/qmake/library/qmakebuiltins.cpp
C:/Qt/Static/src/qt-everywhere-src-5.10.0/qtbase/qmake/library/qmakebuiltins.cpp: In member function 'QByteArray QMakeEvaluator::getCommandOutput(const QString&, int*) const':
C:/Qt/Static/src/qt-everywhere-src-5.10.0/qtbase/qmake/library/qmakebuiltins.cpp:504:104: error: '_popen' was not declared in this scope
                                + QLatin1String(" && ") + args).toLocal8Bit().constData(), QT_POPEN_READ)) {
                                                                                                        ^
C:/Qt/Static/src/qt-everywhere-src-5.10.0/qtbase/qmake/library/qmakebuiltins.cpp:512:32: error: '_pclose' was not declared in this scope
         int ec = QT_PCLOSE(proc);
                                ^
Makefile:254: recipe for target 'qmakebuiltins.o' failed
mingw32-make: *** [qmakebuiltins.o] Error 1

Did anyone experience that too? How can I fix it? Thanks in advance Smile
Use this guide for windows: https://wiki.qt.io/Building_a_static_Qt_for_Windows_using_MinGW
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement