could not find qtplatfom plugin eglfs
-
@Asha Please take a look at https://doc.qt.io/qt-5/embedded-linux.html
"we are using linux backend" - which one? -
-
@jsulm Hi ,Thank you for you guide...
I found which plugin is running on my board,
That is eglfs only,with this link https://doc.qt.io/qt-5/embedded-linux.html
for beagleboneboard my build directory is Qt5,
I got the information in the folder below
cd /home/beagle/Qt5/mkspecs/devices/linux-beagleboard-g++/qmake.conf
in qmake.conf file
QT_QPA_DEFAULT_PLATFORM = eglfs
so now,how to proceed next?
can i change the QT_QPA_DEFAULT_PLATFORM in that file ?
or need to configure with eglfs only?
-
@Asha said in could not find qtplatfom plugin eglfs:
in the mentioned the path i got it(dont no its currect or not just guessed)
Sorry, I don't get it. What was the output of configure? Did it say eglfs was activated?
-
I have extracted qt source code,that can be mmoved in QT5 directory,
in QT5/qtbase/mkspecs/devices/linux-beagleboard-g++/qmake.conf file,
the line presene QT_QPA_DEFAULT_PLATFORM= eglfs...
so now i need to configure,
I need to mentioned eglfs in my configure line,so
./configure -platform linux-g++ -release -device linux-beagleboard-g++ -sysroot /home/beagle/BB/sysroot -prefix /home/debian/Qt5ForBBB -hostprefix ~/Qt5ForBBB -device-option CROSS_COMPILE="path" -egl -eglfs -nomake tests -nomake examples -skip qtconnectivitty -recheck-all -v
this is correct?
-
@Asha said in could not find qtplatfom plugin eglfs:
how do i activate it?
Check the configure log to see what was missing (I'm quite sure that I already suggested that before).
-
@jsulm Hi,
about eglfs i got this type error,
looking for library opengl_es2
Trying source 0 (type pkgConfig) of library opengl_es2 ...- PKG_CONFIG_SYSROOT_DIR=/home/beagle/BB/sysroot PKG_CONFIG_LIBDIR=/home/beagle/BB/sysroot/usr/lib/pkgconfig:/home/beagle/BB/sysroot/usr/share/pkgconfig:/home/beagle/BB/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --exists --silence-errors glesv2
pkg-config did not find package.
=> source produced no result.
Trying source 1 (type makeSpec) of library opengl_es2 ...
None of [libGLESv2.so libGLESv2.a] found in [] and global paths.
None of [libEGL.so libEGL.a] found in [] and global paths.
None of [libIMGegl.so libIMGegl.a] found in [] and global paths.
None of [libsrv_um.so libsrv_um.a] found in [] and global paths.
=> source produced no result.
test config.qtbase_gui.libraries.opengl_es2 FAILED
Any ideas ,how do I slove this?
- PKG_CONFIG_SYSROOT_DIR=/home/beagle/BB/sysroot PKG_CONFIG_LIBDIR=/home/beagle/BB/sysroot/usr/lib/pkgconfig:/home/beagle/BB/sysroot/usr/share/pkgconfig:/home/beagle/BB/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --exists --silence-errors glesv2
-
Hi,
Do you have any of these libraries available on your sysroot ?
If not then install the corresponding development package for your target. -
@SGaist thank you for the replay,
but i am not getting the path ,where i have to search those libraries...if you have idea then please let me know the path of those libraries...
/home/beagle/BBB1/sysroot/lib/arm-linux-gnueabihf(is it correct)...
-
After configuring ,I am getting the errors
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 'egl' was enabled, but the pre-condition '(features.opengl || features.openvg) && (features.angle || libs.egl)' 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.while checking the config.log file,i understood in my sysroot ,I dont have the libegl packages,how to install those packages? please guide me....
in my qmake.conf file
QMAKE_INCDIR_EGL=
QMAKE_LIBDIR_EGL=this both are empty...what i need to specify there...below is the attachement of my qmake.conf file please go throught that one.....
code_text# # qmake configuration for the BeagleBoard and BeagleBoard xM boards # http://beagleboard.org/ MAKEFILE_GENERATOR = UNIX CONFIG += incremental QMAKE_INCREMENTAL_STYLE = sublib include(../../common/linux.conf) include(../../common/gcc-base-unix.conf) include(../../common/g++-unix.conf) load(device_config) QT_QPA_DEFAULT_PLATFORM = eglfs # modifications to g++.conf QMAKE_CC = $${CROSS_COMPILE}gcc QMAKE_CXX = $${CROSS_COMPILE}g++ QMAKE_LINK = $${QMAKE_CXX} QMAKE_LINK_SHLIB = $${QMAKE_CXX} # modifications to linux.conf QMAKE_AR = $${CROSS_COMPILE}ar cqs QMAKE_OBJCOPY = $${CROSS_COMPILE}objcopy QMAKE_NM = $${CROSS_COMPILE}nm -P QMAKE_STRIP = $${CROSS_COMPILE}strip COMPILER_FLAGS = -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb #modifications to gcc-base.conf QMAKE_CFLAGS += $${COMPILER_FLAGS} QMAKE_CXXFLAGS += $${COMPILER_FLAGS} QMAKE_CXXFLAGS_RELEASE += -O3 QMAKE_LIBS += -lrt -lpthread -ldl # Extra stuff (OpenGL, DirectFB, ...) QMAKE_INCDIR_EGL = QMAKE_LIBDIR_EGL = 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_um 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. EGLFS_DEVICE_INTEGRATION = eglfs include(../common/linux_arm_device_post.conf) load(qt_config)
-
@Asha said in could not find qtplatfom plugin eglfs:
I dont have the libegl packages,how to install those packages?
As any other packages...
On my Ubuntu machine it is:apt install libegl1-mesa-dev
Please learn to search for needed packages by yourself:
apt search libegl