Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 13-01-2015, 19:58   #571
Registered User

Join Date: Aug 2011
Location: Mississippi Gulf Coast
Boat: 37' TransPac Trawler, heavily modified
Posts: 88
Re: OpenCPN Runs on Embedded ARM

Freddie, you need to install libgles2-mesa-dev package
LeoA is offline   Reply With Quote
Old 14-01-2015, 07:19   #572
Registered User
 
akopac's Avatar

Join Date: Oct 2014
Location: South Pacific -> World Cruising Long Term
Boat: Morgan, West Indies 38 Ketch
Posts: 571
Re: OpenCPN Runs on Embedded ARM

Could make that part of the script? If missing install...
akopac is offline   Reply With Quote
Old 14-01-2015, 09:29   #573
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,131
Re: OpenCPN Runs on Embedded ARM

Simple Question ? In your log shows as a prompt bananapi/lemaker ? Are you running the Cubie with the Bananapi software ? Or are you compiling the Cubie software on a BananaPi ?

Regards,


Bram
verkerkbr is offline   Reply With Quote
Old 14-01-2015, 15:29   #574
Registered User
 
sbfreddie's Avatar

Join Date: Mar 2012
Location: Southern Texas, Port Isabel
Boat: I Wish
Posts: 175
Images: 1
Send a message via Skype™ to sbfreddie
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by LeoA View Post
Freddie, you need to install libgles2-mesa-dev package
LeoA:
I tried installing libgles2-mesa-dev, but that did not fix the problem.
The problem remains, cannot find libEGL.

Thanks,
Freddie
sbfreddie is offline   Reply With Quote
Old 14-01-2015, 15:35   #575
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: OpenCPN Runs on Embedded ARM

Freddie...
Code:
sudo find / -name libEGL*
returns something?

Pavel
nohal is offline   Reply With Quote
Old 14-01-2015, 15:36   #576
Registered User
 
sbfreddie's Avatar

Join Date: Mar 2012
Location: Southern Texas, Port Isabel
Boat: I Wish
Posts: 175
Images: 1
Send a message via Skype™ to sbfreddie
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by verkerkbr View Post
Simple Question ? In your log shows as a prompt bananapi/lemaker ? Are you running the Cubie with the Bananapi software ? Or are you compiling the Cubie software on a BananaPi ?

Regards,


Bram
Bram:
I can understand how you or anyone else might be confused about what I am doing.
I now have a Bananapi-Pro and am trying to adapt my script (that was originally created for Qbee-X and Aruntu on the CubieTruck) to get OpenGL-ES2, OpenCPN, and OpenCPN plugins to work on the Bananapi-Pro (Lubuntu) the same way they do on the Cubie boards.

So far everything works except the OpenGL-ES2 install which is currently broke. But I think I may have an answer in a couple of days. Stand By!

Thanks,
Freddie
sbfreddie is offline   Reply With Quote
Old 14-01-2015, 15:58   #577
Registered User
 
sbfreddie's Avatar

Join Date: Mar 2012
Location: Southern Texas, Port Isabel
Boat: I Wish
Posts: 175
Images: 1
Send a message via Skype™ to sbfreddie
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by nohal View Post
Freddie...
Code:
sudo find / -name libEGL*
returns something?

Pavel
Pavel:
Here is what the terminal says:
Code:
bananapi@lemaker:~$ sudo find  / -name libEGL
bananapi@lemaker:~$ 
bananapi@lemaker:~$ locate libEGL
/home/bananapi/Old_Mesa_Stuff/From_usr-lib-arm-linux-gnueabihf/mesa-egl/libEGL.so.1
/home/bananapi/Old_Mesa_Stuff/From_usr-lib-arm-linux-gnueabihf/mesa-egl/libEGL.so.1.0.0
/usr/lib/arm-linux-gnueabihf/libEGL.so
/usr/lib/arm-linux-gnueabihf/mesa-egl/libEGL.so
bananapi@lemaker:~$
As you can see find did not find anything, but locate found libEGL.so in /usr/lib/arm-linux-gnueabihf/, and in /usr/lib/arm-linux-gnueabihf/mesa-egl/libEGL.so.
However these are symbolic links that point to the mesa folder, which is the software emulated code for libEGL.
I think that the person that created this distribution did not build the user-land files for the Mali kernel modules.

I'm still digging!:bang head:

Thanks,
Freddie
sbfreddie is offline   Reply With Quote
Old 14-01-2015, 16:20   #578
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: OpenCPN Runs on Embedded ARM

Freddie...
Next time please run the command exactly as I posted it, it will actually return something...

Are you absolutely sure that the symlinks are correct?
If they are, I would also do
Code:
sudo ln -s /usr/lib/arm-linux-gnueabihf/libEGL.so /usr/lib/arm-linux-gnueabihf/libEGL.so.1
sudo ldconfig
And I suppose you are absolutely sure that /usr/lib/arm-linux-gnueabihf is in your /etc/ld.so.conf...

Pavel
nohal is offline   Reply With Quote
Old 14-01-2015, 17:44   #579
Registered User
 
sbfreddie's Avatar

Join Date: Mar 2012
Location: Southern Texas, Port Isabel
Boat: I Wish
Posts: 175
Images: 1
Send a message via Skype™ to sbfreddie
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by nohal View Post
Freddie...
Next time please run the command exactly as I posted it, it will actually return something...

Are you absolutely sure that the symlinks are correct?
If they are, I would also do
Code:
sudo ln -s /usr/lib/arm-linux-gnueabihf/libEGL.so /usr/lib/arm-linux-gnueabihf/libEGL.so.1
sudo ldconfig
And I suppose you are absolutely sure that /usr/lib/arm-linux-gnueabihf is in your /etc/ld.so.conf...

Pavel
Pavel:
Oops, Senior moment, I forgot the *. I guess I was in such a hurry, and I have five computers going all at once, please forgive this old fool.

I have decided to start with a fresh built, and back off on the over zealous removal of libs and Stuff.

Start from scratch.

Thanks,
Freddie
sbfreddie is offline   Reply With Quote
Old 14-01-2015, 18:05   #580
Registered User
 
sbfreddie's Avatar

Join Date: Mar 2012
Location: Southern Texas, Port Isabel
Boat: I Wish
Posts: 175
Images: 1
Send a message via Skype™ to sbfreddie
Re: OpenCPN Runs on Embedded ARM

Nohal:
OK, Starting with a freshly created Lubuntu (Ubuntu 14.04), I changed my script to not remove anything from the guts of this system, and then tried to build glshim from Sean's Github repository, and here is the results:

Code:
Now lets do cmake of glshim.....
Now lets build glshim.....
/home/bananapi/glshim/src/glx/glx.c: In function ‘xrefresh’:
/home/bananapi/glshim/src/glx/glx.c:158:11: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result]
     system("xrefresh");
           ^
/usr/bin/ld: cannot find -lEGL
collect2: error: ld returned 1 exit status
make[3]: *** [lib/libGL.so.1] Error 1
make[2]: *** [src/CMakeFiles/GL.dir/all] Error 2
make[1]: *** [src/CMakeFiles/GL.dir/rule] Error 2
make: *** [GL] Error 2
Building of glshim failed.....
 more information on errors refer to the log file in the build directory.
So I tried to find libEGL with your command:

bananapi@lemaker:~$ sudo find / -name libEGL*
/usr/lib/arm-linux-gnueabihf/mesa-egl/libEGL.so.1.0.0
/usr/lib/arm-linux-gnueabihf/mesa-egl/libEGL.so.1

I also checked to see if /arm-linux-gnueabihf/ was in the /etc/ld.so.conf folder and here it is, its called arm-linux-gnueabihf.conf and this is what's inside:

# Multiarch support
/lib/arm-linux-gnueabihf
/usr/lib/arm-linux-gnueabihf

Do you still recommend I put a symlink somewhere like this:
sudo ln -s /usr/lib/arm-linux-gnueabihf/mesa-egl/libEGL.so.1 /usr/lib/arm-linux-gnueabihf/libEGL.so.1
to let glshim find it easier?

Thanks,
Freddie
sbfreddie is offline   Reply With Quote
Old 14-01-2015, 18:13   #581
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: OpenCPN Runs on Embedded ARM

I would just add /usr/lib/arm-linux-gnueabihf/mesa-egl into ld.so.conf and rerun ldconfig


Sent from my iPhone using Cruisers Sailing Forum
nohal is offline   Reply With Quote
Old 14-01-2015, 18:34   #582
Registered User
 
sbfreddie's Avatar

Join Date: Mar 2012
Location: Southern Texas, Port Isabel
Boat: I Wish
Posts: 175
Images: 1
Send a message via Skype™ to sbfreddie
Re: OpenCPN Runs on Embedded ARM

Nohal:
I tried to install a symlink in /usr/lib/arm-linux-gnueabihf/ with this command:

ln -s /usr/lib/arm-linux-gnueabihf/mesa-egl/libEGL.so.1 /usr/lib/arm-linux-gnueabihf/libEGL.so.1.

This resulted in the same error, glshim linker still cannot find lEGL.

Any other suggestions?

Thanks,
Freddie
sbfreddie is offline   Reply With Quote
Old 14-01-2015, 18:47   #583
Registered User
 
sbfreddie's Avatar

Join Date: Mar 2012
Location: Southern Texas, Port Isabel
Boat: I Wish
Posts: 175
Images: 1
Send a message via Skype™ to sbfreddie
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by nohal View Post
I would just add /usr/lib/arm-linux-gnueabihf/mesa-egl into ld.so.conf and rerun ldconfig


Sent from my iPhone using Cruisers Sailing Forum
Nohal:

Tried your suggestion and still get the same results:

Code:
Now lets do cmake of glshim.....
Now lets build glshim.....
/home/bananapi/glshim/src/glx/glx.c: In function ‘xrefresh’:
/home/bananapi/glshim/src/glx/glx.c:158:11: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result]
     system("xrefresh");
           ^
/usr/bin/ld: cannot find -lEGL
collect2: error: ld returned 1 exit status
make[3]: *** [lib/libGL.so.1] Error 1
make[2]: *** [src/CMakeFiles/GL.dir/all] Error 2
make[1]: *** [src/CMakeFiles/GL.dir/rule] Error 2
make: *** [GL] Error 2
Building of glshim failed.....
 more information on errors refer to the log file in the build directory.
I'm going over to Cubie to find what is located where on my CubieTruck.

Any other suggestion?

Thanks,
Freddie
sbfreddie is offline   Reply With Quote
Old 14-01-2015, 19:51   #584
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: OpenCPN Runs on Embedded ARM

Yes, of course...
Code:
sudo ln -s /usr/lib/arm-linux-gnueabihf/mesa-egl/libEGL.so.1 /usr/lib/arm-linux-gnueabihf/mesa-egl/libEGL.so
nohal is offline   Reply With Quote
Old 14-01-2015, 20:09   #585
Registered User
 
sbfreddie's Avatar

Join Date: Mar 2012
Location: Southern Texas, Port Isabel
Boat: I Wish
Posts: 175
Images: 1
Send a message via Skype™ to sbfreddie
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by nohal View Post
Yes, of course...
Code:
sudo ln -s /usr/lib/arm-linux-gnueabihf/mesa-egl/libEGL.so.1 /usr/lib/arm-linux-gnueabihf/mesa-egl/libEGL.so
Nohal:
Never mind I found the problem, it seems I was right in the first instance. The User Space drivers have not been installed into this distribution, that why glshim can't find what it wants.
I looked in my CubieTruck to see what I could find, and lo and behold here is what I found:
libEGL.so -> libEGL.so.1 -> libEGL.so.1.1.2 which is a symlink to libMali.
That's why glshim fails, because libEGL.so is missing because its put there during the build process of installing the user-space drivers, see this link:Mali binary driver - linux-sunxi.org

So I will get to work adding this work to my build script.

Thanks very much for all you great help!
Freddie
sbfreddie is offline   Reply With Quote
Reply

Tags
opencpn


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open CPN and Google Earth bgrimwade OpenCPN 19 09-12-2011 15:32
OpenCPN Version 2.5 Release bdbcat OpenCPN 86 02-09-2011 18:14
OpenCPN Stops Running BobLarkin OpenCPN 2 30-08-2011 23:38
Route Properties, Missing Functions James Baines OpenCPN 13 13-07-2011 04:31

Advertise Here


All times are GMT -7. The time now is 19:13.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.