Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QT6.6.1 Opengl Cross-Compilation
Forum Updated to NodeBB v4.3 + New Features

QT6.6.1 Opengl Cross-Compilation

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
8 Posts 4 Posters 1.4k 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.
  • Y Offline
    Y Offline
    YannAlbouy
    wrote on last edited by
    #1

    Hi !
    I'm currently doing the following tutorial (https://wiki.qt.io/Cross-Compile_Qt_6_for_Raspberry_Pi) for a nvidia jetson and everything's going well until the step where you have to cross-compile QT. When i try to configure with the following command :

    ""cmake ../qt-everywhere-src-6.6.1 -GNinja -DCMAKE_BUILD_TYPE=Release -DINPUT_opengl=es2 -DQT_BUILD_EXAMPLES=OFF -DQT_BUILD_TESTS=OFF -DQT_HOST_PATH=/home/osboxes/Documents/qt-host -DCMAKE_STAGING_PREFIX=/home/osboxes/Documents/qt-raspi -DCMAKE_INSTALL_PREFIX=/usr/local/qt6 -DCMAKE_TOOLCHAIN_FILE=/home/osboxes/Documents/toolchain.cmake -DQT_QMAKE_TARGET_MKSPEC=devices/linux-jetson-tx1-g++ -DQT_FEATURE_xcb=ON -DFEATURE_xcb_xlib=ON -DQT_FEATURE_xlib=ON -DBUILD_qtwayland=OFF""

    Qt says "ERROR: The OpenGL functionality tests failed! You might need to modify the OpenGL package search path by setting the OpenGL_DIR CMake variable to the OpenGL library's installation directory."

    ""
    ERROR: The OpenGL functionality tests failed! You might need to modify the OpenGL package search path by setting the OpenGL_DIR CMake variable to the OpenGL library's installation directory.

    CMake Error at qtbase/cmake/QtBuildInformation.cmake:194 (message):
    Check the configuration messages for an error that has occurred.
    Call Stack (most recent call first):
    qtbase/cmake/QtBuildInformation.cmake:24 (qt_configure_print_summary)
    qtbase/cmake/QtBaseTopLevelHelpers.cmake:69 (qt_print_feature_summary)
    qtbase/cmake/QtBaseTopLevelHelpers.cmake:57 (qt_internal_print_top_level_info)
    CMakeLists.txt:108 (qt_internal_top_level_end)

    -- Configuring incomplete, errors occurred!
    ""

    I try to find solution online but so far nothing has worked.
    For information :

    • I have Opengl lib and opengl installed

    I link the file of my configure.
    If anyone has a solution,
    Sincerely, Yann

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

      Hi and welcome to devnet,

      Might be a silly question but do you have the OpenGL libraries for your desktop or for your Jetson ?

      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
      • Y Offline
        Y Offline
        YannAlbouy
        wrote on last edited by
        #3

        Yes, because if i try to cross compile with "./configure" without cmake and using device linux-jetson-tx1-g++ it find OpenGL, but not the right architecture and CPU feature in the configure Summary (x86_64, and none). And if i use cmake it find the correct architecture and cpu feature but not opengl. It seems it don't take jetson-linux-tx1-g++ device file

        SGaistS 1 Reply Last reply
        0
        • Y YannAlbouy

          Yes, because if i try to cross compile with "./configure" without cmake and using device linux-jetson-tx1-g++ it find OpenGL, but not the right architecture and CPU feature in the configure Summary (x86_64, and none). And if i use cmake it find the correct architecture and cpu feature but not opengl. It seems it don't take jetson-linux-tx1-g++ device file

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @YannAlbouy there was an or in my question 😅

          How did you creat the sysroot you use to cross-compile ?

          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
          • Y Offline
            Y Offline
            YannAlbouy
            wrote on last edited by
            #5

            I create sysroot with rsync from the Nvidia Jetson Orin nano. I rsync all folder and repair symlink with script. I check all link and there all good.

            SGaistS 1 Reply Last reply
            0
            • Y YannAlbouy

              I create sysroot with rsync from the Nvidia Jetson Orin nano. I rsync all folder and repair symlink with script. I check all link and there all good.

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @YannAlbouy that looks correct.

              Did you check that your sysroot content is of the correct architecture with regard to the OpenGL libraries ?

              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
              • M Offline
                M Offline
                Massinissa_idiri
                wrote on last edited by
                #7

                Any news, I have the same issue about wrong architecture detected with jetson orin nano

                jsulmJ 1 Reply Last reply
                0
                • M Massinissa_idiri

                  Any news, I have the same issue about wrong architecture detected with jetson orin nano

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @Massinissa_idiri said in QT6.6.1 Opengl Cross-Compilation:

                  wrong architecture detected

                  Then you're mixing binaries for different architectures.
                  You will have to provide more information:

                  • Post the actual error message
                  • Explain how you're creating the sysroot
                  • Show how you build

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  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