Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Cannot build QTcreator from source.
Qt 6.11 is out! See what's new in the release blog

Cannot build QTcreator from source.

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
10 Posts 6 Posters 3.9k Views 1 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.
  • G Offline
    G Offline
    Gyoza Man
    wrote on last edited by
    #1

    Currently, I am trying to build QTcreator 9.0.0 from it's source code. I ran

    cmake -DCMAKE_BUILD_TYPE=Debug -G Ninja "-DCMAKE_PREFIX_PATH=/usr/lib/qt6;/usr/lib/llvm" ~/Downloads/qt-creator/
    

    I have llvm and Qt 6.4.2 installed, but the output is

    CMake Error at cmake/FindQt5.cmake:57 (find_package):
      Found package configuration file:
    
        /usr/lib/aarch64-linux-gnu/cmake/Qt6/Qt6Config.cmake
    
      but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
      FOUND.  Reason given by package:
    
      Failed to find Qt component "Qml".
    
      Expected Config file at
      "/usr/lib/aarch64-linux-gnu/cmake/Qt6Qml/Qt6QmlConfig.cmake" does NOT exist
    
      
    
    Call Stack (most recent call first):
      CMakeLists.txt:68 (find_package)
    

    I am running aarch64 Ubuntu 22.04 LTS .

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Can QtCreator already be compiled with Qt6? I doubt so.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      andrA 1 Reply Last reply
      0
      • hskoglundH Online
        hskoglundH Online
        hskoglund
        wrote on last edited by
        #3

        Hi, perhaps you've forgotten to install the "Qt 5 Compatibility Module"

        G 1 Reply Last reply
        0
        • hskoglundH hskoglund

          Hi, perhaps you've forgotten to install the "Qt 5 Compatibility Module"

          G Offline
          G Offline
          Gyoza Man
          wrote on last edited by
          #4

          @hskoglund Nope. I think I have installed it.

          1 Reply Last reply
          0
          • JoeCFDJ Offline
            JoeCFDJ Offline
            JoeCFD
            wrote on last edited by JoeCFD
            #5

            try to use cmake-gui to load cmake file and check what is wrong. You can manually change settings. It is a small, but a nice tool.
            and what is the output of
            which qmake
            qmake --version

            G 1 Reply Last reply
            0
            • JoeCFDJ JoeCFD

              try to use cmake-gui to load cmake file and check what is wrong. You can manually change settings. It is a small, but a nice tool.
              and what is the output of
              which qmake
              qmake --version

              G Offline
              G Offline
              Gyoza Man
              wrote on last edited by
              #6

              @JoeCFD I found the error. It is saying it cannot find the path to Qt6Qml, but I do not know how to fix this.

              1 Reply Last reply
              0
              • G Offline
                G Offline
                Gyoza Man
                wrote on last edited by Gyoza Man
                #7

                Okay, so I just gave up on building it from source, and decided to make a Ubuntu equivalent of a good old FrankenDebian, so I could install the newest version [9.0.1] on my Jammy Jellyfish machine, using a Lunar repository. But I will keep this open, in case anyone else has the problem.

                cristian-adamC 1 Reply Last reply
                0
                • G Gyoza Man

                  Okay, so I just gave up on building it from source, and decided to make a Ubuntu equivalent of a good old FrankenDebian, so I could install the newest version [9.0.1] on my Jammy Jellyfish machine, using a Lunar repository. But I will keep this open, in case anyone else has the problem.

                  cristian-adamC Offline
                  cristian-adamC Offline
                  cristian-adam
                  wrote on last edited by
                  #8

                  I just installed Ubuntu 22.04 and build Qt Creator 9.0.2 (latest tag from 9.0 branch) as:

                  1. Install build tools
                  $ sudo apt install build-essential cmake ninja-build git
                  
                  1. Install all the Ubuntu Qt 6 SDK packages
                  $ sudo apt install qt6-base-dev qt6-base-private-dev qt6-declarative-dev qt6-declarative-private-dev qt6-tools-dev qt6-tools-private-dev qt6-scxml-dev qt6-documentation-tools libqt6core5compat6-dev qt6-tools-dev-tools qt6-l10n-tools qt6-shader-baker libqt6shadertools6-dev qt6-quick3d-dev qt6-quick3d-dev-tools libqt6svg6-dev libqt6quicktimeline6-dev
                  libqt6serialport6-dev
                  
                  1. Install LLVM / Clang dependencies
                  $ sudo apt install clang-15 clangd-15 libclang-15-dev
                  
                  1. Install Qt Creator dependencies
                  $ sudo apt install libgl1-mesa-dev libvulkan-dev libxcb-xinput-dev libxcb-xinerama0-dev libxkbcommon-dev libxkbcommon-x11-dev libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xkb1 libxcb-randr0 libxcb-icccm4
                  
                  1. Get Qt Creator source code
                  $ git clone --recursive https://code.qt.io/qt-creator/qt-creator.git repo
                  $ cd repo
                  $ git checkout 9.0
                  $ git submodule update
                  
                  1. Build Qt Creator
                  $ cmake -G Ninja -S repo -B build -DCMAKE_BUILD_TYPE=Release
                  $ cmake --build build
                  $ cmake --install build/ --prefix qtcreator-9.0
                  

                  I've got a full build of Qt Creator, then started ./qtcreator-9.0/bin/qtcreator to open the repo/CMakeLists.txt project and load the build that I've currently made 😊

                  If the CMake configure process is complaining about something, just use apt-file search <file> to locate the package that needs to be installed.

                  cristian-adamC 1 Reply Last reply
                  2
                  • cristian-adamC cristian-adam

                    I just installed Ubuntu 22.04 and build Qt Creator 9.0.2 (latest tag from 9.0 branch) as:

                    1. Install build tools
                    $ sudo apt install build-essential cmake ninja-build git
                    
                    1. Install all the Ubuntu Qt 6 SDK packages
                    $ sudo apt install qt6-base-dev qt6-base-private-dev qt6-declarative-dev qt6-declarative-private-dev qt6-tools-dev qt6-tools-private-dev qt6-scxml-dev qt6-documentation-tools libqt6core5compat6-dev qt6-tools-dev-tools qt6-l10n-tools qt6-shader-baker libqt6shadertools6-dev qt6-quick3d-dev qt6-quick3d-dev-tools libqt6svg6-dev libqt6quicktimeline6-dev
                    libqt6serialport6-dev
                    
                    1. Install LLVM / Clang dependencies
                    $ sudo apt install clang-15 clangd-15 libclang-15-dev
                    
                    1. Install Qt Creator dependencies
                    $ sudo apt install libgl1-mesa-dev libvulkan-dev libxcb-xinput-dev libxcb-xinerama0-dev libxkbcommon-dev libxkbcommon-x11-dev libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xkb1 libxcb-randr0 libxcb-icccm4
                    
                    1. Get Qt Creator source code
                    $ git clone --recursive https://code.qt.io/qt-creator/qt-creator.git repo
                    $ cd repo
                    $ git checkout 9.0
                    $ git submodule update
                    
                    1. Build Qt Creator
                    $ cmake -G Ninja -S repo -B build -DCMAKE_BUILD_TYPE=Release
                    $ cmake --build build
                    $ cmake --install build/ --prefix qtcreator-9.0
                    

                    I've got a full build of Qt Creator, then started ./qtcreator-9.0/bin/qtcreator to open the repo/CMakeLists.txt project and load the build that I've currently made 😊

                    If the CMake configure process is complaining about something, just use apt-file search <file> to locate the package that needs to be installed.

                    cristian-adamC Offline
                    cristian-adamC Offline
                    cristian-adam
                    wrote on last edited by
                    #9

                    I've made a Wiki article from the above post https://wiki.qt.io/Building_Qt_Creator_from_Git_on_Ubuntu_22.04 😊

                    1 Reply Last reply
                    1
                    • Christian EhrlicherC Christian Ehrlicher

                      Can QtCreator already be compiled with Qt6? I doubt so.

                      andrA Offline
                      andrA Offline
                      andr
                      wrote on last edited by
                      #10

                      @Christian-Ehrlicher said in Cannot build QTcreator from source.:

                      doubt

                      Qt Creator was compilable with Qt 6 around the time Qt 6.0 was released. Currently it /requires/ Qt 6.2 or later.

                      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