Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. 3D Install Qt6
Forum Updated to NodeBB v4.3 + New Features

3D Install Qt6

Scheduled Pinned Locked Moved Solved Qt 6
79 Posts 2 Posters 22.1k Views 2 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.
  • O Offline
    O Offline
    ofmrew
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      O 1 Reply Last reply
      0
      • SGaistS SGaist

        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.

        O Offline
        O Offline
        ofmrew
        wrote on last edited by
        #3

        @SGaist One question still remains: will those changes be required later?

        O 1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          I haven't read the content of these instructions so I currently do not know their scope.

          Can you point me to them ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • O ofmrew

            @SGaist One question still remains: will those changes be required later?

            O Offline
            O Offline
            ofmrew
            wrote on last edited by
            #5

            @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 identifier

            They are in Qt Forum at: Qt6 Add-on src package build using Conan package manager

            O 1 Reply Last reply
            0
            • O ofmrew

              @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 identifier

              They are in Qt Forum at: Qt6 Add-on src package build using Conan package manager

              O Offline
              O Offline
              ofmrew
              wrote on last edited by
              #6

              @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.

              O 1 Reply Last reply
              0
              • O ofmrew

                @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.

                O Offline
                O Offline
                ofmrew
                wrote on last edited by
                #7

                @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 deploy

                Command '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?

                O 1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Where is the Conan executable locate ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • O ofmrew

                    @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 deploy

                    Command '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?

                    O Offline
                    O Offline
                    ofmrew
                    wrote on last edited by
                    #9

                    @ofmrew It is located in /home/bob/Qt/Tools/Conan which is one of the paths prepended to PATH.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      You have a typo in your export, it's Tools not tools.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      O 1 Reply Last reply
                      0
                      • SGaistS SGaist

                        You have a typo in your export, it's Tools not tools.

                        O Offline
                        O Offline
                        ofmrew
                        wrote on last edited by
                        #11

                        @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?

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          Something I find strange is that there are three quotes around the profile name.

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          O 1 Reply Last reply
                          0
                          • SGaistS SGaist

                            Something I find strange is that there are three quotes around the profile name.

                            O Offline
                            O Offline
                            ofmrew
                            wrote on last edited by
                            #13

                            @SGaist I copied this from the instructions: --profile=G:/Tools/Conan/profiles/'''qt-6.0.1-gcc-x86_64'''

                            One more question. If I am going to use QtCreator for the 3D programming should I use -g=qmake?

                            1 Reply Last reply
                            0
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by
                              #14

                              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.

                              Interested in AI ? www.idiap.ch
                              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                              O 1 Reply Last reply
                              0
                              • SGaistS SGaist

                                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.

                                O Offline
                                O Offline
                                ofmrew
                                wrote on last edited by
                                #15

                                @SGaist Still cannot find it:

                                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

                                1 Reply Last reply
                                0
                                • SGaistS Offline
                                  SGaistS Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #16

                                  Wait... why are you using a Windows style path while building on Linux ?

                                  Interested in AI ? www.idiap.ch
                                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  O 1 Reply Last reply
                                  0
                                  • SGaistS SGaist

                                    Wait... why are you using a Windows style path while building on Linux ?

                                    O Offline
                                    O Offline
                                    ofmrew
                                    wrote on last edited by
                                    #17

                                    @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 deploy

                                    What did I screw up this time?

                                    O 1 Reply Last reply
                                    0
                                    • O ofmrew

                                      @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 deploy

                                      What did I screw up this time?

                                      O Offline
                                      O Offline
                                      ofmrew
                                      wrote on last edited by
                                      #18

                                      @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?

                                      1 Reply Last reply
                                      0
                                      • SGaistS Offline
                                        SGaistS Offline
                                        SGaist
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #19

                                        Missing libxkbcommon related development package ?

                                        Interested in AI ? www.idiap.ch
                                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                        O 1 Reply Last reply
                                        1
                                        • SGaistS SGaist

                                          Missing libxkbcommon related development package ?

                                          O Offline
                                          O Offline
                                          ofmrew
                                          wrote on last edited by
                                          #20

                                          @SGaist said in 3D Install Qt6:

                                          libxkbcommon

                                          What is that and were do I find it?

                                          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