[Interest] QtCreator minimum Ubuntu version for build?

Henry Skoglund fromqt at tungware.se
Mon Nov 26 21:18:22 CET 2018


On 2018-11-26 19:32, roland at logikalsolutions.com wrote:
> 
> All,
> 
> I went to the wiki here: https://wiki.qt.io/Building_Qt_Creator_from_Git
> 
> and creator will not build on 14.04 though 5.9.7 does. Ubuntu 14.04 is 
> still LTS until 04/2019, has QtCreator already left it behind?
> 
> gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.4)
> 
> developer at developer-U14-04-64-bit-dev--VirtualBox:~/qtcreator-src$ mkdir 
> qt-creator-build
> developer at developer-U14-04-64-bit-dev--VirtualBox:~/qtcreator-src$ qmake -v
> QMake version 3.1
> Using Qt version 5.9.7 in /home/developer/Qt-5.9.7/lib
> developer at developer-U14-04-64-bit-dev--VirtualBox:~/qtcreator-src$ cd 
> qt-creator-build
> developer at developer-U14-04-64-bit-dev--VirtualBox:~/qtcreator-src/qt-creator-build$ 
> qmake ../qt-creator/qtcreator.pro
> Info: creating stash file 
> /home/developer/qtcreator-src/qt-creator-build/.qmake.stash
> Info: creating cache file 
> /home/developer/qtcreator-src/qt-creator-build/.qmake.cache
> developer at developer-U14-04-64-bit-dev--VirtualBox:~/qtcreator-src/qt-creator-build$ 
> ls
> Makefile  qdoc_wrapper.sh
> developer at developer-U14-04-64-bit-dev--VirtualBox:~/qtcreator-src/qt-creator-build$ 
> make
> cd src/ && ( test -e Makefile || /home/developer/Qt-5.9.7/bin/qmake -o 
> Makefile /home/developer/qtcreator-src/qt-creator/src/src.pro ) && make 
> -f Makefile
> make[1]: Entering directory 
> `/home/developer/qtcreator-src/qt-creator-build/src'
> cd shared/qbs/src/lib/corelib/ && ( test -e Makefile || 
> /home/developer/Qt-5.9.7/bin/qmake -o Makefile 
> /home/developer/qtcreator-src/qt-creator/src/shared/qbs/src/lib/corelib/corelib.pro 
> ) && make -f Makefile
> Project MESSAGE: This project is using private headers and will 
> therefore be tied to this specific Qt module build version.
> Project MESSAGE: Running this project against other versions of the Qt 
> modules may crash at any arbitrary point.
> Project MESSAGE: This is not a bug, but a result of using Qt internals. 
> You have been warned!
> make[2]: Entering directory 
> `/home/developer/qtcreator-src/qt-creator-build/src/shared/qbs/src/lib/corelib' 
> 
> g++ -c -pipe -O2 -std=gnu++1y -fvisibility=hidden 
> -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQBS_LIBRARY 
> -DQT_NO_CAST_FROM_ASCII -DQT_NO_PROCESS_COMBINED_ARGUMENT_START 
> -DQBS_VERSION=\"1.12.2\" 
> -DQBS_RELATIVE_LIBEXEC_PATH=\"../libexec/qtcreator\" 
> -DQBS_ENABLE_PROJECT_FILE_UPDATES -DQT_NO_DEBUG -DQT_SCRIPT_LIB 
> -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB 
> -I/home/developer/qtcreator-src/qt-creator/src/shared/qbs/src/lib/corelib -I. 
> -I/home/developer/qtcreator-src/qt-creator/src/shared/qbs/src 
> -I/home/developer/qtcreator-src/qt-creator/src/shared/qbs/src/lib/corelib -I/home/developer/qtcreator-src/qt-creator/src/shared/qbs/src/lib 
> -I/home/developer/Qt-5.9.7/include 
> -I/home/developer/Qt-5.9.7/include/QtScript 
> -I/home/developer/Qt-5.9.7/include/QtCore/5.9.7 
> -I/home/developer/Qt-5.9.7/include/QtCore/5.9.7/QtCore 
> -I/home/developer/Qt-5.9.7/include/QtNetwork 
> -I/home/developer/Qt-5.9.7/include/QtGui 
> -I/home/developer/Qt-5.9.7/include/QtXml 
> -I/home/developer/Qt-5.9.7/include/QtCore -I. -isystem 
> /usr/include/libdrm -I/home/developer/Qt-5.9.7/mkspecs/linux-g++ -o 
> internaljobs.o 
> /home/developer/qtcreator-src/qt-creator/src/shared/qbs/src/lib/corelib/api/internaljobs.cpp 
> 
> In file included from 
> /home/developer/qtcreator-src/qt-creator/src/shared/qbs/src/lib/corelib/tools/filetime.h:43:0, 
> 
>                   from 
> /home/developer/qtcreator-src/qt-creator/src/shared/qbs/src/lib/corelib/buildgraph/filedependency.h:43, 
> 
>                   from 
> /home/developer/qtcreator-src/qt-creator/src/shared/qbs/src/lib/corelib/buildgraph/artifact.h:43, 
> 
>                   from 
> /home/developer/qtcreator-src/qt-creator/src/shared/qbs/src/lib/corelib/buildgraph/buildgraphloader.h:44, 
> 
>                   from 
> /home/developer/qtcreator-src/qt-creator/src/shared/qbs/src/lib/corelib/api/internaljobs.cpp:45: 
> 
> /home/developer/qtcreator-src/qt-creator/src/shared/qbs/src/lib/corelib/tools/persistence.h:250:20: 
> error: ‘enable_if_t’ is not a member of ‘std’
>   struct PPHelper<T, std::enable_if_t<std::is_member_function_pointer<
>                      ^
> /home/developer/qtcreator-src/qt-creator/src/shared/qbs/src/lib/corelib/tools/persistence.h:250:20: 
> error: ‘enable_if_t’ is not a member of ‘std’
> /home/developer/qtcreator-src/qt-creator/src/shared/qbs/src/lib/corelib/tools/persistence.h:251:80: 
> error: type/value mismatch at argument 2 in template parameter list for 
...


Hi, your gcc is a bit long in the tooth, try upgrading it, say like:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install gcc-6

Rgrds Henry







More information about the Interest mailing list