Cruisers & Sailing Forums (
-   OpenCPN (
-   -   OpenCPN on Raspberry Pi2 (

yaphone 21-07-2015 07:11

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 :
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?

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/
-- 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!!!

nohal 21-07-2015 11:32

Re: OpenCPN on Raspberry Pi2
You are using which Debian release exactly?

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.


yaphone 21-07-2015 21:56

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

nohal 21-07-2015 22:48

Re: OpenCPN on Raspberry Pi2
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)


yaphone 22-07-2015 07:29

Re: OpenCPN on Raspberry Pi2
Pavel ..
I use Debian Jessie but I can't open any 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.


Am I missing something?


nohal 22-07-2015 08:08

Re: OpenCPN on Raspberry Pi2
Seems you are missing

sudo make install

yaphone 22-07-2015 08:44

Re: OpenCPN on Raspberry Pi2
oh I like a fool..
thank you very much!!!


yaphone 23-07-2015 11:34

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?


nohal 23-07-2015 11:41

Re: OpenCPN on Raspberry Pi2
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?


yaphone 23-07-2015 23:57

Re: OpenCPN on Raspberry Pi2
Pavel ..
because of the Windows® system@@ and I am Linux beginners...

I try the Packing and code

Do I need to recompile ?

yaphone 24-07-2015 00:29

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

nohal 24-07-2015 07:06

Re: OpenCPN on Raspberry Pi2
You of course need to do another

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...


yaphone 24-07-2015 09:26

Re: OpenCPN on Raspberry Pi2
is that the PPA?

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...:peace:


mattkab 24-07-2015 11:25

Re: OpenCPN on Raspberry Pi2

Originally Posted by nohal (Post 1875068)
BTW, is there really a reason all of you guys prefer suffering over installing the ready made packages?


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. :-)

nohal 24-07-2015 11:40

Re: OpenCPN on Raspberry Pi2
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.


All times are GMT -7. The time now is 03:16.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2018, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.