Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-01-2015, 13:07   #526
Registered User

Join Date: Jul 2013
Location: Washington State, USA
Boat: 1983 Fu Hwa Seahorse
Posts: 86
Re: OpenCPN Runs on Embedded ARM

Personally, I don't worry about it and always run apt-get upgrade and update before installing the required components and building OpenCPN. I consider it good practice when building out a system on any platform.

I doubt it would be the cause of the main issues being talked about here, but...
__________________

__________________
Thanks, Matt B.
1983 Fu Hwa Seahorse
http://mvcesc.wordpress.com/
mattkab is offline   Reply With Quote
Old 05-01-2015, 09:22   #527
Registered User

Join Date: Oct 2014
Boat: Morgan, West Indies 38 Ketch
Posts: 71
Re: OpenCPN Runs on Embedded ARM

I think I've seen this error before, but when I run Make GL I get

Linking C shared library ../lib/libGL.so.1
/usr/bin/ld: cannot find -lEGL
collect2: 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
__________________

__________________
akopac is offline   Reply With Quote
Old 05-01-2015, 10:33   #528
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,142
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by nohal View Post
.....
BTW, as we near the stable 4.0 release, did any of you try the official ARM packages (for both the core program and plugins) on your boards?

Pavel
I would like to try the official program and plugins, but there is some problem:

Code:
cubie@Cubian:~$ sudo apt-get install opencpn
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package opencpn is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'opencpn' has no installation candidate
cubie@Cubian:~$
I am guessing that my particular OS is not supported ?

Code:
cubie@Cubian:~$ cat /etc/*-release
PRETTY_NAME="Debian GNU/Linux 7 (wheezy)"
NAME="Debian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support/"
BUG_REPORT_URL="http://bugs.debian.org/"
cubie@Cubian:~$ 
cubie@Cubian:~$ uname -mrs
Linux 3.4.79-sun7i armv7l
cubie@Cubian:~$
?

Cheers,
JM.
__________________
NahanniV is offline   Reply With Quote
Old 05-01-2015, 10:43   #529
Registered User

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

JM...
Did you add the PPA to your system correctly? The oldest ARMHF supported Ubuntu is Precise, so on your Debian Wheezy, it is the version to try.

Pavel
__________________
nohal is online now   Reply With Quote
Old 05-01-2015, 11:08   #530
Registered User

Join Date: Oct 2014
Boat: Morgan, West Indies 38 Ketch
Posts: 71
Re: OpenCPN Runs on Embedded ARM

I got the same error NahanniV got. I'm using the correct cubian. I also tried the install script on Opencpn for cubieboard2 and got previously stated error. The ppa I used was opencpn ppa: opencpn/opencpn.

Will you still have to presetup GL, GLShim... before installing?
__________________
akopac is offline   Reply With Quote
Old 05-01-2015, 11:35   #531
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,142
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by nohal View Post
JM...
Did you add the PPA to your system correctly? The oldest ARMHF supported Ubuntu is Precise, so on your Debian Wheezy, it is the version to try.

Pavel
OK, I tried to point etc\apt\sources.list to Precise1 (see screenshot)

is precise1 correct ?

Still get the same result.

Thanks for your help,

JM.
Attached Thumbnails
Click image for larger version

Name:	Screenshot.png
Views:	77
Size:	145.1 KB
ID:	94994  
__________________
NahanniV is offline   Reply With Quote
Old 05-01-2015, 11:46   #532
Registered User

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

JM...
no, it is not correct, the line should be
Code:
deb http://ppa.launchpad.net/nohal/opencpn/ubuntu precise main
If unsure, read "Adding this PPA to your system" at https://launchpad.net/~nohal/+archive/ubuntu/opencpn

You can also just download the deb packages and install using manually using something like
Code:
dpkg -i opencpn_3.3.2503-0~precise1_armhf.deb
Pavel
__________________
nohal is online now   Reply With Quote
Old 05-01-2015, 12:26   #533
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,142
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by nohal View Post
JM...
no, it is not correct, the line should be
Code:
deb http://ppa.launchpad.net/nohal/opencpn/ubuntu precise main
If unsure, read "Adding this PPA to your system" at https://launchpad.net/~nohal/+archive/ubuntu/opencpn

You can also just download the deb packages and install using manually using something like
Code:
dpkg -i opencpn_3.3.2503-0~precise1_armhf.deb
Pavel
Code:
cubie@Cubian:~$ sudo dpkg -i Downloads/opencpn_3.3.2503-0~precise1_armhf.deb
Selecting previously unselected package opencpn.
(Reading database ... 91249 files and directories currently installed.)
Unpacking opencpn (from .../opencpn_3.3.2503-0~precise1_armhf.deb) ...
dpkg: dependency problems prevent configuration of opencpn:
 opencpn depends on libc6 (>= 2.15-0ubuntu8); however:
  Version of libc6:armhf on system is 2.13-38+deb7u6.
 opencpn depends on wx2.8-i18n; however:
  Package wx2.8-i18n is not installed.
 opencpn depends on opencpn-tcdata; however:
  Package opencpn-tcdata is not installed.
 opencpn depends on opencpn-gshhs-low; however:
  Package opencpn-gshhs-low is not installed.

dpkg: error processing opencpn (--install):
 dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils ...
Processing triggers for hicolor-icon-theme ...
Errors were encountered while processing:
 opencpn
cubie@Cubian:~$
I guess I'll have to go back to building it ?

Will I have similar problems with the plugins ?

Thanks for your help.

JM.
__________________
NahanniV is offline   Reply With Quote
Old 05-01-2015, 12:33   #534
Registered User

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

JM...
The only real problem there is the glibc version, the rest just needs you to install the missing packages.
BTW, I'm pretty surprised Cubian is Wheezy- and not Jessie-based... Can it be dist-upgraded, anybody tried it yet?

Pavel
__________________
nohal is online now   Reply With Quote
Old 05-01-2015, 12:45   #535
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,142
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by nohal View Post
JM...
The only real problem there is the glibc version, the rest just needs you to install the missing packages.
BTW, I'm pretty surprised Cubian is Wheezy- and not Jessie-based... Can it be dist-upgraded, anybody tried it yet?

Pavel
Would these issues also cause problems when I build on the target system ?
The builds sorta work but have some problems.

Cheers,
JM.
__________________
NahanniV is offline   Reply With Quote
Old 05-01-2015, 13:17   #536
Registered User

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

No, the glibc dependency will be fine then. There is also no problem to be expected with the official plugin packages - I build them on a Wheezy virtual system.

Pavel


Sent from my iPhone using Cruisers Sailing Forum
__________________
nohal is online now   Reply With Quote
Old 06-01-2015, 23:08   #537
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,802
Re: OpenCPN Runs on Embedded ARM

I hope to package glshim support directly into opencpn so it can link directly with libGLESv1.so and avoid building glshim as a separate step.

Can anyone see any objection? Are there any cases of arm devices which support full opengl acceleration? In this case we might need something more complex to dynamically switch to make the package work in both cases.
__________________
boat_alexandra is offline   Reply With Quote
Old 07-01-2015, 07:55   #538
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,142
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by boat_alexandra View Post
I hope to package glshim support directly into opencpn so it can link directly with libGLESv1.so and avoid building glshim as a separate step.

Can anyone see any objection? Are there any cases of arm devices which support full opengl acceleration? In this case we might need something more complex to dynamically switch to make the package work in both cases.
Well it would simplify things a bit. Eventually there may be opengl support on an ARM based device.

BUT, more importantly, there seem to be some problems with using OpenCPN and your GLShim on ARM:

When OpenCPN starts up with OpenGL enabled there are a bunch of errors generated:

Code:
(opencpn:7343): Gdk-CRITICAL **: IA__gdk_colormap_new: assertion `GDK_IS_VISUAL (visual)' failed

(opencpn:7343): Gtk-CRITICAL **: IA__gtk_widget_set_colormap: assertion `GDK_IS_COLORMAP (colormap)' failed

(opencpn:7343): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
glXGetProcAddress: glGenFramebuffers not found.
glXGetProcAddress: glGetCompressedTexImage not found.
It seems to work after that, so perhaps those are not too important.
Are those procedures needed ?

But then during panning and zooming I get:

Code:
ERROR: EGL Error detected: EGL_BAD_ALLOC (0x3003)
Which seems to screw things up; Leaving blank colored areas on the screen.

Sorry for all the questions, but you seem to be the only one who really knows this stuff.

Thanks for your great work so far.

Cheers,
JM.
__________________
NahanniV is offline   Reply With Quote
Old 07-01-2015, 10:04   #539
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,142
Re: OpenCPN Runs on Embedded ARM

In addition to the OpenGL related errors. There is a a warning that is generated several times when displaying the configuration tool:

(opencpn:23799): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 15

Everything seems to function properly, but this must indicate some problem.

Cheers,
JM.
__________________
NahanniV is offline   Reply With Quote
Old 07-01-2015, 10:17   #540
Registered User

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

JM...
This is harmless, you will see it when you run pretty much any application using GTK.

Pavel
__________________

__________________
nohal is online now   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 14:21.


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.