I will try to reproduce your way to log the error, maybe can throw some
light on this.
Thanks for your time. I really appreciate it.

El jue., 22 de oct. de 2020 03:53, jonnymo <[email protected]> escribió:

> I've tried to set this up and I am seeing a similar issue.  I piped the
> output to tee and a log file and found it is not able to locate a lib which
> from what I can tell is there.
>
> This is the configure statement I used:
>
> ./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
>
>
> This is what I see in the log file:
>
> /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.
>
> This seems to be what is causing the ending error for the ELS libs.
>
> 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.
>
>
> From what I can tell, the library is located in my sysroot:
>
> $
> * ls -lt sysroot/lib/arm-linux-gnueabihf/libsystemd.so.0lrwxrwxrwx 1
> jomodev jomodev 20 May  9 10:08
> sysroot/lib/arm-linux-gnueabihf/libsystemd.so.0 -> libsystemd.so.0.25.0*
>
>
> Perhaps it is not looking under the sysroot/lib folder but I am not sure.
>
> I did ensure the Opengl ES libs are installed on the Beaglebone and ran
> rsync to bring in the changes to sysroot and the add the lib and include
> ref in the qmake.conf file:
>
> *~/opt/qt5bb/qt-everywhere-src-5.15.1/qtbase/mkspecs/devices/linux-beagleboard-g++/qmake.conf*
>
> *# 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'*
>
>
> I'm not sure why it is failing for the libsystemd.so.0 but will
> continue to look.
>
> Cheers,
>
> Jon
>
>
>
> On Wed, Oct 21, 2020 at 12:51 PM 'Jeremias Ramirez' via BeagleBoard <
> [email protected]> wrote:
>
>> Hi Dennis, thanks for the reply.
>> This is the output of the apt search commands:
>>
>> ubuntu@beaglebone:~$ apt search libgles
>> Sorting... Done
>> Full Text Search... Done
>> libgles1/bionic-updates,now 1.0.0-2ubuntu2.3 armhf [installed,automatic]
>>   Vendor neutral GL dispatch library -- GLESv1 support
>>
>> libgles2/bionic-updates,now 1.0.0-2ubuntu2.3 armhf [installed,automatic]
>>   Vendor neutral GL dispatch library -- GLESv2 support
>>
>> libgles2-mesa/bionic-updates 20.0.8-0ubuntu1~18.04.1 armhf
>>   transitional dummy package
>>
>> libgles2-mesa-dev/bionic-updates,now 20.0.8-0ubuntu1~18.04.1 armhf
>> [installed]
>>   free implementation of the OpenGL|ES 2.x API -- development files
>>
>> ubuntu@beaglebone:~$ apt search libegl
>> Sorting... Done
>> Full Text Search... Done
>> libegl-mesa0/bionic-updates,now 20.0.8-0ubuntu1~18.04.1 armhf
>> [installed,automatic]
>>   free implementation of the EGL API -- Mesa vendor library
>>
>> libegl1/bionic-updates,now 1.0.0-2ubuntu2.3 armhf [installed,automatic]
>>   Vendor neutral GL dispatch library -- EGL support
>>
>> libegl1-mesa/bionic-updates 20.0.8-0ubuntu1~18.04.1 armhf
>>   transitional dummy package
>>
>> libegl1-mesa-dev/bionic-updates,now 20.0.8-0ubuntu1~18.04.1 armhf
>> [installed]
>>   free implementation of the EGL API -- development files
>>
>> Jon, i've looking the links you provided, in fact, i need how to make a
>> configuration like this:
>>
>> VC_LIBRARY_PATH         = $$[QT_SYSROOT]/opt/vc/lib
>> VC_INCLUDE_PATH         = $$[QT_SYSROOT]/opt/vc/include
>>
>> QMAKE_LIBDIR_OPENGL_ES2 = $${VC_LIBRARY_PATH}
>> QMAKE_LIBDIR_EGL        = $$QMAKE_LIBDIR_OPENGL_ES2
>> QMAKE_LIBDIR_OPENVG     = $$QMAKE_LIBDIR_OPENGL_ES2
>>
>> QMAKE_INCDIR_EGL        = \
>>                         $${VC_INCLUDE_PATH} \
>>                         $${VC_INCLUDE_PATH}/interface/vcos/pthreads \
>>                         $${VC_INCLUDE_PATH}/interface/vmcs_host/linux
>> QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL}
>> QMAKE_INCDIR_OPENVG     = $${QMAKE_INCDIR_EGL}
>>
>> QMAKE_LIBS_OPENGL_ES2   = -lGLESv2
>> QMAKE_LIBS_EGL          = -lEGL -lGLESv2
>> QMAKE_LIBS_OPENVG       = -lEGL -lOpenVG -lGLESv2
>>
>> I think, please correct me if i'm wrong, i need to change the  in this
>> folder:
>> sitara@workstation:/opt/qt5bbb/qt5/qtbase/mkspecs/devices/linux-beagleboard-g++$
>> ls
>> qmake.conf  qmake.conf.bkup  qmake.conf.edited  qmake.conf.save
>> qplatformdefs.h
>> (Some of those files are backup while i'm testing)
>>
>> So, right now, my qmake.conf file is:
>>
>> # 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}
>>
>> I try to fill those blanks with my paths, but no one works.
>>
>> I think,  i'm working with the wrong file, or using wrong paths.
>> Do i see changes in the config.log with differents paths?
>> I search inside the log and when it shows the EGL error, only notice me
>> that cant found the libraries on [ ] ,, and thats all, a pair of empty
>> square brackets.
>>
>> Again, thanks for the replies, i'm very glad to have someone to ask and
>> talk, every site or forum with this troubles has at least a few years of
>> inactivity.
>>
>> Jeremias.
>> El miércoles, 21 de octubre de 2020 a las 14:50:49 UTC-3,
>> [email protected] escribió:
>>
>>> If they are doing cross compiling from a remote host, then should they
>>> not be using the BB specific libs under sysroot and not the host OpenGL
>>> libs?
>>>
>>> Jon
>>>
>>> On Wed, Oct 21, 2020 at 10:15 AM Dennis Lee Bieber <[email protected]>
>>> wrote:
>>>
>>>> On Wed, 21 Oct 2020 07:11:31 -0700 (PDT), in
>>>> gmane.comp.hardware.beagleboard.user "'Jeremias Ramirez' via
>>>> BeagleBoard"
>>>> <beagleboard-/[email protected]> wrote:
>>>>
>>>>
>>>> >
>>>> >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.
>>>>
>>>>         Have any of those been installed?
>>>>
>>>> debian@beaglebone:~$ apt search libgles
>>>> Sorting... Done
>>>> Full Text Search... Done
>>>>         <SNIP>
>>>> libgles2/stable 1.1.0-1 armhf
>>>>   Vendor neutral GL dispatch library -- GLESv2 support
>>>>
>>>> libgles2-mesa/unknown 19.1.6-1rcnee2~buster+20200513 armhf
>>>>   transitional dummy package
>>>>
>>>>         <SNIP>
>>>>
>>>>
>>>> debian@beaglebone:~$ apt search libegl
>>>> Sorting... Done
>>>> Full Text Search... Done
>>>>         <SNIP>
>>>> libegl1/stable 1.1.0-1 armhf
>>>>   Vendor neutral GL dispatch library -- EGL support
>>>>
>>>>         <SNIP>
>>>>
>>>>
>>>> --
>>>> Dennis L Bieber
>>>>
>>>> --
>>>> 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 [email protected].
>>>>
>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/beagleboard/anq0pfl2n496limobj3e8lehp8r1v45qb7%404ax.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 [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/beagleboard/74e0cb76-62d8-4f4b-b257-2ca10334612dn%40googlegroups.com
>> <https://groups.google.com/d/msgid/beagleboard/74e0cb76-62d8-4f4b-b257-2ca10334612dn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/CAG99bkpv8JBv15OHy8sCcTLOP7qXNXXBrso9qx6KC7XXm_ua%3DQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/beagleboard/CAG99bkpv8JBv15OHy8sCcTLOP7qXNXXBrso9qx6KC7XXm_ua%3DQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CA%2B7X7njPsjcUJVqaiVfwFb5HR5h9_QmQkbyRXW5zi3AT%2B5YuEg%40mail.gmail.com.

Reply via email to