Can't install qtquickdesigner-components on Qt creator 7.0.0
-
Hello Qt Forum,
I'm trying to install qtquickdesigner-components on this Qt creator Version:
In this OS: Ubuntu 20.04.4 LTS
After cloning from official repo...
~/Qt$ git clone "https://codereview.qt-project.org/qt-labs/qtquickdesigner-components"
I followed this steps in https://doc.qt.io/qtdesignstudio/quick-converting-ui-projects.html but failed:
- Results in errors:
~/Qt/qtquickdesigner-component$ /home/user/Qt/6.2.4/gcc_64/bin/qmake -r
- This needs CMake 3.20 version that's not available for installing quickly on ubuntu(the actual version is 3.16).
~/Qt/qtquickdesigner-components$ cmake -GNinja -DCMAKE_INSTALL_PREFIX=~/Qt ~/Qt/qtquickdesigner-components
Tried with cmake 3.23 and this are the results:
user@user:~/Qt/qtquickdesigner-components$ /home/user/cmake3.23/bin/cmake -GNinja -DCMAKE_INSTALL_PREFIX=~/Qt ~/Qt/qtquickdesigner-components
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "/home/user/Qt/qtquickdesigner-components/CMakeFiles/CMakeOutput.log".Thi is the CMakeOutput.log;
The system is: Linux - 5.13.0-37-generic - x86_64
I think that the documentation is not updated in this case for Ubuntu 20.04 LTS, How can i achieve this to use it?
-
@ing-s I found to go to the next step. when you clone the repo dev branch is setting by default, you need to change the branch to qmake just executing this:
user@user:~/Qt/qtquickdesigner-components$ git checkout qmake
But when you execute
user@user:~/Qt/qtquickdesigner-components$ /home/user/Qt/6.2.4/gcc_64/bin/qmake -rThis error show you:
/home/user/Qt/6.2.4/gcc_64/lib/libQt6Core.so -lpthread -lxkbcommon -lGL /usr/bin/ld: no se puede encontrar -lxkbcommon collect2: error: ld returned 1 exit status
-
@ing-s The next step is just search the missing library
-l<library-name> and search through apt command, install the dev package and execute make again:user@user:~/Qt/qtquickdesigner-components$ apt search xkbcommon
user@user:~/Qt/qtquickdesigner-components$ sudo apt install libxkbcommon-dev
user@user:~/Qt/qtquickdesigner-components$ make
user@user:~/Qt/qtquickdesigner-components$ make installAnd done for anyone who see this.