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 12-05-2011, 12:32   #76
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: OpenCPN Version 2.4 Beta Build 506

Quote:
Originally Posted by bdbcat View Post
sailias....

Sorry, I'm dense or forgetful.

Could you refresh us on this problem? The log looks OK to me....

Thanks
Dave
IF you look carefully cmake does not pick up all the GTK elements. This is because Ubuntu moved stuff around and they claim its a cmake issue.

The result is
--------------------
[ 7%] Building CXX object CMakeFiles/NMEA0183.dir/src/nmea.cpp.o
In file included from /home/chris123/opencpn/opencpn/src/nmea.cpp:52:0:
/home/chris123/opencpn/opencpn/include/nmea.h:51:21: fatal error: gtk/gtk.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
-------------------------------------

I will try to find the referenced post where this was discussed, as it was discussed about a week back. Not sure if it was entered in flyspray or not. Will check that as well. The issue is unique to Ubuntu for sure.

Best regards....really like the program...btw...tks.

/ch
sailias is offline   Reply With Quote
Old 12-05-2011, 12:38   #77
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,394
Re: OpenCPN Version 2.4 Beta Build 506

sailias....

Thanks for the refresh.

So, first, lets find gtk.h on your system, so we can be sure it is really in your distro somewhere.

Dave
bdbcat is offline   Reply With Quote
Old 12-05-2011, 12:38   #78
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: OpenCPN Version 2.4 Beta Build 506

OK found it. The thread starts here:

http://www.cruisersforum.com/forums/...tml#post676478

and concludes that while there is a gludge to get it to compile, it will segfault on 11.04 Ubuntu netbook and desktop editions.

The reason being,

1. https://bugs.launchpad.net/ubuntu/+s...ke/+bug/751940

2. 0012037: support multiarch lib paths for Debian/Ubuntu - MantisBT

So we wait and dropped back to the stable release, which works expect for one report UI bug, no panning on route plotting.

HTH's

/ch
sailias is offline   Reply With Quote
Old 12-05-2011, 12:44   #79
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: OpenCPN Version 2.4 Beta Build 506

Quote:
Originally Posted by bdbcat View Post
sailias....

Thanks for the refresh.

So, first, lets find gtk.h on your system, so we can be sure it is really in your distro somewhere.

Dave
-----------------
chris123@segrund:~/opencpn/opencpn$ locate gtk.h
/usr/include/gtk-2.0/gtk/gtk.h
/usr/include/wx-2.8/wx/gtk/assertdlg_gtk.h
/usr/include/wx-2.8/wx/gtk/tbargtk.h
/usr/include/wx-2.8/wx/gtk/treeentry_gtk.h
/usr/include/wx-2.8/wx/gtk/win_gtk.h
----------------------eof--------------

She's their alright... Now look where cmake is looking for it, it cant find it as some gtk stuff is in //usr/lib/i386-linux-gnu/ and some is in /usr/include (where it used to reside) This is not the only project having issues with this matter....


--------------cmake output---------
Some or all of the gtk libraries were not found. (missing: GTK2_GLIBCONFIG_INCLUDE_DIR)
--------------------eof-----------------
/ch
sailias is offline   Reply With Quote
Old 12-05-2011, 12:44   #80
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: OpenCPN Version 2.4 Beta Build 506

Quote:
Originally Posted by bdbcat View Post
sailias....

Thanks for the refresh.

So, first, lets find gtk.h on your system, so we can be sure it is really in your distro somewhere.

Dave
Dave

Check #3 n this thread and http://www.cruisersforum.com/forums/...tml#post678216

My guess is that this will soon be fixed upstream.
I mentioned the simple fix early in this thread......


Thomas
cagney is offline   Reply With Quote
Old 12-05-2011, 12:47   #81
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: OpenCPN Version 2.4 Beta Build 506

Greets Thomas.

The fix allows the compile to go to completion. However, once you run OCPN it segfaults on my system and I believe on others too as reported. For sure on my system..sad to say.

/ch
sailias is offline   Reply With Quote
Old 12-05-2011, 12:54   #82
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
Re: OpenCPN Version 2.4 Beta Build 506

Could it be related to http://www.cruisersforum.com/forums/...tml#post680691 ?
I've never seen this to be a problem on 10.10 and don't have 11.04 yet to check.

Pavel
nohal is offline   Reply With Quote
Old 12-05-2011, 13:05   #83
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: OpenCPN Version 2.4 Beta Build 506

Seems to be unique to 11.04 as they moved files around significantly..in that release Pavel. The upgrade was seemless however..
sailias is offline   Reply With Quote
Old 12-05-2011, 13:25   #84
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: OpenCPN Version 2.4 Beta Build 506

Sailias

Just to check the obvious.......

Test this att the command line.
Quote:
$ pkg-config --cflags --libs gtk+-2.0
Unless the output looks something like this
Quote:
-pthread -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pixman-1 -pthread -L/usr/lib/x86_64-linux-gnu -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0
install pkg-config
Quote:
sudo apt-get install pkg-config
Then try my fix again.
Worth a try......

Thomas
cagney is offline   Reply With Quote
Old 12-05-2011, 13:31   #85
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,423
Re: OpenCPN Version 2.4 Beta Build 506

....a consistent crash whenever I hit F2 in XP...is that still "autofollow"?
The button works fine.
HappySeagull is offline   Reply With Quote
Old 12-05-2011, 13:56   #86
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Re: OpenCPN Version 2.4 Beta Build 506

Quote:
Originally Posted by bdbcat View Post
All Windows users.....

We MUST have a drwatson log to analyze this problem.


Thanks
Dave
I understand that this requires XP. Is there something available for Vista users ?
sailorF54 is offline   Reply With Quote
Old 12-05-2011, 13:58   #87
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
Re: OpenCPN Version 2.4 Beta Build 506

sailias,
sorry, I was not clear - this could be related to the crash, not to the library path problem. The cmake rules will probably be fixed very soon as the issue obviously hits a lot of projects.

@Happy,
yes it is still autofollow, but there's a forgotten
Code:
*(int *)(0) = 0;
in the F2 handling routine...

Pavel
nohal is offline   Reply With Quote
Old 12-05-2011, 14:22   #88
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
Re: OpenCPN Version 2.4 Beta Build 506

Re debugging the crash on Vista: Dr Watson - I need to send a drwtsn32.log to my engineers - Vista Forums
I will try to produce some human understandable instructions for our case tomorrow.
Just spent quite some time trying to get the crash on Win7, but the whole thing was stable apart of the red areas problem reported by Piotr and others earlier.
Note: This machine has a lot of memory so that I didn't get even close to it's exhaustion. Will try further.

Pavel
nohal is offline   Reply With Quote
Old 12-05-2011, 15:30   #89
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,394
Re: OpenCPN Version 2.4 Beta Build 506

Happy Seagull....

F2 is still supposed to be auto-follow.
However, as Pavel says, there is a leftover debug break in 506.
Ooops. I did that.

Fixed upstream for next Beta release.

Dave
bdbcat is offline   Reply With Quote
Old 12-05-2011, 16:00   #90
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: OpenCPN Version 2.4 Beta Build 506

Thomas:

Its all in place and as it should be...

/ch
sailias is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Version 2.4 Beta Build 423 bdbcat OpenCPN 66 05-05-2011 05:45
OpenCPN Version 2.4 Beta Build 412 bdbcat OpenCPN 63 22-04-2011 18:19
OpenCPN Version 2.4 Beta Build 324 bdbcat OpenCPN 141 12-04-2011 14:15
OpenCPN Version 2.4 Beta Build 310 bdbcat OpenCPN 53 27-03-2011 11:05

Advertise Here


All times are GMT -7. The time now is 22:02.


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.