Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 29-11-2010, 10:48   #16
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Johan

The answer, is "yes" to both questions.
Come back if you have any problems.

Thomas
cagney is offline   Reply With Quote
Old 29-11-2010, 11:25   #17
Marine Service Provider
 
wadda's Avatar

Join Date: Jul 2010
Location: Sydney
Boat: Allied Mistress 39'
Posts: 89
Quote:
Originally Posted by jlsail View Post
Thomas

Thanks for your answer!
just so I understands you correct, if I compile the source by my self it will work?
And is synaptic package manager enough to remove the not working version?
The answer to both questions is 'yes'...if done correctly.

To compile you'll need to install "build-essentials"...plus any development libraries and cruft creators.

...but the deb package for OpenCPN (with the right libraries as mentioned) should do it without the wailing and gnashing of teeth. I don't know why the deb doesn't list them as dependencies and enable Synaptic (or some-such) to d/l them.
wadda is offline   Reply With Quote
Old 29-11-2010, 11:44   #18
Registered User

Join Date: Oct 2008
Location: Out sailing
Boat: spray 45
Posts: 42
thomas
I run in to problems..
first libgps19 couldn't be found this I ignored since I think I have read a post saying this was for ubuntu10.10, next problem and were I am stucked now is when I run
jlsail@jlsail-nav:~/opencpn/build$ cmake -DCFLAGS="-O2 -march=native" ../
-- *** Building opencpn 2.2.1124 ***
--
-- *** Building PlugIns ***
-- *** Building grib_pi ***
--
-- *** Building dashboard_pi ***
--
-- *** Building opencpn ***
CMake Warning at CMakeLists.txt:101 (FIND_PACKAGE):
Could not find module FindGTK2.cmake or a configuration file for package
GTK2.

Adjust CMAKE_MODULE_PATH to find FindGTK2.cmake or set GTK2_DIR to the
directory containing a CMake configuration file for GTK2. The file will
have one of the following names:

GTK2Config.cmake
gtk2-config.cmake



-- GPSD Library support: enabled
-- Building with libgps includes
-- S57 ENC support: enabled
-- Garmin Host Mode support: enabled
-- Writing spec file...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jlsail/opencpn/build
jlsail@jlsail-nav:~/opencpn/build$


looks like gtk2 is missing and I cant find it!!!

if I continue

jlsail@jlsail-nav:~/opencpn/build$ sudo make install
[sudo] password for jlsail:
[ 7%] Built target GARMINHOST
[ 8%] Building CXX object CMakeFiles/NMEA0183.dir/src/nmea.cpp.o
In file included from /home/jlsail/opencpn/src/nmea.cpp:52:
/home/jlsail/opencpn/include/nmea.h:75:21: error: gtk/gtk.h: No such file or directory
/home/jlsail/opencpn/src/nmea.cpp: In constructor ‘NMEAHandler::NMEAHandler(int, wxFrame*, const wxString&, const wxString&, wxMutex*, bool)’:
/home/jlsail/opencpn/src/nmea.cpp:333: error: aggregate ‘version_t check_version’ has incomplete type and cannot be defined
/home/jlsail/opencpn/src/nmea.cpp:342: error: ‘VERSION_SET’ was not declared in this scope
/home/jlsail/opencpn/src/nmea.cpp:345: error: ‘struct gps_data_t’ has no member named ‘version’
/home/jlsail/opencpn/src/nmea.cpp:388: error: ‘WATCH_ENABLE’ was not declared in this scope
/home/jlsail/opencpn/src/nmea.cpp: In member function ‘void NMEAHandler::OnTimerLIBGPS(wxTimerEvent&)’:
/home/jlsail/opencpn/src/nmea.cpp:556: error: ‘PACKET_SET’ was not declared in this scope
/home/jlsail/opencpn/src/nmea.cpp:567: error: ‘struct gps_data_t’ has no member named ‘dev’
/home/jlsail/opencpn/src/nmea.cpp:575: error: ‘struct gps_data_t’ has no member named ‘devices’
/home/jlsail/opencpn/src/nmea.cpp:577: error: ‘struct gps_data_t’ has no member named ‘devices’
/home/jlsail/opencpn/src/nmea.cpp:623: error: ‘struct gps_data_t’ has no member named ‘satellites_visible’
/home/jlsail/opencpn/src/nmea.cpp:624: error: ‘struct gps_data_t’ has no member named ‘satellites_visible’
/home/jlsail/opencpn/src/nmea.cpp:631: error: ‘struct gps_data_t’ has no member named ‘error’
/home/jlsail/opencpn/src/nmea.cpp:632: error: ‘error’ was not declared in this scope
/home/jlsail/opencpn/src/nmea.cpp:632: error: ‘struct gps_data_t’ has no member named ‘error’
/home/jlsail/opencpn/src/nmea.cpp:632: error: ‘struct gps_data_t’ has no member named ‘error’
make[2]: *** [CMakeFiles/NMEA0183.dir/src/nmea.cpp.o] Error 1
make[1]: *** [CMakeFiles/NMEA0183.dir/all] Error 2
make: *** [all] Error 2
jlsail@jlsail-nav:~/opencpn/build$

alot of errors

Johan
jlsail is offline   Reply With Quote
Old 29-11-2010, 14:09   #19
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 340
Quote:
Originally Posted by jlsail View Post
CMake Warning at CMakeLists.txt:101 (FIND_PACKAGE):
Could not find module FindGTK2.cmake or a configuration file for package
GTK2.
Hi,

Unfortunately, your CMake version is outdated. You can try to download FindGTK2.cmake in your build directory, then run cmake again. Here's the latest version:
http://cmake.org/gitweb?p=cmake.git;...4ff4efb80a09fa

If that doesn't work, you'll need to update cmake. You can download and run cmake-2.8.3-Linux-i386.sh from
CMake - Cross Platform Make

Regards,
Jean-Eudes
SethDart is offline   Reply With Quote
Old 30-11-2010, 07:59   #20
Registered User

Join Date: Oct 2008
Location: Out sailing
Boat: spray 45
Posts: 42
Thomas and Jean-Eudes

thanks for trying to help, I decided to try to install 10.04 insteed and it works.
I now have opencpn working so I can compere ubuntu/w7 (I have two fitpc2 one w7 and one ubuntu 10.04)

Thanks again
Johan
jlsail is offline   Reply With Quote
Old 30-11-2010, 09:55   #21
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Quote:
Originally Posted by jlsail View Post
Thomas and Jean-Eudes

thanks for trying to help, I decided to try to install 10.04 insteed and it works.
I now have opencpn working so I can compere ubuntu/w7 (I have two fitpc2 one w7 and one ubuntu 10.04)

Thanks again
Johan
Glad you made, finally.
I used your experience to tweak the Linux instructions a bit.
*It's not necessary to name libgps as gpsd will pull the correct libgps version..
*cvs gone, not used anymore.
* Now stating min version of Ubuntu & Fedora that includes Cmake 2.8. Sorry I missed this in my answer to you!

Thomas
cagney is offline   Reply With Quote
Old 05-12-2010, 23:31   #22
Registered User

Join Date: Oct 2005
Posts: 120
cannot open ocpn on ubuntu 10.10

I just started with ubuntu on an old laptop. Installed the latest version (10.10) last evening.
Today, I downloaded the latest released version of ocpn for ubuntu: R2.1 : I followed strictly the ocpn home page instructions. It installed, but I could not open it.
Help in the matter would be really appreciated, but I am not a SW expert at all, and any suggestion or request for more info should be completely detailed. For example, if you want to see a log file, please specify which one and where I will find it, etc...

Thank you
__________________
claire
claire is offline   Reply With Quote
Old 06-12-2010, 01:05   #23
Registered User

Join Date: Oct 2005
Posts: 120
I got my own answer

Here is the trick, for all of you non SW experts who have problems starting opencpn on ubuntu:
go to: system -> administration -> synaptic package manager
click on "search", enter "opencpn". If you have installed it, it will appear marked as installed. right click on it and select "properties", then click on "dependencies".
Write down exactly each dependency listed. Now, do a similar search for each dependency and check that it is installed. If not, mark it for installation. When you are done, click "apply" on the main synaptic screen. When all is done, go back to : applications -> other -> opencpn and it will open!

Why can't you SW gurus give us this kind of simple and logical recipe iso these impossible command lines that never work for me?
__________________
claire
claire is offline   Reply With Quote
Old 06-12-2010, 03:54   #24
Registered User
 
idpnd's Avatar

Join Date: Sep 2007
Location: Almería, ES
Boat: Chiquita 46 - Libertalia
Posts: 1,558
Quote:
Originally Posted by claire View Post
Here is the trick, for all of you non SW experts who have problems starting opencpn on ubuntu:
go to: system -> administration -> synaptic package manager
click on "search", enter "opencpn". If you have installed it, it will appear marked as installed. right click on it and select "properties", then click on "dependencies".
Good job working that out claire. Normally the dependencies are pulled automatically when you install opencpn? Bit annoyign that..
__________________
sv Libertalia
idpnd is offline   Reply With Quote
Old 07-12-2010, 09:39   #25
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
claire

Thanks for posting your experience. It made me look a bit closer at the instructions on the wiki, and test Ubuntu from the install CD, to see what's going on, on a new install.
My conclusion is that the instructions missed an essential step. The "universe" repository must be made available before even trying to install OpenCPN, otherwise the necessary libwxgtk2.8-0 will not be installed. Unfortunately this repository, is not activated by default, when installing Ubuntu.
I have changed the instructions accordingly. I hope that this will solve the problem for first time installers.

Thomas
cagney is offline   Reply With Quote
Old 08-12-2010, 01:46   #26
Registered User
 
idpnd's Avatar

Join Date: Sep 2007
Location: Almería, ES
Boat: Chiquita 46 - Libertalia
Posts: 1,558
Quote:
Originally Posted by cagney View Post
I have changed the instructions accordingly. I hope that this will solve the problem for first time installers.
Excellent work thomas - although I do feel this is an ubuntu "problem"
__________________
sv Libertalia
idpnd is offline   Reply With Quote
Old 08-12-2010, 06:54   #27
Registered User

Join Date: Oct 2005
Posts: 120
Thomas,

libwxgtk2.8-0 is the very application I had to install to make it work.
Glad I may have been of some use to improve the product.
Cheers
__________________
claire
claire is offline   Reply With Quote
Reply

Tags
linux


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 Linux / Ubuntu Issues and Questions yachtmanforfun OpenCPN 65 24-01-2018 08:06
OpenCPN for Puppy Linux BobLarkin OpenCPN 26 01-10-2012 14:09
Installing OpenCPN on a Bootable Linux Flash Drive jimbim OpenCPN 34 14-08-2010 04:24
Printing Charts on Linux captsparky OpenCPN 1 24-04-2010 03:15
linux or xp uncle_fred Navigation 7 21-08-2006 17:03

Advertise Here


All times are GMT -7. The time now is 01:08.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.