Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 14-01-2016, 01:39   #181
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: BVI
Boat: bristol 27
Posts: 2,675
Re: OpenCPN on Raspberry Pi2

So you were not compiling opencpn from source? No wonder it isn't working.
__________________

__________________
boat_alexandra is offline   Reply With Quote
Old 14-01-2016, 02:21   #182
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 46
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by boat_alexandra View Post
So you were not compiling opencpn from source? No wonder it isn't working.
Hi,

no, didnt compile sorry

I used the packages from the ppa (ppa:nohal/opencpn) and installed them. This looked to be the best way for a newbie like me.

Ok, so I understand that I have to compile it.
Can you please tell me the right path to the source?
Where I can find the right source for compiling o for the pi with the right grafik acceleration?
Is it $ git clone git://github.com/OpenCPN/OpenCPN.git
like it is explained in the dev.-manual or is it another source?
Wich one?
The steps are the same as compiling e.g. the glshim right?

When I want to have some of the plugins how can I get them into o?
Install them with the ppa-packages or better to compile?

Thanks

Andreas
__________________

__________________
Andreas29 is offline   Reply With Quote
Old 14-01-2016, 05:10   #183
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 46
Re: OpenCPN on Raspberry Pi2

Hi,

sorry to ask, but I loose the clear view of sight.
Ive read the threads for the new releases, the ones for the pi and so on and so on.

What is now the right source for building o for the raspi 2?

Thanks

Andreas
__________________
Andreas29 is offline   Reply With Quote
Old 14-01-2016, 05:24   #184
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,041
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by Andreas29 View Post
Hi,

sorry to ask, but I loose the clear view of sight.
Ive read the threads for the new releases, the ones for the pi and so on and so on.

What is now the right source for building o for the raspi 2?

Thanks

Andreas
You can build from the mainline source:
https://github.com/OpenCPN/OpenCPN

But it will not use the video acceleration on the Pi.

The latest changes that enable video acceleration have not been merged into the main branch of OpenCPN.

If you want it to work with video acceleration, You could try this branch:
https://github.com/seandepagnier/OpenCPN/tree/rpi_fixes

In either case follow the instructions for compiling with Linux:
Compiling - Linux | Official OpenCPN Homepage

Cheers,
JM.
__________________
NahanniV is offline   Reply With Quote
Old 14-01-2016, 07:04   #185
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,706
Re: OpenCPN on Raspberry Pi2

@jon...

re .deb package for 4.1.1301:
OpenCPN on Raspberry Pi2

I would very much like for O4.2 to build on RPI2 noobs(jessie) without any tweaking required.

I tried to reproduce your build, no joy. Missing libdri2.so, etc...

What changes did you need to make this work?

Thanks
Dave
__________________
bdbcat is offline   Reply With Quote
Old 14-01-2016, 14:25   #186
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 858
Re: OpenCPN on Raspberry Pi2

Dave,
All the changes I made are in the mainline as I submitted pulls for them. It was really a matter of catering for wxWidgets 2.8. There is no opengl capability in my builds and they do not use SVG icons.

I am trying to get a build working using SVG, but there appear to be some cairo/pango libraries that are needed and not found. I am trying to fix this up at the moment, but as the changes are needed in cmake and I am rather confused by cmake it is slow going.

Jon
__________________
jongough is offline   Reply With Quote
Old 15-01-2016, 00:25   #187
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 858
Re: OpenCPN on Raspberry Pi2

Dave,
I have just managed to generate the latest OCPN and OD plugins using SVG on the PI. For OCPN I had to add four libraries in the CMakeLists.txt file. For me I added a new line after ${GTK_LIBRARIES} (line 688), the "pango" stuff . For some reason the CMAKE process is not adding these to the link.
Code:
    ${EXPAT_LIBRARIES}
        ${GTK_LIBRARIES}
        pangocairo-1.0 pangoft2-1.0 pangoxft-1.0 gdk_pixbuf-2.0
      )
    ENDIF(WIN32)

    SET(SRC_WXSVG
I have tried it and it does work quite nicely.

Now I don't know enough about CMAKE to fix this error properly so I am reluctant to push this up to be incorporated into OCPN. Can someone who does understand CMAKE look through and see why it is not being added. It appears to be in the GTK2 sections, but.....

Jon
__________________
jongough is offline   Reply With Quote
Old 15-01-2016, 11:54   #188
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,706
Re: OpenCPN on Raspberry Pi2

@jon...

I modified CMakeLists.txt to find and add the needed SVG extra libraries for RPI2 build. Committed to github. A little bit of a hack, but works OK so far.

Testing more on RPI2 now....

Thanks
Dave
__________________
bdbcat is offline   Reply With Quote
Old 15-01-2016, 12:10   #189
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,041
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by bdbcat View Post
@jon...

I modified CMakeLists.txt to find and add the needed SVG extra libraries for RPI2 build. Committed to github. A little bit of a hack, but works OK so far.

Testing more on RPI2 now....

Thanks
Dave
Are you planning to merge Sean's Rpi Fixes Pull Request ?

Or is that waiting till after a release ?

Cheers,
JM.
__________________
NahanniV is offline   Reply With Quote
Old 15-01-2016, 15:56   #190
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,706
Re: OpenCPN on Raspberry Pi2

@JM...

Sean RPI fix patch will hold until after O4.2 releases.

Thanks
Dave
__________________
bdbcat is offline   Reply With Quote
Old 15-01-2016, 21:20   #191
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,706
Re: OpenCPN on Raspberry Pi2

@jon...

I am having some trouble getting the current github to run properly with stock wx2.8 on RPI2. Stops on some X error, unless I start with opengl disabled. Debugger no help, crashes earlier.

Builds and runs fine with locally built wx3.02, though.





Could you post the output of
Code:
$ldd opencpn
here?

Thanks
Dave
__________________
bdbcat is offline   Reply With Quote
Old 15-01-2016, 23:50   #192
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 858
Re: OpenCPN on Raspberry Pi2

Dave,
I can get it running but the charts do not show with opengl, I just get a white screen. If I play around I do get a crash in GetCanvasPixLL at line 2068 - ocpn_vp.skew = vp=>skew, but this may be due to the charts not rendering. I have attached the LDD as requested. Without opengl it works fine.

I have been running through remote desktop as I don't have enough screens to run it directly attached. I have just done a trial that way and opengl or not I get an X Window System error -

Code:
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 1074 error_code 8 request_code 67 minor_code 0)

Jon
Attached Files
File Type: doc opencpn.ldd.doc (7.2 KB, 9 views)
__________________
jongough is offline   Reply With Quote
Old 16-01-2016, 19:35   #193
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 858
Re: OpenCPN on Raspberry Pi2

Dave,
I have not got it working with OpenGL, but very slowly, between 1 & 4fps. I followed these instructions:
King Tide Sailing: How To Install OpenCPN on a Raspberry Pi

This also stopped the X crashes I was getting when using a real HDMI local screen.

Now that I know it works I may have a little play to see if there is a setting that is slowing it down.

Jon
__________________
jongough is offline   Reply With Quote
Old 16-01-2016, 20:23   #194
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: BVI
Boat: bristol 27
Posts: 2,675
Re: OpenCPN on Raspberry Pi2

Jon,

What about using my rpi_fixes branch?

Sean
__________________
boat_alexandra is offline   Reply With Quote
Old 16-01-2016, 23:22   #195
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 858
Re: OpenCPN on Raspberry Pi2

Sean,
Just tried it but it is not wxWidgets 2.8 valid. s52plib.cpp at line 547 gets an error. This line was introduced in pull b866038.

I am using vanilla Jessie with just the development capability so that I can compile the programs. I have been trying to get OCPN OpenGL to run, and have now managed it with a few config changes. Non-OpenGL works fine from the main repository.

I have a wxWidgets 2.8 Linux VirtualBox I do my testing with so that I can run a full debugger (I just cannot get the hang of gdb text mode for debugging). I will see if I can use this to get it working over the next few days.

Regards
Jon
__________________

__________________
jongough is offline   Reply With Quote
Reply

Tags
enc, 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
OpenCPN on Raspberry PI2 starnakel OpenCPN 284 16-03-2017 13:58
Has anyone gotten any Plugins working on Raspberry Pi2 Uncle Augie OpenCPN 5 27-06-2015 06:19
Has anyone managed to get hardware supported OpenGL on Rasperry Pi2 to work? Gunnar1 OpenCPN 53 16-06-2015 02:10
Raspberry Pi2 ratsea OpenCPN 5 26-02-2015 08:41
The Perfect Platform for OpenCPN ? Raspberry Pi night0wl OpenCPN 10 08-09-2011 19:09


Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities


Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 22:27.


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.