Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Building QtCreator 6.0.0 with Qt 6.2.1 - Compilation errors on Ubuntu 20.04



  • Hi,

    I have successfully Qt 6.2.1 on Ubuntu 20.04

    I then tried to use Qt 6.2.1 to build QtCreator 6.0.0

    However, I encountered the following build errors and was wondering if there are things (additional things options?) I need to build in Qt 6.2.1 before attempting to use it to build QtCreator 6.0.0 ?

    [3619/3665] Building CXX object src/tools/sdktool/CMakeFiles/sdktool.dir/addkeysoperation.cpp.o
    [3620/3665] Linking CXX executable libexec/qtcreator/qml2puppet
    FAILED: libexec/qtcreator/qml2puppet 
    : && /usr/bin/c++ -O3 -DNDEBUG  src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/qml2puppet_autogen/mocs_compilation.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/qml2puppetmain.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/instances/nodeinstanceclientproxy.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/editor3d/generalhelper.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/editor3d/mousearea3d.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/editor3d/geometrybase.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/editor3d/camerageometry.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/editor3d/lightgeometry.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/editor3d/gridgeometry.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/editor3d/selectionboxgeometry.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/editor3d/linegeometry.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/editor3d/icongizmoimageprovider.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/editor3d/qt5compat/qquick3darealight.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/iconrenderer/iconrenderer.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/import3d/import3d.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/anchorchangesnodeinstance.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/behaviornodeinstance.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/childrenchangeeventfilter.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/componentnodeinstance.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/dummycontextobject.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/dummynodeinstance.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/layoutnodeinstance.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/nodeinstanceserver.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/nodeinstancesignalspy.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/objectnodeinstance.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/positionernodeinstance.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qmlpropertychangesnodeinstance.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qmlstatenodeinstance.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qmltransitionnodeinstance.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt3dpresentationnodeinstance.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt5informationnodeinstanceserver.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt5nodeinstanceclientproxy.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt5nodeinstanceserver.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt5previewnodeinstanceserver.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt5rendernodeinstanceserver.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt5testnodeinstanceserver.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/quick3dnodeinstance.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/quick3dtexturenodeinstance.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/quickitemnodeinstance.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/servernodeinstance.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt5capturepreviewnodeinstanceserver.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/nodeinstanceserverdispatcher.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/capturenodeinstanceserverdispatcher.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt5captureimagenodeinstanceserver.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/viewconfig.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/animationdriver.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/__/__/__/share/qtcreator/qml/qmlpuppet/qmlprivategate/qmlprivategate_56.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/qml2puppet_autogen/O4UL765RR4/qrc_qmlpuppet.cpp.o src/tools/qml2puppet/CMakeFiles/qml2puppet.dir/qml2puppet_autogen/O4UL765RR4/qrc_editor3d_qt6.cpp.o -o libexec/qtcreator/qml2puppet  -Wl,-rpath,"\$ORIGIN/../../lib/qtcreator:/home/nyue/systems/qt/6.2.1/gcc/lib:::::::::::::::::::::::::"  lib/qtcreator/libqml2puppet_static.a  -lrt  /home/nyue/systems/qt/6.2.1/gcc/lib/libQt6Widgets.so.6.2.1  /home/nyue/systems/qt/6.2.1/gcc/lib/libQt6Quick3DParticles.so.6.2.1  /home/nyue/systems/qt/6.2.1/gcc/lib/libQt6Quick3D.so.6.2.1  /home/nyue/systems/qt/6.2.1/gcc/lib/libQt6Quick3DAssetImport.so.6.2.1  /home/nyue/systems/qt/6.2.1/gcc/lib/libQt6Quick3DRuntimeRender.so.6.2.1  /home/nyue/systems/qt/6.2.1/gcc/lib/libQt6Quick.so.6.2.1  /home/nyue/systems/qt/6.2.1/gcc/lib/libQt6QmlModels.so.6.2.1  /home/nyue/systems/qt/6.2.1/gcc/lib/libQt6Qml.so.6.2.1  /home/nyue/systems/qt/6.2.1/gcc/lib/libQt6Network.so.6.2.1  /home/nyue/systems/qt/6.2.1/gcc/lib/libQt6OpenGL.so.6.2.1  /home/nyue/systems/qt/6.2.1/gcc/lib/libQt6Quick3DUtils.so.6.2.1  /home/nyue/systems/qt/6.2.1/gcc/lib/libQt6ShaderTools.so.6.2.1  /home/nyue/systems/qt/6.2.1/gcc/lib/libQt6Gui.so.6.2.1  /home/nyue/systems/qt/6.2.1/gcc/lib/libQt6Core.so.6.2.1  -pthread  /usr/lib/x86_64-linux-gnu/libGLX.so  /usr/lib/x86_64-linux-gnu/libOpenGL.so  /usr/lib/x86_64-linux-gnu/libxkbcommon.so && :
    /usr/bin/ld: /home/nyue/systems/qt/6.2.1/gcc/lib/libQt6Quick3DRuntimeRender.so.6.2.1: undefined reference to `QShaderBaker::setGeneratedShaderVariants(QList<QShader::Variant> const&)@Qt_6_PRIVATE_API'
    /usr/bin/ld: /home/nyue/systems/qt/6.2.1/gcc/lib/libQt6Quick3DRuntimeRender.so.6.2.1: undefined reference to `QShaderBaker::setSourceString(QByteArray const&, QShader::Stage, QString const&)@Qt_6_PRIVATE_API'
    /usr/bin/ld: /home/nyue/systems/qt/6.2.1/gcc/lib/libQt6Quick3DRuntimeRender.so.6.2.1: undefined reference to `QShaderBaker::setGeneratedShaders(QList<std::pair<QShader::Source, QShaderVersion> > const&)@Qt_6_PRIVATE_API'
    /usr/bin/ld: /home/nyue/systems/qt/6.2.1/gcc/lib/libQt6Quick3DRuntimeRender.so.6.2.1: undefined reference to `QShaderBaker::QShaderBaker()@Qt_6_PRIVATE_API'
    /usr/bin/ld: /home/nyue/systems/qt/6.2.1/gcc/lib/libQt6Quick3DRuntimeRender.so.6.2.1: undefined reference to `QShaderBaker::~QShaderBaker()@Qt_6_PRIVATE_API'
    /usr/bin/ld: /home/nyue/systems/qt/6.2.1/gcc/lib/libQt6Quick3DRuntimeRender.so.6.2.1: undefined reference to `QShaderBaker::bake()@Qt_6_PRIVATE_API'
    /usr/bin/ld: /home/nyue/systems/qt/6.2.1/gcc/lib/libQt6Quick3DRuntimeRender.so.6.2.1: undefined reference to `QShaderBaker::errorMessage() const@Qt_6_PRIVATE_API'
    collect2: error: ld returned 1 exit status
    [3621/3665] Building CXX object src/tools/sdktool/CMakeFiles/sdktool.dir/adddeviceoperation.cpp.o
    [3622/3665] Building CXX object src/tools/sdktool/CMakeFiles/sdktool.dir/addvalueoperation.cpp.o
    [3623/3665] Building CXX object src/tools/sdktool/CMakeFiles/sdktool.dir/addqtoperation.cpp.o
    [3624/3665] Building CXX object src/tools/sdktool/CMakeFiles/sdktool.dir/addkitoperation.cpp.o
    [3625/3665] Building CXX object src/tools/sdktool/CMakeFiles/sdktool.dir/addtoolchainoperation.cpp.o
    ninja: build stopped: subcommand failed.
    

    Cheers



  • Can you update to Qt 6.2.2 and try it?



  • Can you update to Qt 6.2.2 and try it?



  • @akshaybabloo That works. Thank you.



  • @nicholas_yue Anytime


Log in to reply