Cruisers & Sailing Forums (http://www.cruisersforum.com/forums/)
-   OpenCPN (http://www.cruisersforum.com/forums/f134/)
-   -   OpenCPN on Raspberry Pi2 (http://www.cruisersforum.com/forums/f134/opencpn-on-raspberry-pi2-149806.html)

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

nohal 21-07-2015 11:32

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

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
7.8

nohal 21-07-2015 22:48

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

yaphone 22-07-2015 07:29

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

nohal 22-07-2015 08:08

Re: OpenCPN on Raspberry Pi2
 
Yaphone...
Seems you are missing
Code:

sudo make install
Pavel

yaphone 22-07-2015 08:44

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

Yaphone

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?

Yaphone

nohal 23-07-2015 11:41

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

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
cmake -DBUNDLE_DOCS=ON -DBUNDLE_TCDATA=ON -DBUNDLE_GSHHS=INTERMEDIATE .. but it's still a blue

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

yaphone 24-07-2015 09:26

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

Yaphone

mattkab 24-07-2015 11:25

Re: OpenCPN on Raspberry Pi2
 
Quote:

Originally Posted by nohal (Post 1875068)
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. :-)

nohal 24-07-2015 11:40

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


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

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


ShowCase vBulletin Plugins by Drive Thru Online, Inc.