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 14-06-2012, 10:04   #1
Registered User

Join Date: Apr 2012
Posts: 70
Can Someone Help Compile on Raspberry Pi ?

Hi.
I managed to get opencpn to compile on my Raspberry pi but I can't get it to run. I'm not really a programmer but I am also not a complete linux noob. When I try to run it I get the disclaimer message box and then:

Warning: No handler found for image type.
17:58:47: Debug: ../src/gtk/bitmap.cpp(444): assert "image.Ok()" failed in CreateFromImage(): invalid image
../src/gtk/bitmap.cpp(444): assert "image.Ok()" failed in CreateFromImage(): invalid image
Trace/breakpoint trap

Sorry if this is the wrong place to post. I am guessing I might be missing an image library or summat. Bear in mind that it takes about 5 hours to compile on a Raspi so trying things out can be a little tedious! Any ideas. I would be interested to see how slow it is. (Very I suspect).
jimseng is offline   Reply With Quote
Old 14-06-2012, 10:53   #2
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: Can someone help compile on Raspberry Pi?

Quote:
Originally Posted by jimseng View Post
Hi.
I managed to get opencpn to compile on my Raspberry pi but I can't get it to run. I'm not really a programmer but I am also not a complete linux noob. When I try to run it I get the disclaimer message box and then:

Warning: No handler found for image type.
17:58:47: Debug: ../src/gtk/bitmap.cpp(444): assert "image.Ok()" failed in CreateFromImage(): invalid image
../src/gtk/bitmap.cpp(444): assert "image.Ok()" failed in CreateFromImage(): invalid image
Trace/breakpoint trap

Sorry if this is the wrong place to post. I am guessing I might be missing an image library or summat. Bear in mind that it takes about 5 hours to compile on a Raspi so trying things out can be a little tedious! Any ideas. I would be interested to see how slow it is. (Very I suspect).
That looks like a WxWidgets problem.
Did you compile yourself?
Which version?

Thomas
cagney is offline   Reply With Quote
Old 15-06-2012, 03:02   #3
Registered User

Join Date: Apr 2012
Posts: 70
Re: Can someone help compile on Raspberry Pi?

Yes I did compile myself using the instructions as set out on the developer compile help page.
git clone git://opencpn.git.sourceforge.net/gitroot/opencpn/opencpn is where I got the source. It seemed to compile ok but as I said took 5 hours on the Raspberry Pi. Any help would be appreciated.
jimseng is offline   Reply With Quote
Old 15-06-2012, 03:32   #4
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,253
Re: Can Someone Help Compile on Raspberry Pi ?

jimseng...
Thomas was asking about the wxWidgets toolkit - not OpenCPN itself. The error you are getting suggests your wxGTK is not able to handle images as needed.

Pavel
nohal is offline   Reply With Quote
Old 15-06-2012, 06:14   #5
Registered User

Join Date: Apr 2012
Posts: 70
Re: Can Someone Help Compile on Raspberry Pi ?

Ah. I see.
I didn't compile wxWidgets toolkit myself, I did an apt-get as per the instructions. I followed them pretty much to the letter and apart form having to add swap space it compiled as I expected.
jimseng is offline   Reply With Quote
Old 15-06-2012, 06:29   #6
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,571
Re: Can Someone Help Compile on Raspberry Pi ?

jimseng....

I suspect the precompiled wxWidgets does not have the correct options set. You may need to compile wxWidgets yourself. If OpenCPN takes 5 hours to compile, wxWidgets could take days.....

Is there a cross-development environment that you could use for RaspberryPI?

Dave
bdbcat is offline   Reply With Quote
Old 15-06-2012, 07:19   #7
Registered User

Join Date: Apr 2012
Posts: 70
Re: Can Someone Help Compile on Raspberry Pi ?

I guess I could try to do it in a VM with qemu? I fear I am wading out of my depth however. The libwxgtk2.8-dev is supposed to be for Arm. Is that where the problem lies?
jimseng is offline   Reply With Quote
Old 15-06-2012, 10:08   #8
Registered User

Join Date: Dec 2008
Boat: Journeyman
Posts: 705
Re: Can Someone Help Compile on Raspberry Pi ?

When your libwxgtk2.8-dev package was built, whoever did it specified a number of options deciding which parts of wxW to include in the build and what format the resulting libraries should be in.

If the option settings do not conform to OpenCPN requirements you need to recompile wxW yourself with the correct options. The easiest way to get this done is by using a more powerful computer, usually an Intel x86 one, for the building, but having it generate ARM code. This is called a cross compile.

I would think you are better off asking in the R-Pi forums for how to set that up.

/j
JesperWe is offline   Reply With Quote
Old 15-06-2012, 12:33   #9
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: Can Someone Help Compile on Raspberry Pi ?

might be some useful info on this thread..

http://www.ybw.com/forums/showthread.php?p=3574770

Good luck.
conachair is offline   Reply With Quote
Old 16-06-2012, 04:03   #10
Registered User

Join Date: Apr 2012
Posts: 70
Re: Can Someone Help Compile on Raspberry Pi ?

Thanks for the explanations. I see what I have to do and will continue with my quest!
jimseng is offline   Reply With Quote
Old 20-06-2012, 09:00   #11
Registered User

Join Date: Apr 2012
Posts: 70
Re: Can Someone Help Compile on Raspberry Pi ?

Just to finish this off properly. I got it working by downloading the pre compiled version(s)

http://opencpn.xtr.cz/ticki/opencpn_arm.tar.gz
http://opencpn.xtr.cz/ticki/wxGTK_arm.tar.gz
the wxGTK_arm.tar.gz I think is the bit that got it working but not having to compile the main opencpn binaries saves a lot of time.
I also had to symlink a libtiff.so.5 to the exisitng libtiff.so.4
It is indeed slow but does actually work. I wonder if it is unfair to ask the Raspi to display maps at 1920x1080, after all , my 42" LCD tv would take up rather a lot of space on b oard. A smaller display might be better.
jimseng is offline   Reply With Quote
Old 06-07-2012, 16:24   #12
Registered User
 
Vamonos's Avatar

Join Date: May 2011
Boat: Pearson 385
Posts: 188
Re: Can Someone Help Compile on Raspberry Pi ?

I just received my Raspberry Pi today. Have you tried a lower resolution to see if the latency issues are resolved?

Richard
Vamonos is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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


Advertise Here


All times are GMT -7. The time now is 18:01.


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.