3D Install Qt6
-
In the instructions for conan it states that the three entries must be prepended to the $PATH environment variable. With Win 10 I have not choice but to permanently add the entries; however, with Mint Linux I am not sure. I assume the I will use /home/bob/Qt/Tools/Cmake/bin:/home/bob/Qt/Tools/Conan:/home/bob/Qt/Ninja:$PATH, but leaves me with two question: 1. What linux command do I use, export? 2. Will the environment variables be permanently set? Thanks in advance for the indulgence, I learned Unix over 30 years ago and have forgotten it.
-
Hi,
export is the right command for the terminal.
If you want to make it permanent, you should modify your .bashrc, .bash_profile or corresponding shell configuration file.
-
I haven't read the content of these instructions so I currently do not know their scope.
Can you point me to them ?
-
@ofmrew I tried:
export /home/bob/Qt/Tools/bin:/home/bob/Qt/tools/Conan:/home/bob/Qt/Tools/Ninja:$PATH
bash: export: `/home/bob/Qt/Tools/bin:/home/bob/Qt/tools/Conan:/home/bob/Qt/Tools/Ninja:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin': not a valid identifierThey are in Qt Forum at: Qt6 Add-on src package build using Conan package manager
-
@ofmrew said in 3D Install Qt6:
export /home/bob/Qt/Tools/bin:/home/bob/Qt/tools/Conan:/home/bob/Qt/Tools/Ninja:$PATH
My mistake I forgot to assign to PATH:
export PATH=/home/bob/Qt/Tools/bin:/home/bob/Qt/tools/Conan:/home/bob/Qt/Tools/Ninja:$PATH
That worked.
-
@ofmrew Trying to install 3D I used and got:
bob@bob-linux:~$ export PATH=/home/bob/Qt/Tools/bin:/home/bob/Qt/tools/Conan:/home/bob/Qt/Tools/Ninja:$PATH
bob@bob-linux:~$ cd /home/bob/Qt/Conan3D
bob@bob-linux:~/Qt/Conan3D$ conan install qt3d/6.0.0@qt/final --build=missing --profile=G:/Tools/Conan/profiles/'''qt-6.0.0-gcc-x86_64''' -s build_type=Release -g cmake_paths -g=cmake -g deployCommand 'conan' not found, did you mean:
command 'conman' from deb conman (0.2.7-1build2)
Try: sudo apt install <deb name>
It looks like the environment variables were not set. Should I just modify the code to show the paths?
-
Where is the Conan executable locate ?
-
You have a typo in your export, it's Tools not tools.
-
@SGaist Thanks. My eyes are not what they used to be.
I made the change but it failed because the profiles should reference qt-6.0.1-gcc-x86_64. But when I make that change I get:
bob@bob-linux:~$ export PATH=/home/bob/Qt/Tools/bin:/home/bob/Qt/Tools/Conan:/home/bob/Qt/Tools/Ninja:$PATH
bob@bob-linux:~$ cd /home/bob/Qt/Conan3D
bob@bob-linux:~/Qt/Conan3D$ conan install qt3d/6.0.0@qt/final --build=missing --profile=G:/Tools/Conan/profiles/'''qt-6.0.1-gcc-x86_64''' -s build_type=Release -g cmake_paths -g=cmake -g deploy
ERROR: Profile not found: G:/Tools/Conan/profiles/qt-6.0.1-gcc-x86_64
bob@bob-linux:~/Qt/Conan3D$This is a copy of the file name: qt-6.0.1-gcc-x86_64. Am I going blind?
-
Something I find strange is that there are three quotes around the profile name.
-
I would try without all the quotes.
No, Qt Creator can handle both cmake and qmake project.
And I think it's unrelated in this context, Qt 6 used cmake as build system. -
-
Wait... why are you using a Windows style path while building on Linux ?
-
@SGaist Switching between Linux and Win 10 has its hazards. Made the change and got deep into it all the way to:
CMake Generate step failed. Build files cannot be regenerated correctly.
qt3d/6.0.1@qt/final:
qt3d/6.0.1@qt/final: ERROR: Package '9105b5b4ab5d474532cfc28699da368141e8a4cf' build failed
qt3d/6.0.1@qt/final: WARN: Build folder /home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf
ERROR: qt3d/6.0.1@qt/final: Error in build() method, line 120
self.run('%s "%s" %s' % (self._get_qtcmake(), self.source_folder, cmake.command_line))
ConanException: Error 1 while executing /home/bob/Qt/6.0.1/gcc_64/bin/qt-cmake "/home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf" -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Release" -DCONAN_IN_LOCAL_CACHE="ON" -DCONAN_COMPILER="gcc" -DCONAN_COMPILER_VERSION="7.5" -DCONAN_CXX_FLAGS="-m64" -DCONAN_SHARED_LINKER_FLAGS="-m64" -DCONAN_C_FLAGS="-m64" -DCONAN_LIBCXX="libstdc++11" -DBUILD_SHARED_LIBS="OFF" -DCMAKE_INSTALL_PREFIX="/home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/_install_tmp" -DCMAKE_INSTALL_BINDIR="bin" -DCMAKE_INSTALL_SBINDIR="bin" -DCMAKE_INSTALL_LIBEXECDIR="bin" -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_INSTALL_INCLUDEDIR="include" -DCMAKE_INSTALL_OLDINCLUDEDIR="include" -DCMAKE_INSTALL_DATAROOTDIR="share" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -DCMAKE_VERBOSE_MAKEFILE="ON" -Wno-dev
using:
export PATH=/home/bob/Qt/Tools/bin:/home/bob/Qt/Tools/Conan:/home/bob/Qt/Tools/Ninja:$PATH
cd /home/bob/Qt/Conan3D
conan install qt3d/6.0.1@qt/final --build=missing --profile=/home/bob/Qt/Tools/Conan/profiles/'''qt-6.0.1-gcc-x86_64''' -s build_type=Release -g cmake_paths -g=cmake -g deployWhat did I screw up this time?
-
@ofmrew I got a number of CMake Errors before the line: CMake Generate step failed. Build files cannot be regenerated correctly. I did not include them because there is a limit on the size of a post, been down that road already today. An example is:
CMake Error at /home/bob/Qt/6.0.1/gcc_64/lib/cmake/Qt6/QtModuleHelpers.cmake:48 (add_library):
Target "3DExtras" links to target "XKB::XKB" but the target was not found.
Perhaps a find_package() call is missing for an IMPORTED target, or an
ALIAS target is missing?
Call Stack (most recent call first):
src/extras/CMakeLists.txt:7 (qt_internal_add_module)Any suggestions?
-
Missing libxkbcommon related development package ?