mingw compile qtcreator 4.3 error
-
Could you tell me how to fix that ?
I clone 4.3 version from https://github.com/loaden/qtcreator
mingw32-make[4]: Entering directory 'E:/workspace/qtcreator/src/libs/sqlite' gcc -x c-header -c -fno-keep-inline-dllexport -O2 -w -DUNICODE -D_UNICODE -DWIN32 -D'RELATIVE_PLUGIN_PATH="../lib/qtcreator/plugins"' -D'RELATIVE_LIBEXEC_PATH="."' -D'RELATIVE_DATA_PATH="../share/qtcreator"' -D'RELATIVE_DOC_PATH="../share/doc/qtcreator"' -DIDE_LIBRARY_BASENAME=\"lib\" -DQT_CREATOR -DQT_NO_CAST_TO_ASCII -DQT_RESTRICTED_CAST_FROM_ASCII -DQT_DISABLE_DEPRECATED_BEFORE=0x050600 -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DSQLITE_API=__declspec(dllexport) -DBUILD_SQLITE_LIBRARY -DSQLITE_THREADSAFE=2 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_ENABLE_COLUMN_METADATA -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -I/src/libs/sqlite -I../../../src -I../../../src -I../../libs -IE:/workspace/qtcreator/tools -I../../plugins -I. -I../3rdparty/sqlite -ID:/Qt/5.10.1/mingw53_32/include -ID:/Qt/5.10.1/mingw53_32/include/QtWidgets -ID:/Qt/5.10.1/mingw53_32/include/QtGui -ID:/Qt/5.10.1/mingw53_32/include/QtANGLE -ID:/Qt/5.10.1/mingw53_32/include/QtConcurrent -ID:/Qt/5.10.1/mingw53_32/include/QtCore -Irelease -ID:/Qt/5.10.1/mingw53_32/mkspecs/win32-g++ -o release/qtcreator_pch.h.gch/c ../../shared/qtcreator_pch.h /usr/bin/sh: -c: line 0: syntax error near unexpected token `(' /usr/bin/sh: -c: line 0: `gcc -x c-header -c -fno-keep-inline-dllexport -O2 -w -DUNICODE -D_UNICODE -DWIN32 -D'RELATIVE_PLUGIN_PATH="../lib/qtcreator/plugins"' -D'RELATIVE_LIBEXEC_PATH="."' -D'RELATIVE_DATA_PATH="../share/qtcreator"' -D'RELATIVE_DOC_PATH="../share/doc/qtcreator"' -DIDE_LIBRARY_BASENAME=\"lib\" -DQT_CREATOR -DQT_NO_CAST_TO_ASCII -DQT_RESTRICTED_CAST_FROM_ASCII -DQT_DISABLE_DEPRECATED_BEFORE=0x050600 -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DSQLITE_API=__declspec(dllexport) -DBUILD_SQLITE_LIBRARY -DSQLITE_THREADSAFE=2 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_ENABLE_COLUMN_METADATA -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -I/src/libs/sqlite -I../../../src -I../../../src -I../../libs -IE:/workspace/qtcreator/tools -I../../plugins -I. -I../3rdparty/sqlite -ID:/Qt/5.10.1/mingw53_32/include -ID:/Qt/5.10.1/mingw53_32/include/QtWidgets -ID:/Qt/5.10.1/mingw53_32/include/QtGui -ID:/Qt/5.10.1/mingw53_32/include/QtANGLE -ID:/Qt/5.10.1/mingw53_32/include/QtConcurrent -ID:/Qt/5.10.1/mingw53_32/include/QtCore -Irelease -ID:/Qt/5.10.1/mingw53_32/mkspecs/win32-g++ -o release/qtcreator_pch.h.gch/c ../../shared/qtcreator_pch.h' Makefile.Release:874: recipe for target 'release/qtcreator_pch.h.gch/c' failed mingw32-make[4]: *** [release/qtcreator_pch.h.gch/c] Error 1 mingw32-make[4]: Leaving directory 'E:/workspace/qtcreator/src/libs/sqlite' Makefile:36: recipe for target 'release' failed mingw32-make[3]: *** [release] Error 2 mingw32-make[3]: Leaving directory 'E:/workspace/qtcreator/src/libs/sqlite' Makefile:336: recipe for target 'sub-sqlite-make_first' failed mingw32-make[2]: *** [sub-sqlite-make_first] Error 2 mingw32-make[2]: Leaving directory 'E:/workspace/qtcreator/src/libs' Makefile:45: recipe for target 'sub-libs-make_first-ordered' failed mingw32-make[1]: *** [sub-libs-make_first-ordered] Error 2 mingw32-make[1]: Leaving directory 'E:/workspace/qtcreator/src' Makefile:41: recipe for target 'sub-src-make_first-ordered' failed mingw32-make: *** [sub-src-make_first-ordered] Error 2
-
@Lewis-Chan It's calling gcc for your compiler but you state that you are using mingw. So it looks like you don't have your kits setup properly in qt creator.
Fix your kit and it should work. :)
-
@ambershark
To say mingw, I mean GNU gcc toolchain on Windows. So it can find gcc/g++ -
@Lewis-Chan Ok... so this line here
/usr/bin/sh: -c: line 0: syntax error near unexpected token `('
is almost exclusively caused by a messed up kit in qt creator.
I don't use creator myself but I've seen it in so many threads posted here that I know that is what is causing your issue.
Check out your kits and you should see an issue with it not finding your compiler, fix that and you should be good to go.
-
you are aware that you cloned a non-official repository, are you?
-
Thanks, guys. I know what's going on . For the first time, I just build the whole src in command prompt, using qmake -r and mingw32-make . The error would occur.
But for the second time, I open the project in qtcreator IDE, use IDE to build. It'll be ok.
-
@ambershark said in mingw compile qtcreator 4.3 error:
It's calling gcc for your compiler but you state that you are using mingw.
MinGW is "Minimalist GNU for Windows" -- it provides GCC for Windows
@Lewis-Chan, how did you install MinGW?
@aha_1980 said in mingw compile qtcreator 4.3 error:
you are aware that you cloned a non-official repository, are you?
To add to @aha_1980, the official repository is http://code.qt.io/cgit/qt-creator/qt-creator.git/
-
@JKSH Yea I use mingw all the time when I build stuff for windows but my compilers are usually like
mingw32-g++
and not justg++
, so I thought it was weird to see justgcc
in his output.I am not big on windows development so I can't say I've used mingw in the last 3 or 4 years so maybe they have changed that, or maybe it's just aliased or something now.