3D Install Qt6
-
@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 ?
-
It's one dependency of the xcb plugin and your distribution package manager should provide it.
-
@ofmrew Installed it. Now I get:
-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.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 deploy
Configuration:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=7.5
os=Linux
[options]
qt6=6.0.1
[build_requires]
[env]
QT_PATH=/home/bob/Qt/6.0.1/gcc_64
qt3d/6.0.1@qt/final: WARN: Package binary is corrupted, removing: 9105b5b4ab5d474532cfc28699da368141e8a4cf
Installing package: qt3d/6.0.1@qt/final
Requirements
qt3d/6.0.1@qt/final from local cache - Cache
Packages
qt3d/6.0.1@qt/final:9105b5b4ab5d474532cfc28699da368141e8a4cf - BuildInstalling (downloading, building) binaries...
qt3d/6.0.1@qt/final: WARN: Build folder is dirty, removing it: /home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf
qt3d/6.0.1@qt/final: Copying sources to build folder
qt3d/6.0.1@qt/final: Building your package in /home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf
qt3d/6.0.1@qt/final: Generator txt created conanbuildinfo.txt
qt3d/6.0.1@qt/final: Calling build()
CMAKE_PREFIX_PATH for 'qt3d/6.0.1' build is: /home/bob/Qt/6.0.1/gcc_64
CMAKE_PREFIX_PATH for 'qt3d/6.0.1' build is: /home/bob/Qt/6.0.1/gcc_64
-- The CXX compiler identification is GNU 9.3.0
-- The C compiler identification is GNU 9.3.0
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
-- Found WrapOpenGL: TRUE
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR)
-- Found XKB: /usr/lib/x86_64-linux-gnu/libxkbcommon.so (found suitable version "0.10.0", minimum required is "0.5.0")
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR)
-- Could NOT find WrapOpenSSLHeaders (missing: WrapOpenSSLHeaders_FOUND)
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR)
-- Could NOT find Qt6Gamepad (missing: Qt6Gamepad_DIR)
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR)
-- Could NOT find Qt6ShaderTools (missing: Qt6ShaderTools_DIR)
-- Check for feature set changes
-- Using installed syncqt found at: /home/bob/Qt/6.0.1/gcc_64/libexec/syncqt.pl
-- Running syncqt for module: 'Qt3DCore'
-- Performing Test HAVE_DASH_UNDEFINED_SYMBOLS
-- Performing Test HAVE_DASH_UNDEFINED_SYMBOLS - Success
-- Performing Test HAVE_DASH_DASH_NO_UNDEFINED
-- Performing Test HAVE_DASH_DASH_NO_UNDEFINED - Success
-- Running syncqt for module: 'Qt3DLogic'
-- Running syncqt for module: 'Qt3DInput'
-- Running syncqt for module: 'Qt3DRender'
-- Running syncqt for module: 'Qt3DExtras'
-- Running syncqt for module: 'Qt3DAnimation'
-- Running syncqt for module: 'Qt3DQuick'
-- Running syncqt for module: 'Qt3DQuickRender'
-- Running syncqt for module: 'Qt3DQuickScene2D'
-- Running syncqt for module: 'Qt3DQuickExtras'
-- Running syncqt for module: 'Qt3DQuickInput'
-- Running syncqt for module: 'Qt3DQuickAnimation'
-- Could NOT find WrapAssimp (missing: WrapAssimp_FOUND) (Required is at least version "5")
-- Performing Test Assimp
-- Performing Test Assimp - Failed
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- Performing Test Autodesk FBX
-- Performing Test Autodesk FBX - Failed
-- The following packages have been found:- Qt6BuildInternals
- Qt6CoreTools (required version >= 6.0.1)
- Qt6Core
- Qt6Concurrent
- Qt6WidgetsTools (required version >= 6.0.1)
- OpenGL
- XKB (required version >= 0.5.0), XKB API common to servers and clients., http://xkbcommon.org
- Qt6GuiTools (required version >= 6.0.1)
- Qt6Widgets
- Qt6QmlTools (required version >= 6.0.1)
- Qt6Qml
- Qt6Quick
- Qt6OpenGL
- Qt6 (required version >= 6.0.1)
-- The following OPTIONAL packages have not been found:
- OpenSSL
- WrapOpenSSLHeaders
- Qt6Gamepad
- Vulkan
- Qt6ShaderTools
- WrapAssimp (required version >= 5)
- ZLIB
Configure summary:
Qt3D Core:
Use SSE2 instructions .................. yes
Use AVX2 instructions .................. no
Animation aspect ....................... yes
Extras aspect .......................... yes
Input aspect ........................... yes
Logic aspect ........................... yes
Render aspect .......................... yes
Qt3D Scene Parsers:
Assimp ................................. yes
System Assimp .......................... no
Qt3D Geometry Loaders:
Autodesk FBX ........................... no
Qt3D Renderers:
OpenGL Renderer ........................ yes
RHI Renderer ........................... yes-- Configuring done
CMake Error at /home/bob/Qt/6.0.1/gcc_64/lib/cmake/Qt6/QtPluginHelpers.cmake:50 (add_library):
Target "AssimpSceneImportPlugin" links to target "ZLIB::ZLIB" 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/plugins/sceneparsers/assimp/CMakeLists.txt:7 (qt_internal_add_plugin)CMake Error at /home/bob/Qt/6.0.1/gcc_64/lib/cmake/Qt6/QtPluginHelpers.cmake:50 (add_library):
Target "AssimpSceneImportPlugin" links to target "ZLIB::ZLIB" 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/plugins/sceneparsers/assimp/CMakeLists.txt:7 (qt_internal_add_plugin)-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:CMAKE_EXPORT_NO_PACKAGE_REGISTRY CMAKE_INSTALL_BINDIR CMAKE_INSTALL_DATAROOTDIR CMAKE_INSTALL_INCLUDEDIR CMAKE_INSTALL_LIBDIR CMAKE_INSTALL_LIBEXECDIR CMAKE_INSTALL_OLDINCLUDEDIR CMAKE_INSTALL_SBINDIR CONAN_COMPILER CONAN_COMPILER_VERSION CONAN_CXX_FLAGS CONAN_C_FLAGS CONAN_EXPORTED CONAN_IN_LOCAL_CACHE CONAN_LIBCXX CONAN_SHARED_LINKER_FLAGS
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 -
Well, Mint seems to have it.