Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QT on Debian imx 8 Nano
Forum Updated to NodeBB v4.3 + New Features

QT on Debian imx 8 Nano

Scheduled Pinned Locked Moved Solved Installation and Deployment
9 Posts 3 Posters 975 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.
  • A Offline
    A Offline
    aeg1
    wrote on last edited by
    #1

    I am on a variscite compute module, trying to get QT to compile and work with debian.
    I am following the guide at https://mechatronicsblog.com/cross-compile-and-deploy-qt-5-12-for-raspberry-pi/ I get to the configure step with the following configure line.

    ./configure -release -opengl es2 -device linux-imx8-g++ -device-option CROSS_COMPILE=~/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- -sysroot ~/working/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5imx -extprefix ~/working/qt5imx -hostprefix ~/working/qt5imx -v

    I get the following error.
    ERROR: Feature 'opengles2' was enabled, but the pre-condition '(config.win32 && !features.opengl-dynamic) || (!config.watchos && !features.opengl-desktop && libs.opengl_es2)' failed.

    The only step that did not complete was rsync of the /opt/vc step. What step do I need to take to make this work? I tried replacing /opt/vc/ with root@imx8mn-var-som:/opt/imx-gpu-sdk but that did not help.

    jsulmJ Pablo J. RoginaP 2 Replies Last reply
    0
    • A aeg1

      I am on a variscite compute module, trying to get QT to compile and work with debian.
      I am following the guide at https://mechatronicsblog.com/cross-compile-and-deploy-qt-5-12-for-raspberry-pi/ I get to the configure step with the following configure line.

      ./configure -release -opengl es2 -device linux-imx8-g++ -device-option CROSS_COMPILE=~/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- -sysroot ~/working/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5imx -extprefix ~/working/qt5imx -hostprefix ~/working/qt5imx -v

      I get the following error.
      ERROR: Feature 'opengles2' was enabled, but the pre-condition '(config.win32 && !features.opengl-dynamic) || (!config.watchos && !features.opengl-desktop && libs.opengl_es2)' failed.

      The only step that did not complete was rsync of the /opt/vc step. What step do I need to take to make this work? I tried replacing /opt/vc/ with root@imx8mn-var-som:/opt/imx-gpu-sdk but that did not help.

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

      @aeg1 said in QT on Debian imx 8 Nano:

      What step do I need to take to make this work?

      Does your device have this directory (/opt/vc)?

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

      1 Reply Last reply
      0
      • A Offline
        A Offline
        aeg1
        wrote on last edited by
        #3

        No it it does not.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          aeg1
          wrote on last edited by
          #4

          Is there a package I need to install that will fill that folder? My device has the Vivante chip built in. I tried to make sure all of the packages for it are installed.

          1 Reply Last reply
          0
          • A aeg1

            I am on a variscite compute module, trying to get QT to compile and work with debian.
            I am following the guide at https://mechatronicsblog.com/cross-compile-and-deploy-qt-5-12-for-raspberry-pi/ I get to the configure step with the following configure line.

            ./configure -release -opengl es2 -device linux-imx8-g++ -device-option CROSS_COMPILE=~/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- -sysroot ~/working/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5imx -extprefix ~/working/qt5imx -hostprefix ~/working/qt5imx -v

            I get the following error.
            ERROR: Feature 'opengles2' was enabled, but the pre-condition '(config.win32 && !features.opengl-dynamic) || (!config.watchos && !features.opengl-desktop && libs.opengl_es2)' failed.

            The only step that did not complete was rsync of the /opt/vc step. What step do I need to take to make this work? I tried replacing /opt/vc/ with root@imx8mn-var-som:/opt/imx-gpu-sdk but that did not help.

            Pablo J. RoginaP Offline
            Pablo J. RoginaP Offline
            Pablo J. Rogina
            wrote on last edited by
            #5

            @aeg1 said in QT on Debian imx 8 Nano:

            ERROR: Feature 'opengles2' was enabled

            Do you really need/plan to use the EGLFS platform backend for your Qt apps running on the device (i.e. one Qt app running in full screen, no window managers...)?

            Upvote the answer(s) that helped you solve the issue
            Use "Topic Tools" button to mark your post as Solved
            Add screenshots via postimage.org
            Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

            A 1 Reply Last reply
            0
            • Pablo J. RoginaP Pablo J. Rogina

              @aeg1 said in QT on Debian imx 8 Nano:

              ERROR: Feature 'opengles2' was enabled

              Do you really need/plan to use the EGLFS platform backend for your Qt apps running on the device (i.e. one Qt app running in full screen, no window managers...)?

              A Offline
              A Offline
              aeg1
              wrote on last edited by
              #6

              @Pablo-J-Rogina IT would be nice, but as long as weston offers a way to just have only one window visible then no not really a window manager is fine. How do I disable the need for it?

              Pablo J. RoginaP 1 Reply Last reply
              0
              • A aeg1

                @Pablo-J-Rogina IT would be nice, but as long as weston offers a way to just have only one window visible then no not really a window manager is fine. How do I disable the need for it?

                Pablo J. RoginaP Offline
                Pablo J. RoginaP Offline
                Pablo J. Rogina
                wrote on last edited by
                #7

                @aeg1 said in QT on Debian imx 8 Nano:

                How do I disable the need for it?

                Have you tried the -no-opengl option to ./configure?
                Please be aware of this issue which seems to be fixed on 5.12 and 5.14 (you didn't state the Qt version you're working with)

                Upvote the answer(s) that helped you solve the issue
                Use "Topic Tools" button to mark your post as Solved
                Add screenshots via postimage.org
                Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                A 1 Reply Last reply
                0
                • Pablo J. RoginaP Pablo J. Rogina

                  @aeg1 said in QT on Debian imx 8 Nano:

                  How do I disable the need for it?

                  Have you tried the -no-opengl option to ./configure?
                  Please be aware of this issue which seems to be fixed on 5.12 and 5.14 (you didn't state the Qt version you're working with)

                  A Offline
                  A Offline
                  aeg1
                  wrote on last edited by
                  #8

                  @Pablo-J-Rogina I had downloaded 5.15, I will try this without opengl if I want to use openGL what do I need to install to make it happen?

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    aeg1
                    wrote on last edited by
                    #9

                    @Pablo-J-Rogina said in QT on Debian imx 8 Nano:

                    -no-opengl

                    Now it configures but fails during the linking on make. I truly appreciate all the help you have provided so far!!

                    /home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/6.3.1/../../../../aarch64-linux-gnu/bin/ld: /home/agarza/working/sysroot/usr/lib/aarch64-linux-gnu/libpthread.a(pthread_create.o)(.text+0x4dc): unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol `__stack_chk_guard@@GLIBC_2.17'
                    /home/agarza/working/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/6.3.1/../../../../aarch64-linux-gnu/bin/ld: final link failed: Bad value
                    collect2: error: ld returned 1 exit status
                    Makefile:1225: recipe for target '../../lib/libQt5Core.so.5.15.0' failed
                    make[3]: *** [../../lib/libQt5Core.so.5.15.0] Error 1
                    make[3]: Leaving directory '/home/agarza/working/qt-everywhere-src-5.15.0/qtbase/src/corelib'
                    Makefile:225: recipe for target 'sub-corelib-make_first' failed
                    make[2]: *** [sub-corelib-make_first] Error 2
                    make[2]: Leaving directory '/home/agarza/working/qt-everywhere-src-5.15.0/qtbase/src'
                    Makefile:50: recipe for target 'sub-src-make_first' failed
                    make[1]: *** [sub-src-make_first] Error 2
                    make[1]: Leaving directory '/home/agarza/working/qt-everywhere-src-5.15.0/qtbase'
                    Makefile:87: recipe for target 'module-qtbase-make_first' failed
                    make: *** [module-qtbase-make_first] Error 2
                    
                    
                    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