Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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 04-05-2012, 09:25   #16
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: The Precise Pangolin or Ubuntu 12.04

Getting sound working on 32 bit Xubuntu had an extra twist.
libwxgtk from wxwidgets.org were rejected with error messages regarding unfulfilled dependencies. libesd0 was needed but was not going to be installed. The key to solve this, is to make sure that libesd0 dependencies were met. They are listed here Ubuntu -- Details of package libesd0 in precise
Then install libesd0. The installation of packages from wxwidgets.org should now be straight forward.

Thomas
cagney is offline   Reply With Quote
Old 04-05-2012, 10:32   #17
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,402
Re: The Precise Pangolin or Ubuntu 12.04

Thomas...

Sorry to nag. Trying to Beta tonight....

We need to find out what gps.h file your current 12.04 build uses for libgps support.

Mine uses /usr/local/include/gps.h.

Could you attach a copy of yours, and the output from the latest CMakeLists.txt attached in previous post?

Thanks
Dave
bdbcat is offline   Reply With Quote
Old 04-05-2012, 10:42   #18
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: The Precise Pangolin or Ubuntu 12.04

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

Sorry to nag. Trying to Beta tonight....

We need to find out what gps.h file your current 12.04 build uses for libgps support.

Mine uses /usr/local/include/gps.h.

Could you attach a copy of yours, and the output from the latest CMakeLists.txt attached in previous post?

Thanks
Dave
Dave
No problem. Attached is the files for my 64 bit. The gps header from
Quote:
/usr/include/gps.h
2.7z.doc

Would you like the same thing from my 32 bits system?

Thomas.
cagney is offline   Reply With Quote
Old 04-05-2012, 10:57   #19
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: The Precise Pangolin or Ubuntu 12.04

Dave

32 bits version. gps.h in the same location.

33.tar.gz.doc
Thomas
cagney is offline   Reply With Quote
Old 04-05-2012, 12:04   #20
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,402
Re: The Precise Pangolin or Ubuntu 12.04

Thomas....

Well, those look fine.

I did some ddd work with the .deb package from the .org site.
What I found was that there seemed to a be a problem with the gps.h file, or the definitions within.

from nmea.cpp:588

if(m_gps_data->set & VERSION_SET)

On your package, machine code indicates that the constant VERSION_SET is 0x800. The test fails, causing forever hang.

On my local builds, VERSION_SET is 0x1000000, as defined in gps.h (1llu << 28) or (1 with 7 zeros)

There could be a name collision, so that VERSION_SET is being redefined by something after gps.h is included.


This really becomes a problem with 12.04, since it autostarts gpsd if you plug in a USB GPS receiver.

I can work around it in code, but I think we need to better understand what is happening.

Question: Are you fairly sure that the .deb package online was built with the gps.h files you have attached?

Maybe you should build another package, today, and try 12.04 again with libgps. If you upload to .org site as a special name, I'll download and try my setup again.

If it fails for you, try to edit nmea.cpp, line 588 to:

if(m_gps_data->set & 0x10000000)

and try again.

A mystery.....

Dave
bdbcat is offline   Reply With Quote
Old 04-05-2012, 13:15   #21
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: The Precise Pangolin or Ubuntu 12.04

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

Question: Are you fairly sure that the .deb package online was built with the gps.h files you have attached?

......

Dave
No. Not at all. Both .deb packages on line were build with older versions of *buntu. The 64bit version was originally installed 2.5 years ago and has been updated with every new version, but now has the one and only version of gps.h. The 32 bit version is all brand new. Everything erased and then Xubuntu 12.04 installed. Anyones guess how many versions of gps.h and the content.....

Later today I'll upload packages to the download page, from the present setup, parallel to the old ones. I'll name them 12.04 or something.

Thomas
cagney is offline   Reply With Quote
Old 04-05-2012, 13:35   #22
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,402
Re: The Precise Pangolin or Ubuntu 12.04

Thomas...

OK. I've had troubles like this in the past. Old .h files sitting around just waiting to be included in builds accidentally.

We shall see.

Dave
bdbcat is offline   Reply With Quote
Old 04-05-2012, 13:56   #23
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: The Precise Pangolin or Ubuntu 12.04

Dave

64 bit pakage up now, 32 bits soon(ish)
http://opencpn.org/ocpn/downloads/be...24-2_amd64.deb

Thomas
cagney is offline   Reply With Quote
Old 04-05-2012, 14:23   #24
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: The Precise Pangolin or Ubuntu 12.04

Quote:
Originally Posted by cagney View Post
Getting sound working on 32 bit Xubuntu had an extra twist.
libwxgtk from wxwidgets.org were rejected with error messages regarding unfulfilled dependencies. libesd0 was needed but was not going to be installed. The key to solve this, is to make sure that libesd0 dependencies were met. They are listed here Ubuntu -- Details of package libesd0 in precise
Then install libesd0. The installation of packages from wxwidgets.org should now be straight forward.

Thomas
Ok so you got the sound going, but your system insists on upgrading, to the wrong original ubuntu wx packages, all the time. Which would lead to ...no sound.
Solution -> lock the versions of the packages from wxwidgets.org.
Start "synaptic". Find the packages. Mark the line. In the menu at the top: Click - Package-> Lock Version. Do this for all the concerned packages.

Thomas
cagney is offline   Reply With Quote
Old 05-05-2012, 10:55   #25
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,402
Re: The Precise Pangolin or Ubuntu 12.04

Thomas....

I debugged your 32 bit upload opencpn_2.6.1624-2.deb,
and found the same problem.

There is some name collision with the variable "VERSION_SET".

Lets try two things:

1.
Edit nmea.cpp, line 588 to:

if(m_gps_data->set & 0x10000000)

and try again. Should work for you locally with gpsd active and libgps selected.

2. Please start a search on your system for all files containing the string "VERSION_SET".

This is odd.....

Dave
bdbcat is offline   Reply With Quote
Old 05-05-2012, 11:01   #26
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,402
Re: The Precise Pangolin or Ubuntu 12.04

Thomas....

It appears that the value that your build is using for VERSION_SET was indeed 0x800 as late as 2010. It got changed to 0x10000000 sometime after that.

fyi....
Dave
bdbcat is offline   Reply With Quote
Old 05-05-2012, 11:45   #27
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: The Precise Pangolin or Ubuntu 12.04

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

I debugged your 32 bit upload opencpn_2.6.1624-2.deb,
and found the same problem.

There is some name collision with the variable "VERSION_SET".

Lets try two things:

1.
Edit nmea.cpp, line 588 to:

if(m_gps_data->set & 0x10000000)

and try again. Should work for you locally with gpsd active and libgps selected.

2. Please start a search on your system for all files containing the string "VERSION_SET".

This is odd.....

Dave
Dave

Gps works, with interruptions for me (32 bits). During the periods with no gps, xgps continues to run.

I recompiled with the change in nmea.cpp.
No good. The application just hangs without really starting. This is with ddd
Click image for larger version

Name:	ddd.png
Views:	118
Size:	41.8 KB
ID:	40725

I'm running
Code:
sudo grep -r "VERSION_SET" /
Which will take some time, on a low end system. No result so far.

Thomas
cagney is offline   Reply With Quote
Old 05-05-2012, 12:04   #28
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,402
Re: The Precise Pangolin or Ubuntu 12.04

Thomas...

The ddd trace you sent shows that the 0x10000000 fix actually worked. The hang is now coming later. All this still points to your build somehow using an old version of gps.h.

I know you have surely looked, but how many distinct copies of gps.h are actually on your system?

Dave
bdbcat is offline   Reply With Quote
Old 05-05-2012, 12:06   #29
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,402
Re: The Precise Pangolin or Ubuntu 12.04

Thomas....

Also, in the case where gps works with interruptions, what is the opencpn log output again?

Sorry to keep whacking on this horse...

Dave
bdbcat is offline   Reply With Quote
Old 05-05-2012, 12:14   #30
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: The Precise Pangolin or Ubuntu 12.04

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

The ddd trace you sent shows that the 0x10000000 fix actually worked. The hang is now coming later. All this still points to your build somehow using an old version of gps.h.

I know you have surely looked, but how many distinct copies of gps.h are actually on your system?

Dave
Dave

There are exactly 2 files named gps.h, according to the "locate" command.
/usr/include/gps.h
.../plugins/dashboard_pi/src/gps.h (totally different)

+ one further version of each in the trash -> ~/.local/share/files

Thomas
cagney is offline   Reply With Quote
Reply


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


Advertise Here


All times are GMT -7. The time now is 21:20.


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.