Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. mingw compile qtcreator 4.3 error
Forum Updated to NodeBB v4.3 + New Features

mingw compile qtcreator 4.3 error

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
8 Posts 4 Posters 2.6k Views 2 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.
  • L Offline
    L Offline
    Lewis Chan
    wrote on last edited by
    #1

    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
    
    A aha_1980A 2 Replies Last reply
    0
    • L Lewis Chan

      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
      
      A Offline
      A Offline
      ambershark
      wrote on last edited by
      #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. :)

      My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

      L 1 Reply Last reply
      0
      • A ambershark

        @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. :)

        L Offline
        L Offline
        Lewis Chan
        wrote on last edited by
        #3

        @ambershark
        To say mingw, I mean GNU gcc toolchain on Windows. So it can find gcc/g++

        A 1 Reply Last reply
        0
        • L Lewis Chan

          @ambershark
          To say mingw, I mean GNU gcc toolchain on Windows. So it can find gcc/g++

          A Offline
          A Offline
          ambershark
          wrote on last edited by ambershark
          #4

          @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.

          My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

          1 Reply Last reply
          0
          • L Lewis Chan

            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
            
            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Lewis-Chan

            you are aware that you cloned a non-official repository, are you?

            Qt has to stay free or it will die.

            JKSHJ 1 Reply Last reply
            0
            • L Offline
              L Offline
              Lewis Chan
              wrote on last edited by
              #6

              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.

              1 Reply Last reply
              0
              • aha_1980A aha_1980

                @Lewis-Chan

                you are aware that you cloned a non-official repository, are you?

                JKSHJ Offline
                JKSHJ Offline
                JKSH
                Moderators
                wrote on last edited by
                #7

                @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/

                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                A 1 Reply Last reply
                1
                • JKSHJ JKSH

                  @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/

                  A Offline
                  A Offline
                  ambershark
                  wrote on last edited by
                  #8

                  @JKSH Yea I use mingw all the time when I build stuff for windows but my compilers are usually like mingw32-g++ and not just g++, so I thought it was weird to see just gcc 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.

                  My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

                  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