Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 14-06-2012, 11:04   #1
Registered User

Join Date: Apr 2012
Posts: 32
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, 11:53   #2
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,250
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, 04:02   #3
Registered User

Join Date: Apr 2012
Posts: 32
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, 04:32   #4
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,020
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 online now   Reply With Quote
Old 15-06-2012, 07:14   #5
Registered User

Join Date: Apr 2012
Posts: 32
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, 07:29   #6
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
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, 08:19   #7
Registered User

Join Date: Apr 2012
Posts: 32
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, 11: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, 13:33   #9
Registered User

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 3,541
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 online now   Reply With Quote
Old 16-06-2012, 05:03   #10
Registered User

Join Date: Apr 2012
Posts: 32
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, 10:00   #11
Registered User

Join Date: Apr 2012
Posts: 32
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, 17:24   #12
Senior Cruiser
 
Vamonos's Avatar

Cruisers Forum Supporter

Join Date: May 2011
Boat: Pearson 385
Posts: 179
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
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




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 06:25.


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.