Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-12-2010, 20:34   #16
Registered User

Join Date: Dec 2010
Posts: 25
Oh dear.

I've just downloaded Beta 2.2, successfully installed it, got a new link under Applications/Science and even got a nice OpenCPN icon to click on. Alas, same problem. No splash screen this time and the timer icon appears on my cursor as though it is opening the application... and then nothing.
__________________

__________________
demonboy is offline   Reply With Quote
Old 10-12-2010, 21:06   #17
Registered User

Join Date: Dec 2010
Posts: 25
Double oh dear.

I have just tried the stable release of 2.1 on another 10.10 machine and I have the same problem. Are any of you successfully running OpenCPN on Ubuntu 10.10 or are you running earlier versions of Linux?
__________________

__________________
demonboy is offline   Reply With Quote
Old 11-12-2010, 01:40   #18
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,250
Quote:
Originally Posted by demonboy View Post
Double oh dear.

I have just tried the stable release of 2.1 on another 10.10 machine and I have the same problem. Are any of you successfully running OpenCPN on Ubuntu 10.10 or are you running earlier versions of Linux?
Your're spot on, and I should have remembered, or rather documented it in the first place.
I downloaded the stable 2.1, and had the same result as you. Running it through ddd this is what I get.Click image for larger version

Name:	libc.png
Views:	73
Size:	34.5 KB
ID:	21852

What I think has happened is that the very basic c library libc has been upgraded from 2.11.1 in Ubuntu 10.4 to 2.12.1 in Ubuntu 10.10.
This is major, and as the stable packages where compiled against the old libc they will not work with the upgraded libc.

I downloaded the old 2.1 source-code and compiled, but had similar problems never the less.
Dave, any insights in how the libc upgrade affects OpenCPN?

Demonboy, let's continue with 2.2.1207........
To run opencpn with ddd
Quote:
ddd opencpn
If you don't see the floating box do this:
Goto Program->Run this brings up another floating box, don't enter anything, just press run again. This should start opencpn .....unles there is a segfault (crash ).

Thomas
__________________
cagney is offline   Reply With Quote
Old 11-12-2010, 04:15   #19
Registered User

Join Date: Dec 2010
Posts: 25
I think there was a segfault. I'm now trying to run 2.2 beta:

Code:
Reading symbols from /usr/local/bin/opencpn...(no debugging symbols found)...done.
(gdb) set args
(gdb) run
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x080cef95 in MyApp::OnInit() ()
(gdb)
__________________
demonboy is offline   Reply With Quote
Old 11-12-2010, 04:26   #20
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,250
Quote:
Originally Posted by demonboy View Post
I think there was a segfault. I'm now trying to run 2.2 beta:

Code:
Reading symbols from /usr/local/bin/opencpn...(no debugging symbols found)...done.
(gdb) set args
(gdb) run
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x080cef95 in MyApp::OnInit() ()
(gdb)


I thing we better set up your "development environment".

Do this
Quote:
sudo apt-get install git-core cmake gpsd gpsd-clients libgps-dev build-essential wx-common libwxgtk2.8-dev libglu1-mesa-dev libgtk2.0-dev wx2.8-header

Then try ddd again.
Thomas
__________________
cagney is offline   Reply With Quote
Old 11-12-2010, 22:55   #21
Registered User

Join Date: Dec 2010
Posts: 25
OK, done that and when I 'ddd opencpn' in Terminal I am still getting in DDD:

Code:
Reading symbols from /usr/local/bin/opencpn...(no debugging symbols found)...done.
(gdb)
Whilst in Terminal it says

Code:
jamie@jamie-NC10:~$ ddd opencpn
Warning: XmStringGetNextComponent: unknown type 143005048

(Annoyed?  Try 'Edit->Preferences->General->Suppress X Warnings'!)
Warning: XmStringGetNextComponent: unknown type 143005096
__________________
demonboy is offline   Reply With Quote
Old 12-12-2010, 03:50   #22
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,250
Quote:
Originally Posted by demonboy View Post
OK, done that and when I 'ddd opencpn' in Terminal I am still getting in DDD:

Code:
Reading symbols from /usr/local/bin/opencpn...(no debugging symbols found)...done.
(gdb)
Whilst in Terminal it says

Code:
jamie@jamie-NC10:~$ ddd opencpn
Warning: XmStringGetNextComponent: unknown type 143005048

(Annoyed?  Try 'Edit->Preferences->General->Suppress X Warnings'!)
Warning: XmStringGetNextComponent: unknown type 143005096
I think you forgot the last step, after starting ddd.

Press run in the floating box, or if this is not there
Quote:
Goto Program->Run this brings up another floating box, don't enter anything, just press run again. This should start opencpn ....
Just ignore the output in the terminal after starting ddd.

Thomas
__________________
cagney is offline   Reply With Quote
Old 12-12-2010, 06:29   #23
Registered User

Join Date: Dec 2010
Posts: 25
Sorry Thomas but this is all I am getting after following your instructions:

Code:
GNU DDD 3.3.12 (i686-pc-linux-gnu), by Dorothea Lütkehaus and Andreas Zeller.
Copyright © 1995-1999 Technische Universität Braunschweig, Germany.
Copyright © 1999-2001 Universität Passau, Germany.
Copyright © 2001 Universität des Saarlandes, Germany.
Copyright © 2001-2004 Free Software Foundation, Inc.
Reading symbols from /usr/local/bin/opencpn...(no debugging symbols found)...done.
(gdb) set args
(gdb) run
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x080cef95 in MyApp::OnInit() ()
(gdb)
__________________
demonboy is offline   Reply With Quote
Old 12-12-2010, 07:32   #24
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,250
You have your segfault go to "Status -> Backtrace" and let us see a screendump.

I would guess that the "(no debugging symbols found)" message comes from compiling both with -g and -O3. O3 compiling has been added in the latest beta since 2.1.

Thomas
__________________
cagney is offline   Reply With Quote
Old 13-12-2010, 03:10   #25
Registered User

Join Date: Dec 2010
Posts: 25
Backtrace just says "No stack". Is something missing?
__________________
demonboy is offline   Reply With Quote
Old 19-12-2010, 21:32   #26
Registered User

Join Date: Dec 2010
Posts: 25
Hi,

Continuing on with my misadventures of Opencpn in Ubuntu 10.10 I was recommended by Thomas to compile the thing myself. I tried this and I am still not getting anywhere

This is the latest:

Code:
jamie@jamie-NC10:~$ git clone git://opencpn.git.sourceforge.net/gitroot/opencpn/opencpn
Initialized empty Git repository in /home/jamie/opencpn/.git/
remote: Counting objects: 2996, done.
remote: Compressing objects: 100% (2111/2111), done.
remote: Total 2996 (delta 1740), reused 1574 (delta 827)
Receiving objects: 100% (2996/2996), 36.13 MiB | 5 KiB/s, done.
Resolving deltas: 100% (1740/1740), done.
jamie@jamie-NC10:~$ cd opencpn
jamie@jamie-NC10:~/opencpn$ mkdir build
jamie@jamie-NC10:~/opencpn$ cd build
jamie@jamie-NC10:~/opencpn/build$ cmake ../
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- *** Building opencpn 2.3.0 ***
-- Found wxWidgets: TRUE
-- 
-- *** Building PlugIns ***
-- *** Building grib_pi ***
-- 
-- *** Building dashboard_pi ***
-- 
-- *** Building opencpn  ***
-- Found GTK2_GTK: /usr/lib/libgtk-x11-2.0.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- GPSD Library support: enabled
-- Found gps: /usr/lib/libgps.so
-- 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/jamie/opencpn/build
jamie@jamie-NC10:~/opencpn/build$ sudo make install
[sudo] password for jamie: 
Scanning dependencies of target GARMINHOST
[  0%] Building C object CMakeFiles/GARMINHOST.dir/src/garmin/jeeps/gpsapp.c.o
[  0%] Building C object CMakeFiles/GARMINHOST.dir/src/garmin/jeeps/gpscom.c.o
[  1%] Building C object CMakeFiles/GARMINHOST.dir/src/garmin/jeeps/gpsmath.c.o
[  1%] Building C object CMakeFiles/GARMINHOST.dir/src/garmin/jeeps/gpsmem.c.o
[  1%] Building C object CMakeFiles/GARMINHOST.dir/src/garmin/jeeps/gpsprot.c.o
[  2%] Building C object CMakeFiles/GARMINHOST.dir/src/garmin/jeeps/gpsread.c.o
[  2%] Building C object CMakeFiles/GARMINHOST.dir/src/garmin/jeeps/gpsdevice.c.o
[  2%] Building C object CMakeFiles/GARMINHOST.dir/src/garmin/jeeps/gpsdevice_ser.c.o
[  3%] Building C object CMakeFiles/GARMINHOST.dir/src/garmin/jeeps/gpsdevice_usb.c.o
[  3%] Building C object CMakeFiles/GARMINHOST.dir/src/garmin/jeeps/gpsrqst.c.o
[  3%] Building C object CMakeFiles/GARMINHOST.dir/src/garmin/jeeps/gpssend.c.o
[  5%] Building C object CMakeFiles/GARMINHOST.dir/src/garmin/jeeps/gpsserial.c.o
[  5%] Building C object CMakeFiles/GARMINHOST.dir/src/garmin/jeeps/gpsutil.c.o
[  6%] Building C object CMakeFiles/GARMINHOST.dir/src/garmin/jeeps/gpsusbread.c.o
[  6%] Building C object CMakeFiles/GARMINHOST.dir/src/garmin/jeeps/gpsusbsend.c.o
[  6%] Building C object CMakeFiles/GARMINHOST.dir/src/garmin/jeeps/gpsusbcommon.c.o
[  7%] Building C object CMakeFiles/GARMINHOST.dir/src/garmin/jeeps/garmin_wrapper_utils.c.o
[  7%] Building CXX object CMakeFiles/GARMINHOST.dir/src/garmin/jeeps/garmin_wrapper.cpp.o
Linking CXX static library libGARMINHOST.a
[  7%] Built target GARMINHOST
Scanning dependencies of target NMEA0183
[  7%] Building CXX object CMakeFiles/NMEA0183.dir/src/nmea.cpp.o
In file included from /usr/include/gtk-2.0/gdk/gdkcairo.h:28,
                 from /usr/include/gtk-2.0/gdk/gdk.h:33,
                 from /usr/include/gtk-2.0/gtk/gtk.h:32,
                 from /home/jamie/opencpn/include/dychart.h:239,
                 from /home/jamie/opencpn/src/nmea.cpp:50:
/usr/include/gtk-2.0/gdk/gdkpixbuf.h:37: fatal error: gdk-pixbuf/gdk-pixbuf.h: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/NMEA0183.dir/src/nmea.cpp.o] Error 1
make[1]: *** [CMakeFiles/NMEA0183.dir/all] Error 2
make: *** [all] Error 2
jamie@jamie-NC10:~/opencpn/build$
Please, please, please tell me what I'm doing wrong.
__________________
demonboy is offline   Reply With Quote
Old 20-12-2010, 05:08   #27
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 335
Quote:
Originally Posted by demonboy View Post
Please, please, please tell me what I'm doing wrong.
Nothing wrong on your side ;-) This is due to a bug in cmake

The current workaround is to append /usr/include/gdk-pixbuf-2.0 to
GTK2_GDK_INCLUDE_DIR in CMakeCache.txt

See cmake.org Git - cmake.git/commitdiff for more info.

You shall try to ask Ubuntu to update or patch cmake to solve this bug.
__________________
SethDart is offline   Reply With Quote
Old 20-12-2010, 10:25   #28
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,250
Thanks SethDart.
Another option is to update to cmake 2.8.3.
Links in this post:OpenCPN Version 2.3.0 Release
Thomas
__________________
cagney is offline   Reply With Quote
Old 20-12-2010, 23:03   #29
Registered User

Join Date: Dec 2010
Posts: 25
Hi,

Very pleased there is a solution to this. However you are dealing with a Linux newbie here and the launchpad link you provided in the other thread makes little sense to me, Thomas. I can see:

Am I installing one of these links? Sorry for the daft question, this is all new to me. Thanks.
__________________
demonboy is offline   Reply With Quote
Old 21-12-2010, 02:08   #30
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 335
Quote:
Originally Posted by demonboy View Post
Only this one is required. The others are optional (graphical user interface, doc, ...) not required if you follow the steps described above.
__________________

__________________
SethDart is offline   Reply With Quote
Reply

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 Linux / Ubuntu Issues and Questions yachtmanforfun OpenCPN 52 19-02-2016 18:54
Ubuntu 10.10 and OpenCPN cagney OpenCPN 11 10-09-2011 11:40
OpenCPN 2.1.624 with Ubuntu 10.10 Gypsy23 OpenCPN 4 15-04-2011 01:46
Ubuntu 10.4 and OpenCPN cagney OpenCPN 24 07-01-2011 13:16
Opencpn 2.2 Build 823 Crashes when Dashboard Is Opened in Ubuntu tebsin OpenCPN 1 24-08-2010 15:16



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 13:24.


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.