[Interest] mingw & Qt 5.2.0 problems (building for Android)
Igor Mironchik
igor.mironchik at gmail.com
Tue Dec 17 08:22:30 CET 2013
I use the latest mingw but he can't compile next program:
#include <stdio.h>
int main( int argc, char ** argv )
{
FILE * f = _popen( argv[ 1 ], "r" );
}
g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=c++0x -fno-exceptions
-frtti -Wall -Wextra main.cpp
main.cpp: In function 'int main(int, char**)':
main.cpp:6:39: error: '_popen' was not declared in this scope
FILE * f = _popen( argv[ 1 ], "r" );
> Hi.
>
> I encountered the following problem.
>
> mingw32-make[5]: Entering directory
> 'c:/Thirdparty/Android/Qt/5.2.0/qttools/src/
> linguist/lrelease'
> g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=c++0x -fno-exceptions
> -frtti -W
> all -Wextra -DUNICODE -DQT_NO_XKBCOMMON -DQT_NO_CAST_FROM_ASCII
> -DQT_NO_CAST_TO_
> ASCII -DPROEVALUATOR_CUMULATIVE -DPROEVALUATOR_INIT_PROPS
> -DQT_NO_EXCEPTIONS -DQ
> T_NO_DEBUG -DQT_BOOTSTRAP_LIB -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE
> -DQT_NO_CAST_T
> O_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_LIBRARY
> -DQT_NO_QOBJECT -DQT_N
> O_SYSTEMLOCALE -DQT_NO_THREAD -DQT_NO_UNICODETABLES
> -DQT_NO_USING_NAMESPACE -DQT
> _NO_DEPRECATED -DQT_NO_TRANSLATION
> -DQT_QMAKE_LOCATION="C:/Thirdparty/Android/Qt
> /5.2.0/qtbase/bin/qmake" -I. -I"..\shared"
> -I"C:\Thirdparty\Android\Qt\5.2.0\qtb
> ase\include" -I"C:\Thirdparty\Android\Qt\5.2.0\qtbase\include\QtCore"
> -I"C:\Thir
> dparty\Android\Qt\5.2.0\qtbase\include\QtXml"
> -I"C:\Thirdparty\Android\Qt\5.2.0\
> qtbase\include\QtCore\5.2.0"
> -I"C:\Thirdparty\Android\Qt\5.2.0\qtbase\include\Qt
> Core\5.2.0\QtCore"
> -I"C:\Thirdparty\Android\Qt\5.2.0\qtbase\include\QtXml\5.2.0"
> -I"C:\Thirdparty\Android\Qt\5.2.0\qtbase\include\QtXml\5.2.0\QtXml"
> -I"C:\Third
> party\Android\Qt\5.2.0\qtbase\include"
> -I"C:\Thirdparty\Android\Qt\5.2.0\qtbase\
> mkspecs\win32-g++" -o .obj\release\qmakeglobals.o
> ..\shared\qmakeglobals.cpp
> ..\shared\qmakeglobals.cpp: In member function 'bool
> QMakeGlobals::initPropertie
> s()':
> ..\shared\qmakeglobals.cpp:324:85: error: '_popen' was not declared in
> this scope
>
> + QLatin1String("
> -query")).toLocal8Bit()
> , "r")) {
>
> ^
> ..\shared\qmakeglobals.cpp:328:23: error: '_pclose' was not declared
> in this scop
> e
> QT_PCLOSE(proc);
> ^
>
> How can I fix it? Thanks.
>
--
Best Regards,
Igor Mironchik.
More information about the Interest
mailing list