Re: [beagleboard] Re: Cannot properly ./configure to install Qt with eglfs and opegles2 support.

2020-10-21 Thread jonnymo
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 <
beagleboard@googlegroups.com> 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.

Re: [beagleboard] Re: Cannot properly ./configure to install Qt with eglfs and opegles2 support.

2020-10-21 Thread 'Jeremias Ramirez' via BeagleBoard
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, jonn...@gmail.com 
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  
> wrote:
>
>> On Wed, 21 Oct 2020 07:11:31 -0700 (PDT), in
>> gmane.comp.hardware.beagleboard.user "'Jeremias Ramirez' via BeagleBoard"
>>  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
>> 
>> 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
>>
>> 
>>
>>
>> debian@beaglebone:~$ apt search libegl
>> Sorting... Done
>> Full Text Search... Done
>> 
>> libegl1/stable 1.1.0-1 armhf
>>   Vendor neutral GL dispatch library -- EGL support
>>
>> 
>>
>>
>> -- 
>> 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 beagleboard

Re: [beagleboard] Re: Cannot properly ./configure to install Qt with eglfs and opegles2 support.

2020-10-21 Thread jonnymo
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 <
dennis.l.bie...@gmail.com> wrote:

> On Wed, 21 Oct 2020 07:11:31 -0700 (PDT), in
> gmane.comp.hardware.beagleboard.user "'Jeremias Ramirez' via BeagleBoard"
>  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
> 
> 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
>
> 
>
>
> debian@beaglebone:~$ apt search libegl
> Sorting... Done
> Full Text Search... Done
> 
> libegl1/stable 1.1.0-1 armhf
>   Vendor neutral GL dispatch library -- EGL support
>
> 
>
>
> --
> 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 beagleboard+unsubscr...@googlegroups.com.
> 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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAG99bkrBba206nKWOOPCL%3Df19s0SYjrR%2Bqg1m4kzmaPJSWXvYQ%40mail.gmail.com.


[beagleboard] Re: Cannot properly ./configure to install Qt with eglfs and opegles2 support.

2020-10-21 Thread Dennis Lee Bieber
On Wed, 21 Oct 2020 07:11:31 -0700 (PDT), in
gmane.comp.hardware.beagleboard.user "'Jeremias Ramirez' via BeagleBoard"
 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

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




debian@beaglebone:~$ apt search libegl
Sorting... Done
Full Text Search... Done

libegl1/stable 1.1.0-1 armhf
  Vendor neutral GL dispatch library -- EGL support




-- 
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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/anq0pfl2n496limobj3e8lehp8r1v45qb7%404ax.com.


Re: [beagleboard] Cannot properly ./configure to install Qt with eglfs and opegles2 support.

2020-10-21 Thread jonnymo
These should be set in the qmake.conf:
Ref:
  https://wlhe.github.io/2018/01/Build-Qt5.10-for-Raspberry-PI3
  https://doc.qt.io/qt-5/qmake-variable-reference.html

More References:

https://forum.qt.io/topic/71850/opengl-es2-cross-compile-for-beaglebone-black-using-os-debian-when-built-qt5-7-0/15
   https://groups.google.com/g/beagleboard/c/Xx6NxdUkqAw/m/fNCXyFJXBwAJ

See Robert's note about installing QT:

https://groups.google.com/forum/embed/?place=forum/beagleboard&showsearch=true&showpopout=true&showtabs=false&hideforumtitle=true&parenturl=https%3A%2F%2Fbeagleboard.org%2Fdiscuss#!searchin/beagleboard/qt$20egl|sort:date/beagleboard/hpgDq4pj0YQ/9NN-OIRUAQAJ


Cheers,

Jon


On Wed, Oct 21, 2020 at 9:24 AM 'Jeremias Ramirez' via BeagleBoard <
beagleboard@googlegroups.com> wrote:

> Hi Jon, thank you for the reply.
>
> Thanks for the link, the first may be useful later, when this works.
> The mailing links, are unavailale for me.
>
> About the QMAKE variables, I try to change the paths on qmake.conf within
> the beagleboard device folder, but i dont know if I'm doing it wrong or
> something else because the error doesn't seem to change.
>
> At least my configurations doesn't aply to those empty [].
> None of [libGLESv2.so libGLESv2.a] found in [] and global paths.
>
> Do you know how to edit those paths inside the ./configure command line to
> be sure be applied?
>
> Thanks for the link, the first may be useful later, when this works.
> The mailing links, are unavailale for me.
>
> Thank you very much for your time.
>
> El miércoles, 21 de octubre de 2020, 12:18:40 (UTC-3), jonnymo escribió:
>>
>> For EGLS on the Beaglebone, I found this site to be useful:
>>
>> https://elinux.org/BeagleBoneBlack/SGX_%2B_Qt_EGLFS_%2B_Weston#QtQuick_.2B_EGLFS
>>
>> These previous posts might be helpful to you as well:
>>
>> https://mail.google.com/mail/u/0/?tab=rm&ogbl#search/eglfs/FMfcgxwHNDCsxVdDfLbmTGZpHNmfxJPC
>>
>>
>> https://mail.google.com/mail/u/0/?tab=rm&ogbl#search/eglfs/FMfcgxwDqTfbHNjgxpDXtlXccKJmMgCS
>>
>> For the error you are seeing, do you have the QMAKE environment variables
>> set as the error suggests?  The should point to your sysroot location:
>>
>> 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.
>>
>>
>>
>> Cheers,
>>
>> Jon
>>
>>
>> On Wed, Oct 21, 2020 at 7:11 AM 'Jeremias Ramirez' via BeagleBoard <
>> beagl...@googlegroups.com> wrote:
>>
>>> Hello to everyone.
>>> I'm Jeremias, from Argentina.
>>> Recently I started working with the BBB and Qt software.
>>> Tooks me a long time, but i finally be able to install it and make some
>>> tests.
>>> But, i never can run an app using eglfs, when I run an Qt example
>>> project , i get:
>>>
>>> Could not find the Qt platform plugin "eglfs" in ""
>>>
>>> After a time, i see i never install so many things within the Qt
>>> installation, so i read a lot and i start over again.
>>> But,  in the ./configure step, i got this error:
>>>
>>> My configure:
>>>
>>> sudo ./configure -no-gcc-sysroot -device linux-beagleboard-g++
>>> -device-option
>>> CROSS_COMPILE=/opt/gcc-linaro-7.5.0-2019.12-x86_64_armv8l-linux-gnueabihf/bin/armv8l-linux-gnueabihf-
>>> -sysroot /mnt/bbb-rootfs -opensource -confirm-license -optimized-qmake
>>> -reduce-exports -release -make libs -prefix /usr/local/qt5bbb -hostprefix
>>> /usr/local/qt5bbb -qt-zlib -qt-libpng -no-openssl -opengl es2 -eglfs -v
>>>
>>> Error:
>>>
>>> ERROR: Feature 'opengles2' was enabled, but the pre-condition
>>> 'config.win32 || (!config.watchos && !features.opengl-desktop &&
>>> libs.opengl_es2)' failed.
>>>
>>> ERROR: Feature 'eglfs' was enabled, but the pre-condition
>>> '!config.android && !config.darwin && !config.win32 && 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.
>>>
>>> Config.log snippet:
>>>
>>> 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.
>>>
>>> I'm really trying to fix it by myself, but i can't, i don't want to give
>>> up with this...
>>>
>>> Thanks in advice for any reply.
>>>
>>> --
>>> 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 beagl...@googlegroup

Re: [beagleboard] Cannot properly ./configure to install Qt with eglfs and opegles2 support.

2020-10-21 Thread 'Jeremias Ramirez' via BeagleBoard
Hi Jon, thank you for the reply.

Thanks for the link, the first may be useful later, when this works.
The mailing links, are unavailale for me.

About the QMAKE variables, I try to change the paths on qmake.conf within 
the beagleboard device folder, but i dont know if I'm doing it wrong or 
something else because the error doesn't seem to change.

At least my configurations doesn't aply to those empty [].
None of [libGLESv2.so libGLESv2.a] found in [] and global paths.

Do you know how to edit those paths inside the ./configure command line to 
be sure be applied?

Thanks for the link, the first may be useful later, when this works.
The mailing links, are unavailale for me.

Thank you very much for your time.

El miércoles, 21 de octubre de 2020, 12:18:40 (UTC-3), jonnymo escribió:
>
> For EGLS on the Beaglebone, I found this site to be useful:
>
> https://elinux.org/BeagleBoneBlack/SGX_%2B_Qt_EGLFS_%2B_Weston#QtQuick_.2B_EGLFS
>
> These previous posts might be helpful to you as well:
>
> https://mail.google.com/mail/u/0/?tab=rm&ogbl#search/eglfs/FMfcgxwHNDCsxVdDfLbmTGZpHNmfxJPC
>
>
> https://mail.google.com/mail/u/0/?tab=rm&ogbl#search/eglfs/FMfcgxwDqTfbHNjgxpDXtlXccKJmMgCS
>
> For the error you are seeing, do you have the QMAKE environment variables 
> set as the error suggests?  The should point to your sysroot location:
>
> 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.  
>
>
>
> Cheers,
>
> Jon 
>
>
> On Wed, Oct 21, 2020 at 7:11 AM 'Jeremias Ramirez' via BeagleBoard <
> beagl...@googlegroups.com > wrote:
>
>> Hello to everyone.
>> I'm Jeremias, from Argentina.
>> Recently I started working with the BBB and Qt software.
>> Tooks me a long time, but i finally be able to install it and make some 
>> tests.
>> But, i never can run an app using eglfs, when I run an Qt example project 
>> , i get:
>>
>> Could not find the Qt platform plugin "eglfs" in ""
>>
>> After a time, i see i never install so many things within the Qt 
>> installation, so i read a lot and i start over again.
>> But,  in the ./configure step, i got this error:
>>
>> My configure:
>>
>> sudo ./configure -no-gcc-sysroot -device linux-beagleboard-g++ 
>> -device-option 
>> CROSS_COMPILE=/opt/gcc-linaro-7.5.0-2019.12-x86_64_armv8l-linux-gnueabihf/bin/armv8l-linux-gnueabihf-
>>  
>> -sysroot /mnt/bbb-rootfs -opensource -confirm-license -optimized-qmake 
>> -reduce-exports -release -make libs -prefix /usr/local/qt5bbb -hostprefix 
>> /usr/local/qt5bbb -qt-zlib -qt-libpng -no-openssl -opengl es2 -eglfs -v
>>
>> Error:
>>
>> ERROR: Feature 'opengles2' was enabled, but the pre-condition 
>> 'config.win32 || (!config.watchos && !features.opengl-desktop && 
>> libs.opengl_es2)' failed.
>>
>> ERROR: Feature 'eglfs' was enabled, but the pre-condition 
>> '!config.android && !config.darwin && !config.win32 && 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.
>>
>> Config.log snippet:
>>
>> 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.
>>
>> I'm really trying to fix it by myself, but i can't, i don't want to give 
>> up with this...
>>
>> Thanks in advice for any reply.
>>
>> -- 
>> 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 beagl...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/beagleboard/5a7594ee-6abc-4747-9aa6-525be416382fo%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/edd13bfd-37ba-4504-9701-1946a3940962o%40googlegroups.com.


Re: [beagleboard] Re: CrossCompile Qt application on Beaglebone Black

2020-10-21 Thread jonnymo
Did you install the EGL libs on the BB?  This link might be helpful.
https://elinux.org/BeagleBoneBlack/SGX_%2B_Qt_EGLFS_%2B_Weston#QtQuick_.2B_EGLFS


Cheers,

Jon

On Wed, Oct 21, 2020 at 6:54 AM 'Jeremias Ramirez' via BeagleBoard <
beagleboard@googlegroups.com> wrote:

> Hi buddy, i know this is very old, but, you finally solve it? I'm fighting
> with same trouble.
>
> El domingo, 19 de febrero de 2017, 10:52:21 (UTC-3), davide brunelli
> escribió:
>>
>> Goodmorning to all,
>> I'm a newbie of Linux Embedded System although I've got experience with
>> microcontroller. I'm trying to crosscompile GUI applications, creating them
>> on my host machine using QT and compile and deploy them on my Beaglebone
>> black. I've followed the tutorial:
>>
>> *http://armsdr.blogspot.it/2014/01/bare-metal-qt-52-on-beaglebone-black.html
>> *
>>
>> I succeeded to crosscompile simple applications, but I cannot make GUI
>> applications because I get the following error:
>>
>>
>> This application failed to start because it could not find or load the Qt
>> platform plugin "eglfs".
>>
>>
>> Available platform plugins are: linuxfb, minimal, offscreen.
>>
>>
>> Reinstalling the application may fix this problem.
>>
>> bash: line 1: 1465 Aborted DISPLAY=':0.0' /home/ubuntu/HelloWorldGUI
>>
>> Application finished with exit code 134.
>>
>>
>> Looking the plugins in the path /usr/local/qt-5.2/plugins/platforms, I
>> can see only the following ones:
>>
>>
>> *libqlinuxfb.so libqminimal.so libqoffscreen.so*
>>
>>
>> It seems to me that I don't have the necessary plugins. Can you help me?
>> It would be highly appreciate.
>>
>> Thank you.
>>
>>
>>
>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/b51fcaa4-93da-4306-9d07-2e6794cb0485o%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAG99bkpU1_wcH3BytrRN5cyAOz%2BpmVaj0KEC%2BzDNmQsCmALrVA%40mail.gmail.com.


Re: [beagleboard] Cannot properly ./configure to install Qt with eglfs and opegles2 support.

2020-10-21 Thread jonnymo
For EGLS on the Beaglebone, I found this site to be useful:
https://elinux.org/BeagleBoneBlack/SGX_%2B_Qt_EGLFS_%2B_Weston#QtQuick_.2B_EGLFS

These previous posts might be helpful to you as well:
https://mail.google.com/mail/u/0/?tab=rm&ogbl#search/eglfs/FMfcgxwHNDCsxVdDfLbmTGZpHNmfxJPC

https://mail.google.com/mail/u/0/?tab=rm&ogbl#search/eglfs/FMfcgxwDqTfbHNjgxpDXtlXccKJmMgCS

For the error you are seeing, do you have the QMAKE environment variables
set as the error suggests?  The should point to your sysroot location:

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.



Cheers,

Jon


On Wed, Oct 21, 2020 at 7:11 AM 'Jeremias Ramirez' via BeagleBoard <
beagleboard@googlegroups.com> wrote:

> Hello to everyone.
> I'm Jeremias, from Argentina.
> Recently I started working with the BBB and Qt software.
> Tooks me a long time, but i finally be able to install it and make some
> tests.
> But, i never can run an app using eglfs, when I run an Qt example project
> , i get:
>
> Could not find the Qt platform plugin "eglfs" in ""
>
> After a time, i see i never install so many things within the Qt
> installation, so i read a lot and i start over again.
> But,  in the ./configure step, i got this error:
>
> My configure:
>
> sudo ./configure -no-gcc-sysroot -device linux-beagleboard-g++
> -device-option
> CROSS_COMPILE=/opt/gcc-linaro-7.5.0-2019.12-x86_64_armv8l-linux-gnueabihf/bin/armv8l-linux-gnueabihf-
> -sysroot /mnt/bbb-rootfs -opensource -confirm-license -optimized-qmake
> -reduce-exports -release -make libs -prefix /usr/local/qt5bbb -hostprefix
> /usr/local/qt5bbb -qt-zlib -qt-libpng -no-openssl -opengl es2 -eglfs -v
>
> Error:
>
> ERROR: Feature 'opengles2' was enabled, but the pre-condition
> 'config.win32 || (!config.watchos && !features.opengl-desktop &&
> libs.opengl_es2)' failed.
>
> ERROR: Feature 'eglfs' was enabled, but the pre-condition '!config.android
> && !config.darwin && !config.win32 && 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.
>
> Config.log snippet:
>
> 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.
>
> I'm really trying to fix it by myself, but i can't, i don't want to give
> up with this...
>
> Thanks in advice for any reply.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/5a7594ee-6abc-4747-9aa6-525be416382fo%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAG99bkrN9zUxtTXpmK49s5NUYAvzNgzAEyO8TyJ1S-ZFFcnkAQ%40mail.gmail.com.


[beagleboard] Cannot properly ./configure to install Qt with eglfs and opegles2 support.

2020-10-21 Thread 'Jeremias Ramirez' via BeagleBoard
Hello to everyone.
I'm Jeremias, from Argentina.
Recently I started working with the BBB and Qt software.
Tooks me a long time, but i finally be able to install it and make some 
tests.
But, i never can run an app using eglfs, when I run an Qt example project , 
i get:

Could not find the Qt platform plugin "eglfs" in ""

After a time, i see i never install so many things within the Qt 
installation, so i read a lot and i start over again.
But,  in the ./configure step, i got this error:

My configure:

sudo ./configure -no-gcc-sysroot -device linux-beagleboard-g++ 
-device-option 
CROSS_COMPILE=/opt/gcc-linaro-7.5.0-2019.12-x86_64_armv8l-linux-gnueabihf/bin/armv8l-linux-gnueabihf-
 
-sysroot /mnt/bbb-rootfs -opensource -confirm-license -optimized-qmake 
-reduce-exports -release -make libs -prefix /usr/local/qt5bbb -hostprefix 
/usr/local/qt5bbb -qt-zlib -qt-libpng -no-openssl -opengl es2 -eglfs -v

Error:

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

ERROR: Feature 'eglfs' was enabled, but the pre-condition '!config.android 
&& !config.darwin && !config.win32 && 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.

Config.log snippet:

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.

I'm really trying to fix it by myself, but i can't, i don't want to give up 
with this...

Thanks in advice for any reply.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/5a7594ee-6abc-4747-9aa6-525be416382fo%40googlegroups.com.


[beagleboard] Re: CrossCompile Qt application on Beaglebone Black

2020-10-21 Thread 'Jeremias Ramirez' via BeagleBoard
Hi buddy, i know this is very old, but, you finally solve it? I'm fighting 
with same trouble.

El domingo, 19 de febrero de 2017, 10:52:21 (UTC-3), davide brunelli 
escribió:
>
> Goodmorning to all,
> I'm a newbie of Linux Embedded System although I've got experience with 
> microcontroller. I'm trying to crosscompile GUI applications, creating them 
> on my host machine using QT and compile and deploy them on my Beaglebone 
> black. I've followed the tutorial:
>
> *http://armsdr.blogspot.it/2014/01/bare-metal-qt-52-on-beaglebone-black.html 
> *
>
> I succeeded to crosscompile simple applications, but I cannot make GUI 
> applications because I get the following error:
>
>
> This application failed to start because it could not find or load the Qt 
> platform plugin "eglfs".
>
>
> Available platform plugins are: linuxfb, minimal, offscreen.
>
>
> Reinstalling the application may fix this problem.
>
> bash: line 1: 1465 Aborted DISPLAY=':0.0' /home/ubuntu/HelloWorldGUI
>
> Application finished with exit code 134.
>
>
> Looking the plugins in the path /usr/local/qt-5.2/plugins/platforms, I can 
> see only the following ones: 
>
>
> *libqlinuxfb.so libqminimal.so libqoffscreen.so*
>
>
> It seems to me that I don't have the necessary plugins. Can you help me? 
> It would be highly appreciate.
>
> Thank you.
>
>
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/b51fcaa4-93da-4306-9d07-2e6794cb0485o%40googlegroups.com.


Re: [beagleboard] Re: Remote access for the beagle bone black (BBB) to modify /upgrade file from cloud server

2020-10-21 Thread Niresh
Thank you for your support. I will go through the link and get back to you.

Regards,
NK

On Wed, Oct 21, 2020 at 3:26 PM Tarmo Kuuse  wrote:

> On 21.10.20 06:27, Niresh wrote:
> > Thank you Tamro. I hope a trigger mechanism is not a problem because
> > continuous data exchange is happening between the AWS server and
> > controller through websocket. I can create a separate data packet to
> > initiate this trigger command to a controller to which I wish to
> > upgrade. In my case, only two executable binary files are required for
> > firmware update and  which I must keep in the AWS server because data
> > privacy is very important.
>
> It's not terribly relevant where the files are stored - it's hosting
> them that requires some thinking. E.g. googling for "amazon aws host apt
> repository" seems to come up with a few solutions - e.g.
> https://www.aptly.info. I can't vouch for any of them.
>
> > I'm a newbie to the Linux environment. So, It would be very grateful if
> > you can explain to me with an example for better understanding or a link.
>
> I'm sorry to say that automatic upgrades of running services on a Debian
> box is quite the deep end to get thrown into as a newbie :) Mark's
> suggestion is not an improper one in this case.
>
> If you go the route of deb package and apt repository, I'd suggest
> reading chapters 5, 6 and  Debian Administrator's handbook
> https://debian-handbook.info/browse/stable/ - this briefly explains how
> they are used.
>
> https://wiki.debian.org/DebianRepository/Setup has some info on how
> repositories are set up. AWS-friendly Aptly is in there somewhwere.
>
> Depending on your circumstances, you might want to look into creating a
> systemd service out of your application:
> https://linuxconfig.org/how-to-create-systemd-service-unit-in-linux
>
> --
> Kind regards,
> Tarmo
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/beagleboard/dMyq5C7HGyw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> beagleboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/2337d951-9226-703e-0e9f-bdeaa2554c82%40gmail.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAF7-PaSpywL22akHhfFmF_haAKYuFcRYBq5NpYwjSt8o5O7otg%40mail.gmail.com.


Re: [beagleboard] Re: Remote access for the beagle bone black (BBB) to modify /upgrade file from cloud server

2020-10-21 Thread Tarmo Kuuse

On 21.10.20 06:27, Niresh wrote:
Thank you Tamro. I hope a trigger mechanism is not a problem because 
continuous data exchange is happening between the AWS server and 
controller through websocket. I can create a separate data packet to 
initiate this trigger command to a controller to which I wish to 
upgrade. In my case, only two executable binary files are required for 
firmware update and  which I must keep in the AWS server because data 
privacy is very important.


It's not terribly relevant where the files are stored - it's hosting 
them that requires some thinking. E.g. googling for "amazon aws host apt 
repository" seems to come up with a few solutions - e.g. 
https://www.aptly.info. I can't vouch for any of them.


I'm a newbie to the Linux environment. So, It would be very grateful if 
you can explain to me with an example for better understanding or a link.


I'm sorry to say that automatic upgrades of running services on a Debian 
box is quite the deep end to get thrown into as a newbie :) Mark's 
suggestion is not an improper one in this case.


If you go the route of deb package and apt repository, I'd suggest 
reading chapters 5, 6 and  Debian Administrator's handbook
https://debian-handbook.info/browse/stable/ - this briefly explains how 
they are used.


https://wiki.debian.org/DebianRepository/Setup has some info on how 
repositories are set up. AWS-friendly Aptly is in there somewhwere.


Depending on your circumstances, you might want to look into creating a 
systemd service out of your application:

https://linuxconfig.org/how-to-create-systemd-service-unit-in-linux

--
Kind regards,
Tarmo

--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/2337d951-9226-703e-0e9f-bdeaa2554c82%40gmail.com.


Re: [beagleboard] Re: Remote access for the beagle bone black (BBB) to modify /upgrade file from cloud server

2020-10-21 Thread 'Mark Lazarewicz' via BeagleBoard
Reading your questions that ignore previous suggestions I'd suggest this link
Linux for Dummies, 10th Edition  
|  
|   
|   
|   ||

   |

  |
|  
|   |  
Linux for Dummies, 10th Edition
 
With an influx of first-time Linux users comes the need for guidance laid out 
in simple everyday terms. The Linux For Dummies series has ...
  |   |

  |

  |

  


Sent from Yahoo Mail on Android 
 
  On Tue, Oct 20, 2020 at 10:27 PM, Niresh wrote:   
Thank you Tamro. I hope a trigger mechanism is not a problem because continuous 
data exchange is happening between the AWS server and controller through 
websocket. I can create a separate data packet to initiate this trigger command 
to a controller to which I wish to upgrade. In my case, only two executable 
binary files are required for firmware update and  which I must keep in the AWS 
server because data privacy is very important. 
I'm a newbie to the Linux environment. So, It would be very grateful if you can 
explain to me with an example for better understanding or a link.
Regards,NK
On Tue, Oct 20, 2020 at 8:06 PM Tarmo Kuuse  wrote:

On 20.10.20 15:24, Niresh wrote:
> I have a binary file that is basically compiled C application code. If I 
> send an upgrade command to the controller from the server, the 
> controller should take that binary file from the server, replace the old 
> one and run with the updated binary file.

I've distributed custom software as deb packages hosted by a private apt 
repository (Sonatype Nexus OSS). Mass-updates got manually triggered via 
ansible (which required the aforementioned SSH jumphost).

You can do something similar - package your binaries as a deb package, 
host an apt repository and figure out how to trigger updates. Or you can 
roll your own update scripts and repo. Or you can search for third-party 
solutions. I assume most of the underlying problems are the same - a 
trigger mechanism, a hosted package repository, authenticated data pipe, 
service restarting, recovery from botched upgrades etc.

-- 
Kind regards,
Tarmo

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to a topic in the Google 
Groups "BeagleBoard" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/beagleboard/dMyq5C7HGyw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/0552ff7a-cca0-b8fe-de2b-85aeee5d3251%40gmail.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAF7-PaSmZv4ENpSzDC8zHnb45pTgEd6teaE0x3nj8CF%3DC_L9VQ%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/1828956168.1309165.1603270865154%40mail.yahoo.com.