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 04-06-2014, 09:53   #226
Registered User

Join Date: Mar 2014
Location: Tyne and Wear
Boat: Westerly Tempest
Posts: 15
Re: OpenCPN Runs on Embedded ARM

I believe its now part of mesa-utils.
stu3284 is offline   Reply With Quote
Old 04-06-2014, 10:14   #227
Registered User
 
moorsb's Avatar

Join Date: Jun 2014
Location: Burleson, Tx
Boat: Stamas Tarpon 250
Posts: 7
Re: OpenCPN Runs on Embedded ARM

I am using the latest Cubian Desktop SD image

The git command does not work either
I wish Linux was easier to use.

Thanks
moorsb is offline   Reply With Quote
Old 04-06-2014, 10:54   #228
Registered User

Join Date: Mar 2014
Location: Tyne and Wear
Boat: Westerly Tempest
Posts: 15
Re: OpenCPN Runs on Embedded ARM

You'll probably have to install git-core and build essential. Just google them and follow the instructions. I'm usless with Linux as well although i am learning.
stu3284 is offline   Reply With Quote
Old 04-06-2014, 14:23   #229
Registered User
 
moorsb's Avatar

Join Date: Jun 2014
Location: Burleson, Tx
Boat: Stamas Tarpon 250
Posts: 7
Re: OpenCPN Runs on Embedded ARM

Does anyone know where I can get glues?

git clone github.com/ssvb/glues.git I get an error saying it is not there
moorsb is offline   Reply With Quote
Old 04-06-2014, 14:30   #230
Registered User

Join Date: Mar 2014
Location: Tyne and Wear
Boat: Westerly Tempest
Posts: 15
Re: OpenCPN Runs on Embedded ARM

Code:
git clone https://github.com/ssvb/glues
Something like this. It worked for me yesterday.
or
Code:
git clone git://github.com/ssvb/glues
stu3284 is offline   Reply With Quote
Old 05-06-2014, 12:38   #231
Registered User

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

Thank you to everyone who pointed out the errors in my walkthrough. I do not seem to have an ability to edit my original post, so I am re-posting below with mistakes that I noted. If there is anything else wrong here, let me know and I will re-edit accordingly.

----------------------------------------------

I received a few requests about how I went about running openCPN with HW accelaration on the cubieboard2. The thread contains most of the information, but it might be useful to have it all in a single place specific to the CB2. Below are notes that I took of the process. I mostly recorded this as I went along, but some of it was written down after-the-fact: if something is unclear, let me know and I can try to fill in the details.

I own a cubieboard2: I am not sure if the cubietruck is exactly the same, but hopefully enough is common that this still works for you.

-- Start with a fresh install of the desktop version of cubian on an SD card, from here:

Code:
http://cubian.org/downloads/
-- The stock cubian image has a small amount of free space on the root filesystem. You need to follow the instructions here to expand (I just told it to use the entire amount of my 16GB card):

Code:
http://cubian.org/2013/08/12/enlarge-cubian-rootfs-partition/
-- Install some additional packages:

Code:
$ sudo apt-get install mesa-utils build-essential git cmake libx11-dev
-- Download the forked version of the glshim:

Code:
$ git clone https://github.com/seandepagnier/glshim.git
-- Build glshim library and copy the results to a suitable location:

Code:
$ cd ../../glshim
$ cmake .
$ make GL
$ sudo cp glshim/lib/libGL.so.1 /usr/local/lib/
$ sudo cp -r glshim/include/GLES/ /usr/local/include/
-- Install some additional packages to build OpenCPN:

Code:
$ sudo apt-get install libgtk2.0-dev gettext git-core cmake gpsd gpsd-clients libgps-dev build-essential wx-common libwxgtk2.8-dev libglu1-mesa-dev libgtk2.0-dev wx2.8-headers libbz2-dev libtinyxml-dev libportaudio2 portaudio19-dev
-- Build and install glues from source:

Code:
$ git clone https://github.com/ssvb/glues.git
$ cd glues
$ cmake .
$ make
$ sudo cp libGLU.so.1 /usr/local/lib
-- Build an OpenCPN .deb package from source, then install the package:

Code:
$ git clone git://github.com/OpenCPN/OpenCPN.git
$ cd OpenCPN/
$ mkdir build
$ cd build
$ cmake ../
$ make
$ make install
$ opencpn
-- Within OpenCPN, enable opengl, texture compression, and the texture compression cache. Then rebuild the chart database (took a long time on my cubieboard2).
owlhead is offline   Reply With Quote
Old 05-06-2014, 12:46   #232
Registered User

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

owlhead...
Thanks for the guide. As it will again get uneditable and lost here, I copied it to the manual wiki at Building and installing on Cubieboard 2 with HW acceleration | Official OpenCPN Homepage - You can edit it there if any changes or additions are needed.

Pavel
nohal is offline   Reply With Quote
Old 05-06-2014, 13:10   #233
Registered User

Join Date: Mar 2014
Location: Tyne and Wear
Boat: Westerly Tempest
Posts: 15
Re: OpenCPN Runs on Embedded ARM

Thank you both for the time and effort. I'm away on holiday for the week (if my passport turns up tomorrow :/ ) so I'll re-install on my return. Great that it's now on the wiki.
stu3284 is offline   Reply With Quote
Old 10-06-2014, 14:12   #234
Registered User
 
it-slav's Avatar

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

Quote:
Originally Posted by nohal View Post
owlhead...
Thanks for the guide. As it will again get uneditable and lost here, I copied it to the manual wiki at Building and installing on Cubieboard 2 with HW acceleration | Official OpenCPN Homepage - You can edit it there if any changes or additions are needed.

Pavel
Great documentation, however I cannot find the images anymore since ubuntuone is gone.

Any hints where I can find the image for a cubietruck?

Regards
Peter
it-slav is offline   Reply With Quote
Old 10-06-2014, 14:57   #235
Registered User

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

Peter...
The baidu mirror ( "Mirror 2" links on Cubian Downloads ) seems to work fine, although it is pretty slow for me. No need to speak Chinese - the grey button with down pointing arrow icon and files size initializes the download.

Pavel
nohal is offline   Reply With Quote
Old 10-06-2014, 19:50   #236
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 it-slav View Post
Great documentation, however I cannot find the images anymore since ubuntuone is gone.

Any hints where I can find the image for a cubietruck?

Regards
Peter
Peter:
Have you looked on the Cubie Forums? Here is a link to the posted CubieTruck images:
http://www.cubieforums.com/index.php?board=32.0

I like the Qbee-X image because everything works including sound, 1080p video and preinstalled Mali stuff.

I wrote an instruction for installing the OpenGLES stuff on this image, and I get glxgears frame rate of 500-550 FPS.
After installing OpenCPN and updating the raster charts with the cache (It took about 6 Hrs) OpenCPN works quite well, very smooth panning and moving of charts.

I just finished making a shell script to install all of Sean's Plugins and they work well.

If you have any questions, just ask.

Thanks,
Freddie
sbfreddie is offline   Reply With Quote
Old 11-06-2014, 02:20   #237
MAd
Registered User

Join Date: May 2014
Location: Germany
Boat: Vindoe 50SL, 35feet
Posts: 18
Re: OpenCPN Runs on Embedded ARM

I really appreciate the instructions, this is what I need as a "long time ago Linux user" :-)
But unfortunately it doesn't work with my CB2. This is what I've done:
1) installed everything exactly(!) as described above (two deviations: there are some duplicate packages in the recurring apt-get install commands and the rootfs was roughly the size of my 8GB SD card, so I didn't resize it)
2) started opencpn => very slow (w/o any maps, panning takes 20-30s per click)
3) installed common-nfs with associated packages, copied one kap file (baltic sea south from open-seamap project) from my NAS to map-directory and included it in OpenCPN
4) enabled opengl support and options (texture compression and texture copression cache with 16MB cache size) as described above
5) tried to rebuild maps DB, opencpn crashes with message "*** glibc detected *** opencpn: free(): invalid next size (fast): 0x03cdaf18 ***"
6) started opencpn with "-no_opengl", works fine w/o HW acceleration
7) using opencpn with opengl enabled w/o trying to rebuild map DB results in very low speed, the map is shown, but panning etc. is very slow (CPU is always 50% => one core fully used w/o any interaction)
So I seem to have two (maybe interlinked?) issues: OpenGL seems to slow down OpenCPN dramatically (I expected the opposite ;-) and I can not process the charts.
What to do
Regards,
Martin
MAd is offline   Reply With Quote
Old 11-06-2014, 02:45   #238
MAd
Registered User

Join Date: May 2014
Location: Germany
Boat: Vindoe 50SL, 35feet
Posts: 18
Re: OpenCPN Runs on Embedded ARM

Some more info/questions:
I'm using current Beta (3.3.1731) is this OK?
I've tried again to rebuild charts DB, the message box (with the progress bar) showed up for some seconds and then disappeared. Since then, one core is again at 100%, maybe the update is now working in the background w/o any status shown?
Regards,
Martin
MAd is offline   Reply With Quote
Old 11-06-2014, 16:40   #239
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 MAd View Post
Some more info/questions:
I'm using current Beta (3.3.1731) is this OK?
I've tried again to rebuild charts DB, the message box (with the progress bar) showed up for some seconds and then disappeared. Since then, one core is again at 100%, maybe the update is now working in the background w/o any status shown?
Regards,
Martin
Martin:
Are you building the current beta from the OpenCPN git master? (git clone -b master https://github.com/OpenCPN/OpenCPN.git)
Than yes, that is the only one you should be using, as it has the optimizations from Sean included.

When you run glxgears with this command:
Code:
$ glxgears

what kind of FPS numbers do you get?

You should get somewhere above 300 FPS, if not than OpenGL has not been properly installed.
I get 500-550FPS on my CubieTruck which has the same processor.

Which image did you put on the Cubie2?

Regards,
Freddie
sbfreddie is offline   Reply With Quote
Old 11-06-2014, 23:25   #240
MAd
Registered User

Join Date: May 2014
Location: Germany
Boat: Vindoe 50SL, 35feet
Posts: 18
Re: OpenCPN Runs on Embedded ARM

Hi Freddie,
I've used the git command w/o the "-b master" option (this is not mentioned in the instructions from owlhead, does it make a difference?)
glxgears shows roughly 46 fps, so there seems to be something wrong.
I've used the Cubian Desktop version for CB2 from Cubian Downloads (downloaded in February, as far as I can see this is the latest version, at least the filename is the same)
Regards,
Martin
MAd 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 02:44.


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.