Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 21-07-2015, 06:11   #1
Registered User

Join Date: Jul 2015
Location: Taiwan
Posts: 12
OpenCPN on Raspberry Pi2

I use the Debian system and I follow this website (Compiling - Linux | Official OpenCPN Homepage) to compile OpenCPN .
I have some problems :
1.
pi@raspberrypi ~ $ sudo apt-get install build-essential cmake gettext git-core gpsd gpsd-clients libgps-dev wx-common libwxgtk3.0-dev libglu1-mesa-dev libgtk2.0-dev wx3.0-headers libbz2-dev libtinyxml-dev libportaudio2 portaudio19-dev
正在讀取套件清單... 完成
正在重建相依關係
正在讀取狀態資料... 完成
E: 找不到套件 libwxgtk3.0-dev
E: Couldn't find any package by regex 'libwxgtk3.0-dev'
E: 找不到套件 wx3.0-headers
E: Couldn't find any package by regex 'wx3.0-headers'

I try to do download these two packages in debian web but are the same problems, how can I solve the problem?

2.
pi@raspberrypi ~ $ cd OpenCPN
pi@raspberrypi ~/OpenCPN $ cd build
pi@raspberrypi ~/OpenCPN/build $ cmake ..
-- *** Build Architecture is armhf
-- *** Staging to build opencpn 4.1.718 ***
-- *** Package will NOT include documentation ***
-- *** Package will NOT include GSHHS data ***
-- *** Package will NOT include tide and current data ***
-- Building for wxGTK2
-- Found OpenGL...
-- Lib: /usr/lib/arm-linux-gnueabihf/libGLU.so/usr/lib/arm-linux-gnueabihf/libGL.so/usr/lib/arm-linux-gnueabihf/libSM.so/usr/lib/arm-linux-gnueabihf/libICE.so/usr/lib/arm-linux-gnueabihf/libX11.so/usr/lib/arm-linux-gnueabihf/libXext.so
-- Include: /usr/include
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
Could NOT find wxWidgets (missing: wxWidgets_FOUND)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-2.8/Modules/FindwxWidgets.cmake:831 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:364 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
pi@raspberrypi ~/OpenCPN/build $ make
make: *** No targets specified and no makefile found. Stop

I can't make the files,am i missing something?

thank you for the help!!!
__________________

__________________
yaphone is offline   Reply With Quote
Old 21-07-2015, 10:32   #2
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,945
Re: OpenCPN on Raspberry Pi2

yaphone...
You are using which Debian release exactly?
Code:
cat /etc/debian_version
If it is by any chance Wheezy, you must enable wheezy-backports package repository. Or, much better, update to Jessie, which is current stable release.

Pavel
__________________

__________________
nohal is offline   Reply With Quote
Old 21-07-2015, 20:56   #3
Registered User

Join Date: Jul 2015
Location: Taiwan
Posts: 12
Re: OpenCPN on Raspberry Pi2

Hello Pavel
my Debian version is 7.8, is that OK? I will try ''jessie'' thank you
pi@raspberrypi ~ $ cat /etc/debian_version
7.8
__________________
yaphone is offline   Reply With Quote
Old 21-07-2015, 21:48   #4
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,945
Re: OpenCPN on Raspberry Pi2

yaphone...
7.8 is wheezy, either enable the backports repo (Instructions) or dist-upgrade to jessie (probably Raspbian GNU/Linux upgrade from Wheezy to Raspbian Jessie 8 is the guide applicable to your system)

Pavel
__________________
nohal is offline   Reply With Quote
Old 22-07-2015, 06:29   #5
Registered User

Join Date: Jul 2015
Location: Taiwan
Posts: 12
Re: OpenCPN on Raspberry Pi2

Pavel ..
I use Debian Jessie but I can't open any website...like yahoo or google.
than my OpenCPN can not open,too

It says:
Failed to initialize the user interface. OpenCPN cannot start.
The necessary configuration files were not found.See the log
file at /home/pi/.opencpn/opencpn.log for details.

/usr/local/share/opencpn/

Am I missing something?

Yaphone
__________________
yaphone is offline   Reply With Quote
Old 22-07-2015, 07:08   #6
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,945
Re: OpenCPN on Raspberry Pi2

Yaphone...
Seems you are missing
Code:
sudo make install
Pavel
__________________
nohal is offline   Reply With Quote
Old 22-07-2015, 07:44   #7
Registered User

Join Date: Jul 2015
Location: Taiwan
Posts: 12
Re: OpenCPN on Raspberry Pi2

Pavel..
oh I like a fool..
thank you very much!!!

Yaphone
__________________
yaphone is offline   Reply With Quote
Old 23-07-2015, 10:34   #8
Registered User

Join Date: Jul 2015
Location: Taiwan
Posts: 12
Re: OpenCPN on Raspberry Pi2

Pavel ..
sorry I have a question
I can open my OpenCPN but there nothing inside
no island, only a blue...

am I missing something again?

Yaphone
__________________
yaphone is offline   Reply With Quote
Old 23-07-2015, 10:41   #9
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,945
Re: OpenCPN on Raspberry Pi2

yaphone...
Yes, you are missing the GSHHS basemap. Read Modularized Packaging | Official OpenCPN Homepage
BTW, is there really a reason all of you guys prefer suffering over installing the ready made packages?

Pavel
__________________
nohal is offline   Reply With Quote
Old 23-07-2015, 22:57   #10
Registered User

Join Date: Jul 2015
Location: Taiwan
Posts: 12
Re: OpenCPN on Raspberry Pi2

Pavel ..
because of the Windows® system@@ and I am Linux beginners...

I try the Packing and code
cmake -DBUNDLE_DOCS=ON -DBUNDLE_TCDATA=ON -DBUNDLE_GSHHS=INTERMEDIATE .. but it's still a blue

Do I need to recompile ?
__________________
yaphone is offline   Reply With Quote
Old 23-07-2015, 23:29   #11
Registered User

Join Date: Jul 2015
Location: Taiwan
Posts: 12
Re: OpenCPN on Raspberry Pi2

I have already done this part !!!
In order to be able to run OpenCPN from inside the IDE without having it installed, you must copy the following folders from the data subfolder of the source tree to your build folder: gshhs, s57data, tcdata. You also must create a subfolder uidata in the build folder and copy the following files from src/bitmaps into it: styles.xml, toolicons_journeyman_flat.png, toolicons_journeyman.png, toolicons_traditional.png
__________________
yaphone is offline   Reply With Quote
Old 24-07-2015, 06:06   #12
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,945
Re: OpenCPN on Raspberry Pi2

yaphone...
You of course need to do another
Code:
sudo make install
after you configured it to count with the data files.
What you don't need is to copy the style data anywhere manually, unless you are going to develop OpenCPN.
I still don't understand why you don't simply install the packages we have prepared in the PPA - if you are a Linux beginner and want to learn how to develop software on it, there certainly are tutorials more suitable to do it than our build instructions...

Pavel
__________________
nohal is offline   Reply With Quote
Old 24-07-2015, 08:26   #13
Registered User

Join Date: Jul 2015
Location: Taiwan
Posts: 12
Re: OpenCPN on Raspberry Pi2

is that the PPA?
(https://launchpad.net/~opencpn/+archive/ubuntu/opencpn)

because my teacher want me to learn how to compile the OpenCPN so I don't want to use the ready made packages, just so there will be many questions to ask...

Yaphone
__________________
yaphone is offline   Reply With Quote
Old 24-07-2015, 10:25   #14
Registered User

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

Quote:
Originally Posted by nohal View Post
BTW, is there really a reason all of you guys prefer suffering over installing the ready made packages?
Pavel:

Because OpenCPN development is progressing at an extremely fast speed and any of the ready made packages fall out of date quickly -- sometimes within hours.

Once we can get a reliable recipe for installation, it can go on the wiki, and the problems and requests being reported here will drop. Heck, we can even post a script that builds the current version so that typo's and missed steps go away.

This has been my goal for months. :-)
__________________
Thanks, Matt B.
1983 Fu Hwa Seahorse
http://mvcesc.wordpress.com/
mattkab is offline   Reply With Quote
Old 24-07-2015, 10:40   #15
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,945
Re: OpenCPN on Raspberry Pi2

Matt...
There is no point for a non-developer user to build the master branch, actually the exact opposite. We package beta releases from it when it makes sense.

Pavel
__________________

__________________
nohal 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 12:03.


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.