Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-08-2014, 01:34   #346
Registered User

Join Date: Aug 2014
Posts: 7
Re: OpenCPN Runs on Embedded ARM

Hello,
Does anybody try to use the CM93 vector maps ?
I'm using a Cubietruck, with OpenGL enable, maps are located on an SSD drive. But the rendering of the CM93 maps is not working well : the rendering sometime display grey screen, missing coast border, and so on...
I checked the maps on my laptop computer running Windows and OpenCpn. It works perfectly. So the maps are OK.
I tried raster charts from NOAA. It works.
I tried to deactivate Open GL rendering on Cubietrck with the CM93. Every level of zoom are correctly displayed, despite the fact that OpenCPN is quite unusable without OpenGL

So, it seems that there are bugs in the Open GL rendering on ARM.
Does someone else have the same issue ?
__________________

__________________
BlackNav is offline   Reply With Quote
Old 11-08-2014, 03:59   #347
Registered User
 
it-slav's Avatar

Join Date: May 2014
Posts: 46
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by BlackNav View Post
Hello,
Does anybody try to use the CM93 vector maps ?
I'm using a Cubietruck, with OpenGL enable, maps are located on an SSD drive. But the rendering of the CM93 maps is not working well : the rendering sometime display grey screen, missing coast border, and so on...
I checked the maps on my laptop computer running Windows and OpenCpn. It works perfectly. So the maps are OK.
I tried raster charts from NOAA. It works.
I tried to deactivate Open GL rendering on Cubietrck with the CM93. Every level of zoom are correctly displayed, despite the fact that OpenCPN is quite unusable without OpenGL

So, it seems that there are bugs in the Open GL rendering on ARM.
Does someone else have the same issue ?
Yes I have the same behavior. I gave examples in:OpenCPN Runs on Embedded ARM


Regards
Peter
__________________

__________________
it-slav is offline   Reply With Quote
Old 11-08-2014, 05:32   #348
Registered User

Join Date: Aug 2014
Posts: 7
Re: OpenCPN Runs on Embedded ARM

I had a look on your screenshot, and I have the same result.
It looks like there are bugs in the OpenGL implementation...
__________________
BlackNav is offline   Reply With Quote
Old 11-08-2014, 07:13   #349
Registered User
 
it-slav's Avatar

Join Date: May 2014
Posts: 46
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by BlackNav View Post
I had a look on your screenshot, and I have the same result.
It looks like there are bugs in the OpenGL implementation...
Yes, there are some bugs. Did you notice that if you loaded rastercharts and vectorcharts and changed back and forth, the grey areas are gone in the vector charts aswell. I used that as a workaround.

Regards
Peter
__________________
it-slav is offline   Reply With Quote
Old 11-08-2014, 07:54   #350
Registered User

Join Date: Aug 2014
Posts: 7
Re: OpenCPN Runs on Embedded ARM

I will test this workaround tonight.
So, it should be an issue of initializing "something somewhere"
__________________
BlackNav is offline   Reply With Quote
Old 11-08-2014, 09:50   #351
Registered User
 
it-slav's Avatar

Join Date: May 2014
Posts: 46
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by BlackNav View Post
I will test this workaround tonight.
So, it should be an issue of initializing "something somewhere"
Well, I'm not a developer so I do not dare to guess. In my role as product manager I have done several guesses like this and they are in most cases wrong

Something is wrong somewhere...

Regards
Peter
__________________
it-slav is offline   Reply With Quote
Old 11-08-2014, 10:56   #352
Registered User

Join Date: Jun 2008
Posts: 105
Re: OpenCPN Runs on Embedded ARM

My odroid is out for delivery via fed ex as I write this.

Is the earlier odriod recipe on here the best still? Or is there a newer better recipe...

(I am a linux noobie, these little boards the pi and now the odroid are the only reason I have found to play with it so far.)

Thanks,
Guy
:-)
__________________
Aikiguy is offline   Reply With Quote
Old 12-08-2014, 12:20   #353
Registered User

Join Date: Jun 2008
Posts: 105
Re: OpenCPN Runs on Embedded ARM

i have been working on getting the opengl to work on my new odroid u3 for two days now. I am a linux noob. I get an opencpn 4953 error dealing with insertions and no screen when doing opengl.

If I run with the -no_opengl it works good, a little slow on draging etc when using raster charts. Unusable when using vector charts.

I have followed as much as I can the recipe Mad put up, but I know I am unable to get all the path issues worked out, I have coppied the files for the open gl everywhere, to no avail.

should I try a different opengl package?

how do you copy an error out of xterm? so you can post it here?

Thanks,
Guy
:-)
__________________
Aikiguy is offline   Reply With Quote
Old 12-08-2014, 14:01   #354
Registered User

Join Date: Aug 2014
Posts: 7
Re: OpenCPN Runs on Embedded ARM

Hi,
Try to type the following :
ldd /usr/bin/local/opencpn

this command will list all the libraries used by opencpn. In the list, you'll find libGLU and libGL, with the path where opencpn is loading them. This is where you have to replace the files with the ones that you have compiled.
Instead of running opencpn, you can check glxgears.


But, even if you want to user vector charts, I'm afraid to say that for now we didn't find a good solution. It seems that Vector charts rendering is calling some buggy function, and the rendering is, in my case, not usable. Unfortunatelly...
__________________
BlackNav is offline   Reply With Quote
Old 12-08-2014, 14:10   #355
Registered User
 
sbfreddie's Avatar

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

Quote:
Originally Posted by Aikiguy View Post
i have been working on getting the opengl to work on my new odroid u3 for two days now. I am a linux noob. I get an opencpn 4953 error dealing with insertions and no screen when doing opengl.

If I run with the -no_opengl it works good, a little slow on draging etc when using raster charts. Unusable when using vector charts.

I have followed as much as I can the recipe Mad put up, but I know I am unable to get all the path issues worked out, I have coppied the files for the open gl everywhere, to no avail.

should I try a different opengl package?

how do you copy an error out of xterm? so you can post it here?

Thanks,
Guy
:-)
Guy:
What distribution are you using? Debian, or Ubuntu, or Gentoo, or something else?
If you are using the terminal under one of the GIU's, you can just use the mouse and select, copy, and paste into an empty document.
We don't have enough info about your setup to help you very much.

Thanks,
Freddie
__________________
sbfreddie is offline   Reply With Quote
Old 12-08-2014, 15:31   #356
Registered User

Join Date: Jun 2008
Posts: 105
Re: OpenCPN Runs on Embedded ARM

I had glxgears working, then I copied the LibGL.so.1 and LibGLU.so.1 files all over the place and now that doens't work.

I think I need to go back and re do the opengl stuff, there were a few of them thrown around on here, the one in the original recipe and several others. Which one should I use?

Here is my system output.
Attached Files
File Type: txt system info.txt (850 Bytes, 28 views)
__________________
Aikiguy is offline   Reply With Quote
Old 12-08-2014, 15:43   #357
Registered User

Join Date: Jun 2008
Posts: 105
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by BlackNav View Post
Hi,
Try to type the following :
ldd /usr/bin/local/opencpn
ldd: /usr/bin/local/opencpn: No such file or directory

ughh. Well I am learning a lot more about linux!

Thank you all for your help
Guy
:-)
__________________
Aikiguy is offline   Reply With Quote
Old 12-08-2014, 16:16   #358
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,018
Re: OpenCPN Runs on Embedded ARM

Guy...
Well, maybe start with the basics
Code:
which opencpn
will tell you which OpenCPN will "opencpn" actually launch
Code:
whereis opencpn
will tell you what stuff related to OpenCPN your system has
Both this should lead you to the fact that /usr/bin/local is a typo and will always be /usr/local/bin in case you build and install locally and /usr/bin if you install from prebuilt packages...

Pavel
__________________
nohal is offline   Reply With Quote
Old 13-08-2014, 05:13   #359
Registered User

Join Date: Jul 2014
Posts: 61
Re: OpenCPN Runs on Embedded ARM

I have been doing some testing and research since my last post re: Getting OpenCPN to work on Rpi with Acceleration.

I cannot get Acceleration to work and display any charts. I just get Grey chart area. OpenCPN is still running and I can see the Toolbar.

If I disable OpenGL acceleration then charts come back and I am bak to normal (slow) OpenCPN. I have to say on the Rpi it is not far off from usable as it is. It displays full AIS info and interfaces with the boat instruments fine both input and output to the repeater and autopilot. I am using a Rpi Model B+ that is overclocked at the Turbo level from Raspi-config (1000mhz) its been running for about 4 days permanently with no issues (stationary). I have stopped/started OpenCPN about a hundred times in that time.

I am not a programmer so have no real idea what can be done, but it seems to be close! I followed all advice and compiled OpenCPN on the Rpi and the glshim and glues libraries and replaced the original ones. I confirmed that OpenCPN is using my new libraries as detailed earlier in these posts. Maybe the BananaPi is a better answer, but the Rpi B+ with 4 usb ports is a better board for my application if we can get it working.

Happy to do any testing, but would need some guidance

Cheers
Spart
__________________
sparticle is offline   Reply With Quote
Old 14-08-2014, 14:06   #360
Registered User
 
Wrong's Avatar

Join Date: Jul 2013
Posts: 1,702
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by Aikiguy View Post
I had glxgears working, then I copied the LibGL.so.1 and LibGLU.so.1 files all over the place and now that doens't work.

I think I need to go back and re do the opengl stuff, there were a few of them thrown around on here, the one in the original recipe and several others. Which one should I use?

Here is my system output.
Take a look at wherever your OpenGL libraries were originally installed. Depending on your Linux distribution this will be in /usr/lib or /usr/lib/arm-linux-gnueabihf. Do you see a libGL.so.o? If so, that is a link to libGL.so.1. Most programs look for libGL.so.o, not libGL.so.1. So if you copy libGL.so.1 without including the link it will not be found.

Best to open the CmakeCache.text file located in the /OpenCPN/build in file editor like gedit and see where OpenCPN is looking for the files. They will either be recorded as not found or an incorrect path may even be present. You can edit the lines to provide the correct path.

Here's an example:

/Path to a file.
OPENGLESv1_INCLUDE_DIR:PATH=/usr/lib/arm-linux-gnueabihf/egl

//Path to a file.
OPENGLESv2_INCLUDE_DIR:PATH=/usr/lib/arm-linux-gnueabihf/egl

//Path to a file.
OPENGL_INCLUDE_DIR:PATH=/usr/include/GL

//Path to a library.
OPENGL_gl_LIBRARY:FILEPATH=/usr/lib/arm-linux-gnueabihf/libGL.so

//Path to a library.
OPENGL_glu_LIBRARY:FILEPATH=/usr/lib/arm-linux-gnueabihf/libGLU.so.1

Just copying library files from one place to another is really not good practice and can lead to all sorts of problems.
__________________

__________________
Wrong is offline   Reply With Quote
Reply

Tags
opencpn

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 16:32
OpenCPN Version 2.5 Release bdbcat OpenCPN 86 02-09-2011 19:14
OpenCPN Stops Running BobLarkin OpenCPN 2 31-08-2011 00:38
Route Properties, Missing Functions James Baines OpenCPN 13 13-07-2011 05:31



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

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


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.