QT on Debian imx 8 Nano
-
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.
-
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.
@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)?
-
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.
@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...)?
-
@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...)?
-
@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?
@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) -
@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) -
@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