Build QtCreator from source code



  • Hello, I try compile QtCreator, from github. I checkout branch 4.3 and reset head to commit v4.3.0-beta1. I use own compiled Qt 5.8.0 and Mingw 64bit.

    mingw32-make[3]: Entering directory 'D:/tools/build-qtcreator-Qt_5_8_1_64bit_Mingw-Release/src/libs/aggregation'
    D:/tools/mingw/mingw64/bin/mingw32-make -f Makefile.Release
    mingw32-make[3]: Entering directory 'D:/tools/build-qtcreator-Qt_5_8_1_64bit_Mingw-Release/src/libs/ssh'
    D:/tools/mingw/mingw64/bin/mingw32-make -f Makefile.Release
    mingw32-make[3]: Entering directory 'D:/tools/build-qtcreator-Qt_5_8_1_64bit_Mingw-Release/src/libs/sqlite'
    D:/tools/mingw/mingw64/bin/mingw32-make -f Makefile.Release
    mingw32-make[3]: Entering directory 'D:/tools/build-qtcreator-Qt_5_8_1_64bit_Mingw-Release/src/libs/utils'
    D:/tools/mingw/mingw64/bin/mingw32-make -f Makefile.Release
    mingw32-make[4]: Entering directory 'D:/tools/build-qtcreator-Qt_5_8_1_64bit_Mingw-Release/src/libs/sqlite'
    mingw32-make[4]: Entering directory 'D:/tools/build-qtcreator-Qt_5_8_1_64bit_Mingw-Release/src/libs/aggregation'
    mingw32-make[4]: Nothing to be done for 'first'.
    mingw32-make[4]: Leaving directory 'D:/tools/build-qtcreator-Qt_5_8_1_64bit_Mingw-Release/src/libs/aggregation'
    mingw32-make[3]: Leaving directory 'D:/tools/build-qtcreator-Qt_5_8_1_64bit_Mingw-Release/src/libs/aggregation'
    gcc -x c-header -c -pipe -fno-keep-inline-dllexport -O2 -w -DUNICODE -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 -ID:/tools/qt-creator/src -ID:/tools/qt-creator/src/libs -ID:/tools/qt-creator/tools -ID:/tools/qt-creator/src/plugins -ID:/tools/qt-creator/src/libs/sqlite -ID:/tools/qt-creator/src/libs/3rdparty/sqlite -ID:/tools/Qt/5.8.0/include -ID:/tools/Qt/5.8.0/include/QtWidgets -ID:/tools/Qt/5.8.0/include/QtGui -ID:/tools/Qt/5.8.0/include/QtConcurrent -ID:/tools/Qt/5.8.0/include/QtCore -Irelease -ID:/tools/Qt/5.8.0/mkspecs/win32-g++  -o release/qtcreator_pch.h.gch/c D:/tools/qt-creator/src/shared/qtcreator_pch.h
    g++ -x c++-header -c -pipe -fno-keep-inline-dllexport -O2 -std=gnu++1y -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -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 -ID:/tools/qt-creator/src -ID:/tools/qt-creator/src/libs -ID:/tools/qt-creator/tools -ID:/tools/qt-creator/src/plugins -ID:/tools/qt-creator/src/libs/sqlite -ID:/tools/qt-creator/src/libs/3rdparty/sqlite -ID:/tools/Qt/5.8.0/include -ID:/tools/Qt/5.8.0/include/QtWidgets -ID:/tools/Qt/5.8.0/include/QtGui -ID:/tools/Qt/5.8.0/include/QtConcurrent -ID:/tools/Qt/5.8.0/include/QtCore -Irelease -ID:/tools/Qt/5.8.0/mkspecs/win32-g++  -o release/qtcreator_pch.h.gch/c++ D:/tools/qt-creator/src/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 -pipe -fno-keep-inline-dllexport -O2 -w -DUNICODE -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 -ID:/tools/qt-creator/src -ID:/tools/qt-creator/src/libs -ID:/tools/qt-creator/tools -ID:/tools/qt-creator/src/plugins -ID:/tools/qt-creator/src/libs/sqlite -ID:/tools/qt-creator/src/libs/3rdparty/sqlite -ID:/tools/Qt/5.8.0/include -ID:/tools/Qt/5.8.0/include/QtWidgets -ID:/tools/Qt/5.8.0/include/QtGui -ID:/tools/Qt/5.8.0/include/QtConcurrent -ID:/tools/Qt/5.8.0/include/QtCore -Irelease -ID:/tools/Qt/5.8.0/mkspecs/win32-g++  -o release/qtcreator_pch.h.gch/c D:/tools/qt-creator/src/shared/qtcreator_pch.h'
    /usr/bin/sh: -c: line 0: syntax error near unexpected token `('
    /usr/bin/sh: -c: line 0: `g++ -x c++-header -c -pipe -fno-keep-inline-dllexport -O2 -std=gnu++1y -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -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 -ID:/tools/qt-creator/src -ID:/tools/qt-creator/src/libs -ID:/tools/qt-creator/tools -ID:/tools/qt-creator/src/plugins -ID:/tools/qt-creator/src/libs/sqlite -ID:/tools/qt-creator/src/libs/3rdparty/sqlite -ID:/tools/Qt/5.8.0/include -ID:/tools/Qt/5.8.0/include/QtWidgets -ID:/tools/Qt/5.8.0/include/QtGui -ID:/tools/Qt/5.8.0/include/QtConcurrent -ID:/tools/Qt/5.8.0/include/QtCore -Irelease -ID:/tools/Qt/5.8.0/mkspecs/win32-g++  -o release/qtcreator_pch.h.gch/c++ D:/tools/qt-creator/src/shared/qtcreator_pch.h'
    Makefile.Release:852: recipe for target 'release/qtcreator_pch.h.gch/c' failed
    mingw32-make[4]: *** [release/qtcreator_pch.h.gch/c] Error 1
    mingw32-make[4]: *** Waiting for unfinished jobs....
    Makefile.Release:950: recipe for target 'release/qtcreator_pch.h.gch/c++' failed
    mingw32-make[4]: Leaving directory 'D:/tools/build-qtcreator-Qt_5_8_1_64bit_Mingw-Release/src/libs/sqlite'
    mingw32-make[4]: *** [release/qtcreator_pch.h.gch/c++] Error 1
    Makefile:34: recipe for target 'release' failed
    mingw32-make[3]: *** [release] Error 2
    mingw32-make[3]: Leaving directory 'D:/tools/build-qtcreator-Qt_5_8_1_64bit_Mingw-Release/src/libs/sqlite'
    cd flamegraph/ && ( test -e Makefile || D:/tools/Qt/5.8.0/bin/qmake.exe -o Makefile D:/tools/qt-creator/src/libs/flamegraph/flamegraph.pro -spec win32-g++ CONFIG+=release ) && D:/tools/mingw/mingw64/bin/mingw32-make -f Makefile 
    Makefile:334: recipe for target 'sub-sqlite-make_first' failed
    mingw32-make[2]: *** [sub-sqlite-make_first] Error 2
    mingw32-make[2]: *** Waiting for unfinished jobs....
    

    Do I have wrong setting build tools or I try build QtCreator from another commit?

    mk



  • same problem. is there any solution?


  • Moderators

    @achilles78 Which Qt version? Which QtCreator version? Which compiler on which platform? What is the problem exactly?



  • @jsulm
    qt 5.9.1
    qt-everywhere-opensource-src-5.9.1.tar.xz
    mingw-builds 5.3.0 64bit
    x86_64-5.3.0-release-posix-seh-rt_v4-rev0.7z
    msys2
    msys2-base-x86_64-20170918.tar.xz
    OS
    Windows 10 Enterprise 64bit simplified chinese
    QtCreator
    4.4.0 and 4.4.1 qt-creator-opensource-src-4.4.0.tar.gz qt-creator-opensource-src-4.4.1.tar.gz
    icu
    icu4c-54_1-src.zip
    openssl
    openssl-1.0.2l.tar.gz

    i have built qt 5.9.1 successfully according to http://www.kineticsystem.org/mingw
    sh $QT_SRC_DIR/configure -v -debug-and-release -prefix $QT_PREFIX -opensource -confirm-license -platform win32-g++ -skip webkit -shared -opengl desktop -openssl -icu -plugin-sql-sqlite -plugin-sql-odbc -nomake tests -nomake examples

    however failed in building QtCreator 4.4.0 or 4.4.1.

    same error message

    cp -f ../../../lib/qtcreator/QtcSsh4.dll ../../../bin
    mingw32-make[4]: Leaving directory 'C:/msys2/local64/src/qt-creator-opensource-src-4.4.1/build/src/libs/ssh'
    mingw32-make[3]: Leaving directory 'C:/msys2/local64/src/qt-creator-opensource-src-4.4.1/build/src/libs/ssh'
    cd sqlite/ && ( test -e Makefile || C:/msys2/local64/dst/qt/bin/qmake.exe -o Makefile C:/msys2/local64/src/qt-creator-opensource-src-4.4.1/src/libs/sqlite/sqlite.pro CONFIG+=release ) && C:/msys2/mingw64/bin/mingw32-make -f Makefile release
    mingw32-make[3]: Entering directory 'C:/msys2/local64/src/qt-creator-opensource-src-4.4.1/build/src/libs/sqlite'
    C:/msys2/mingw64/bin/mingw32-make -f Makefile.Release
    mingw32-make[4]: Entering directory 'C:/msys2/local64/src/qt-creator-opensource-src-4.4.1/build/src/libs/sqlite'
    gcc -x c-header -c -fno-keep-inline-dllexport -pipe -O2 -w -DUNICODE -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 -IC:/msys2/local64/src/qt-creator-opensource-src-4.4.1/src -IC:/msys2/local64/src/qt-creator-opensource-src-4.4.1/src/libs -IC:/msys2/local64/src/qt-creator-opensource-src-4.4.1/tools -IC:/msys2/local64/src/qt-creator-opensource-src-4.4.1/src/plugins -isystem C:/msys2/local64/src/qt-creator-opensource-src-4.4.1/src/libs/sqlite -IC:/msys2/local64/src/qt-creator-opensource-src-4.4.1/src/libs/3rdparty/sqlite -isystem C:/msys2/local64/dst/qt/include/QtWidgets -isystem C:/msys2/local64/dst/qt/include/QtGui -isystem C:/msys2/local64/dst/qt/include/QtConcurrent -isystem C:/msys2/local64/dst/qt/include/QtCore -Irelease -IC:/msys2/local64/dst/qt/mkspecs/win32-g++  -o release/qtcreator_pch.h.gch/c C:/msys2/local64/src/qt-creator-opensource-src-4.4.1/src/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 -pipe -O2 -w -DUNICODE -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 -IC:/msys2/local64/src/qt-creator-opensource-src-4.4.1/src -IC:/msys2/local64/src/qt-creator-opensource-src-4.4.1/src/libs -IC:/msys2/local64/src/qt-creator-opensource-src-4.4.1/tools -IC:/msys2/local64/src/qt-creator-opensource-src-4.4.1/src/plugins -isystem C:/msys2/local64/src/qt-creator-opensource-src-4.4.1/src/libs/sqlite -IC:/msys2/local64/src/qt-creator-opensource-src-4.4.1/src/libs/3rdparty/sqlite -isystem C:/msys2/local64/dst/qt/include/QtWidgets -isystem C:/msys2/local64/dst/qt/include/QtGui -isystem C:/msys2/local64/dst/qt/include/QtConcurrent -isystem C:/msys2/local64/dst/qt/include/QtCore -Irelease -IC:/msys2/local64/dst/qt/mkspecs/win32-g++  -o release/qtcreator_pch.h.gch/c C:/msys2/local64/src/qt-creator-opensource-src-4.4.1/src/shared/qtcreator_pch.h'
    Makefile.Release:272: 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 'C:/msys2/local64/src/qt-creator-opensource-src-4.4.1/build/src/libs/sqlite'
    Makefile:36: recipe for target 'release' failed
    mingw32-make[3]: *** [release] Error 2
    mingw32-make[3]: Leaving directory 'C:/msys2/local64/src/qt-creator-opensource-src-4.4.1/build/src/libs/sqlite'
    Makefile:949: recipe for target 'sub-sqlite-release' failed
    mingw32-make[2]: *** [sub-sqlite-release] Error 2
    mingw32-make[2]: Leaving directory 'C:/msys2/local64/src/qt-creator-opensource-src-4.4.1/build/src/libs'
    Makefile:967: recipe for target 'sub-libs-release_ordered' failed
    mingw32-make[1]: *** [sub-libs-release_ordered] Error 2
    mingw32-make[1]: Leaving directory 'C:/msys2/local64/src/qt-creator-opensource-src-4.4.1/build/src'
    Makefile:548: recipe for target 'sub-src-release_ordered' failed
    mingw32-make: *** [sub-src-release_ordered] Error 2
    
    
    


  • When this error comes, could you try make instead of make -j8 ?
    I assumed you are using make -j8 from the reference link you have given.



  • @name_qt said in Build QtCreator from source code:

    When this error comes, could you try make instead of make -j8 ?
    I assumed you are using make -j8 from the reference link you have given.
    the command is mingw32-make without argument "-j8"


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.