ERROR: The OpenGL functionality tests failed!You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/5a7594ee-6abc-4747-9aa6-525be416382fo%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to beagl...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/edd13bfd-37ba-4504-9701-1946a3940962o%40googlegroups.com.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/anq0pfl2n496limobj3e8lehp8r1v45qb7%404ax.com.
This is what I see in the log file:./configure -no-gcc-sysroot -device linux-beagleboard-g++ -device-option CROSS_COMPILE=~/development/beaglbone/bbbuild/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot ~/development/beaglbone/bbbuild/sysroot -confirm-license -optimized-qmake -reduce-exports -release -make libs -prefix /usr/local/qt5bbb -extprefix /usr/local/qt5bbb -hostprefix /usr/local/qt5bbb -qt-zlib -qt-libpng -no-openssl -opengl es2 -eglfs -v |& tee ~/development/beaglbone/bbbuild/config-bbgr.log
/home/jomodev/development/beaglbone/bbbuild/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -mfloat-abi=hard --sysroot=/home/jomodev/development/beaglbone/bbbuild/sysroot -Wl,-O1 -o dbus main.o -L/home/jomodev/development/beaglbone/bbbuild/sysroot/usr/lib/arm-linux-gnueabihf -ldbus-1 -lrt -lpthread -ldl> /home/jomodev/development/beaglbone/bbbuild/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/7.5.0/../../../../arm-linux-gnueabihf/bin/ld: warning: libsystemd.so.0, needed by /home/jomodev/development/beaglbone/bbbuild/sysroot/usr/lib/arm-linux-gnueabihf/libdbus-1.so, not found (try using -rpath or -rpath-link)> /home/jomodev/development/beaglbone/bbbuild/sysroot/usr/lib/arm-linux-gnueabihf/libdbus-1.so: undefined reference to `sd_listen_fds@LIBSYSTEMD_209'> /home/jomodev/development/beaglbone/bbbuild/sysroot/usr/lib/arm-linux-gnueabihf/libdbus-1.so: undefined reference to `sd_is_socket@LIBSYSTEMD_209'> collect2: error: ld returned 1 exit status> Makefile:69: recipe for target 'dbus' failed> make: *** [dbus] Error 1=> source failed verification.Trying source 1 (type inline) of library dbus ...=> source failed condition 'config.win32'.Trying source 2 (type inline) of library dbus ...dbus/dbus.h not found in [] and global paths.
=> source produced no result.
Note: -optimized-tools is not useful in -release mode.ERROR: Feature 'opengles2' was enabled, but the pre-condition '(config.win32 && !features.opengl-dynamic) || (!config.watchos && !features.opengl-desktop && libs.opengl_es2)' failed.ERROR: Feature 'eglfs' was enabled, but the pre-condition '!config.android && !config.darwin && !config.win32 && !config.wasm && features.egl' failed.
ERROR: The OpenGL functionality tests failed!You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.
$ ls -lt sysroot/lib/arm-linux-gnueabihf/libsystemd.so.0
lrwxrwxrwx 1 jomodev jomodev 20 May 9 10:08 sysroot/lib/arm-linux-gnueabihf/libsystemd.so.0 -> libsystemd.so.0.25.0
# Extra stuff (OpenGL, DirectFB, ...)
QMAKE_INCDIR_EGL = '/home/jomodev/development/beaglbone/bbbuild/sysroot/usr/include'QMAKE_LIBDIR_EGL = '/home/jomodev/development/beaglbone/bbbuild/sysroot/usr/lib/arm-linux-gnueabihf/libGLESv2.so.2.1.0'
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/74e0cb76-62d8-4f4b-b257-2ca10334612dn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAG99bkpv8JBv15OHy8sCcTLOP7qXNXXBrso9qx6KC7XXm_ua%3DQ%40mail.gmail.com.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/ar73pf5pvhj95r1fn293kjk4r8m75f7i0p%404ax.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CA%2B7X7njBXiEbyTJ%3D7WZZHdhn_sMW0BtkFf%2BJXNUgeHRPyhjVAA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAG99bkqvpyg%2BC4yXW1RzB2ORDKPYeCaO2fJbx78RybnCY%2BHz%3DA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CA%2B7X7nhrtzv0WfDrQF_-YZDXTeDGtwC3a37fJn%3DtMC9-4X61wA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAG99bkqdg3104Ho8pCLbmjQeweBuVnWJPB_awP8QnP%2BoutKcVQ%40mail.gmail.com.
QMAKE_LFLAGS += -Wl,-rpath-link,$$[QT_SYSROOT]/lib
# Extra stuff (OpenGL, DirectFB, ...)
QMAKE_INCDIR_EGL = $$[QT_SYSROOT]/usr/include \
$$[QT_SYSROOT]/usr/include/GLES2 \
$$[QT_SYSROOT]/usr/include/arm-linux-gnueabihf \
$$[QT_SYSROOT]/usr/include/arm-linux-gnueabihf/bits
QMAKE_LIBDIR_EGL = $$[QT_SYSROOT]/lib \
$$[QT_SYSROOT]/usr/lib \
$$[QT_SYSROOT]/usr/lib/arm-linux-gnueabihf
QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL}
QMAKE_LIBDIR_OPENGL_ES2 = $${QMAKE_LIBDIR_EGL}
QMAKE_INCDIR_OPENVG = $${QMAKE_INCDIR_EGL}
QMAKE_LIBDIR_OPENVG = $${QMAKE_LIBDIR_EGL}
QMAKE_LIBS_EGL = -lEGL -lIMGegl -lsrv_umQMAKE_LIBS_OPENGL_ES2 = -lGLESv2 $${QMAKE_LIBS_EGL}QMAKE_LIBS_OPENVG = -lOpenVG $${QMAKE_LIBS_EGL}
DISTRO_OPTS += hard-float# No need for any special EGL device integration.# Prioritize the default, compiled-in integration over any plugins.
+ PKG_CONFIG_SYSROOT_DIR=/home/jomodev/development/beaglbone/bbbuild/sysroot PKG_CONFIG_LIBDIR=/home/jomodev/development/beaglbone/bbbuild/sysroot/usr/lib/pkgconfig:/home/jomodev/development/beaglbone/bbbuild/sysroot/usr/share/pkgconfig:/home/jomodev/development/beaglbone/bbbuild/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --cflags glesv2
header entry 'config.qtbase_gui.libraries.opengl_es2.headers.0' passed condition.
GLES2/gl2.h not found in [] and global paths.
=> source produced no result.
Trying source 1 (type makeSpec) of library opengl_es2 ...
I know gl2.h is in sysroot so perhaps there is a Path not set properly.None of [libIMGegl.so libIMGegl.a] found in [/home/jomodev/development/beaglbone/bbbuild/sysroot/lib /home/jomodev/development/beaglbone/bbbuild/sysroot/usr/lib /home/jomodev/development/beaglbone/bbbuild/sysroot/usr/lib/arm-linux-gnueabihf] and global paths.
The adventure continues.$ find sysroot/ -name "gl2.h"sysroot/usr/include/GLES2/gl2.h
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CA%2B7X7ni3a5dGgkqiK0VuwYffdf7Vrz4NVt%3DVkMwohhk-it7G8Q%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAG99bko%3DuRYs2FN5%2BG5nEsOdyUAeYSqQnT%2BY6GO9OMfPWJzg%2Bw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CA%2B7X7njmJw4m6Wy-5E4sB56W0_Rxe2eq_4w%2Bes9CPeSQAJw6%3Dw%40mail.gmail.com.
prefix ~/opt/qt512bb/installextprefix ~/opt/qt512bb/binarieshostprefix ~/opt/qt512bb/tool
mkdir -p ~/opt/qt512bb/buildcd ~/opt/qt512bb/build
../qt-everywhere-src-5.12.5/configure -platform linux-g++-64 -release -opengl es2 -device linux-beagleboard-g++ -device-option CROSS_COMPILE=~/develop/bbuild/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot ~/develop/bbuild/sysroot -opensource -confirm-license -make libs -prefix ~/opt/qt512bb/install -extprefix ~/opt/qt512bb/binaries -hostprefix ~/opt/qt512bb/tool -nomake tests -v -libdir ~/develop/bbuild/sysroot/lib/arm-linux-gnueabihf
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/a5b64ee4-3633-43eb-bdc1-c46c301e089fn%40googlegroups.com.
mkdir -p sysroot/{lib,sbin,usr/{include,lib,bin},etc/alternatives}
rsync -avz deb...@192.168.7.2:/lib sysroot/
rsync -avz deb...@192.168.7.2:/sbin sysroot/
rsync -avz deb...@192.168.7.2:/usr/include sysroot/usr
rsync -avz deb...@192.168.7.2:/usr/lib sysroot/usr
rsync -avz deb...@192.168.7.2:/usr/bin sysroot/usr
rsync -avz deb...@192.168.7.2:/etc/alternatives sysroot/etc
This is the qmake.conf that I am usingchmod +x sysroot-relativelinks.py./sysroot-relativelinks.py sysroot
## qmake configuration for the BeagleBoard and BeagleBoard xM boardsMAKEFILE_GENERATOR = UNIXCONFIG += incrementalQMAKE_INCREMENTAL_STYLE = sublib#include(../../common/linux.conf)#include(../../common/gcc-base-unix.conf)#include(../../common/g++-unix.conf)include(../common/linux_device_pre.conf)load(device_config)QT_QPA_DEFAULT_PLATFORM = eglfs# modifications to g++.confQMAKE_CC = $${CROSS_COMPILE}gccQMAKE_CXX = $${CROSS_COMPILE}g++QMAKE_LINK = $${QMAKE_CXX}QMAKE_LINK_SHLIB = $${QMAKE_CXX}# modifications to linux.confQMAKE_AR = $${CROSS_COMPILE}ar cqsQMAKE_OBJCOPY = $${CROSS_COMPILE}objcopyQMAKE_NM = $${CROSS_COMPILE}nm -PQMAKE_STRIP = $${CROSS_COMPILE}stripCOMPILER_FLAGS = -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb#modifications to gcc-base.confQMAKE_CFLAGS += $${COMPILER_FLAGS}QMAKE_CXXFLAGS += $${COMPILER_FLAGS}QMAKE_CXXFLAGS_RELEASE += -O3INCLUDEPATH += /home/bbbuild/develop/bbuild/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include/c++/7.5.0QMAKE_LIBS += -lrt -lpthread -ldl
# Extra stuff (OpenGL, DirectFB, ...)
QMAKE_INCDIR_EGL = /home/bbbuild/develop/bbuild/sysroot/usr/includeQMAKE_LIBDIR_EGL = /home/bbbuild/develop/bbuild/sysroot/usr/lib/arm-linux-gnueabihf
QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL}QMAKE_LIBDIR_OPENGL_ES2 = $${QMAKE_LIBDIR_EGL}QMAKE_INCDIR_OPENVG = $${QMAKE_INCDIR_EGL}QMAKE_LIBDIR_OPENVG = $${QMAKE_LIBDIR_EGL}
#QMAKE_LIBS_EGL = -lEGL -lIMGegl -lsrv_umQMAKE_LIBS_EGL = -lEGL
QMAKE_LIBS_OPENGL_ES2 = -lGLESv2 $${QMAKE_LIBS_EGL}QMAKE_LIBS_OPENVG = -lOpenVG $${QMAKE_LIBS_EGL}DISTRO_OPTS += hard-float# No need for any special EGL device integration.# Prioritize the default, compiled-in integration over any plugins.
Note, I had to add an INCLUDEPATH entry to point to the includes in the toolchain since qmake was not finding it.EGLFS_DEVICE_INTEGRATION = noneinclude(../common/linux_arm_device_post.conf)load(qt_config)
../qt-everywhere-src-5.12.5/configure -platform linux-g++-64 -prefix /home/bbbuild/opt/qt512bb/qt512 -extprefix /home/bbbuild/opt/qt512bb/binaries -hostprefix /home/bbbuild/opt/qt512bb/tool -release -opengl es2 -device linux-beagleboard-g++ -device-option CROSS_COMPILE=/home/bbbuild/develop/bbuild/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-sql-tds -sysroot /home/bbbuild/develop/bbuild/sysroot -opensource -confirm-license -skip qtwayland -skip qtlocation -skip qtscript -make libs -nomake examples -nomake tests -v -no-gbm
EGL .................................... yesOpenVG ................................. noOpenGL:Desktop OpenGL ....................... noOpenGL ES 2.0 ........................ yesOpenGL ES 3.0 ........................ yesOpenGL ES 3.1 ........................ yesOpenGL ES 3.2 ........................ yesVulkan ................................. yesSession Management ..................... yesFeatures used by QPA backends:evdev .................................. yeslibinput ............................... yesINTEGRITY HID .......................... nomtdev .................................. yestslib .................................. yesxkbcommon .............................. yesX11 specific:XLib ................................. yesXCB Xlib ............................. yesEGL on X11 ........................... yesQPA backends:DirectFB ............................... noEGLFS .................................. yesEGLFS details:EGLFS OpenWFD ........................ noEGLFS i.Mx6 .......................... noEGLFS i.Mx6 Wayland .................. noEGLFS RCAR ........................... noEGLFS EGLDevice ...................... yesEGLFS GBM ............................ noEGLFS VSP2 ........................... noEGLFS Mali ........................... noEGLFS Raspberry Pi ................... noEGLFS X11 ............................ yesLinuxFB ................................ yesVNC .................................... yesMir client ............................. no
I hope this helps.~/opt/qt512bb$ ls -lt binaries/total 52drwxr-xr-x 2 bbbuild bbbuild 12288 Oct 25 19:00 translationsdrwxr-xr-x 23 bbbuild bbbuild 4096 Oct 25 19:00 qmldrwxr-xr-x 80 bbbuild bbbuild 4096 Oct 25 19:00 includedrwxr-xr-x 4 bbbuild bbbuild 20480 Oct 25 19:00 libdrwxr-xr-x 2 bbbuild bbbuild 4096 Oct 25 19:00 bindrwxr-xr-x 25 bbbuild bbbuild 4096 Oct 25 18:59 pluginsdrwxr-xr-x 3 bbbuild bbbuild 4096 Oct 25 18:58 doc
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/49d42773-bfdf-4cce-a94a-96314c7e1013n%40googlegroups.com.