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 28-04-2012, 12:10   #1
Registered User

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

Upgrading to or installing Ubuntu 12.04 affects the sound on Linux.

For the story so far read Known issues with current stable release. | Official OpenCPN Homepage.

The issue at hand when installing 12.04, is that Ubuntu has a more up to date version of the affected packages, than wxwidgets.org, still without support for SDL though.
This means that if you have installed packages from wxwidgets.org, they will be overwritten. I had mine pegged in Synaptic, but they where still replaced in the upgrade.
The following packages will have to be installed from apt.wxwidgets.org
Quote:
wx2.8-headers_2.8.12.1-0_amd64.deb
ibwxbase2.8-0_2.8.12.1-0_amd64.deb
libwxbase2.8-dev_2.8.12.1-0_amd64.deb
libwxgtk2.8-0_2.8.12.1-0_amd64.deb
libwxgtk2.8-dev_2.8.12.1-0_amd64.deb
Choose the right packages for your computer architecture. Mine is amd64, as seen above.
Ignore warnings about downgrading.
I successfully used the packages in Index of /dists/squeeze-wx/main

So once again I have sound working on OpenCPN.

Thomas

PS The headers and dev packages should only be necessary if you are compiling your own, but don't hurt otherwise.
cagney is offline   Reply With Quote
Old 02-05-2012, 08:36   #2
Registered User

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

Do not install 12.04 if you depend on gpsd. The version distributed with 12.04 does not work with OpenCPN (yet), and can lead to crashes and startup problems.

To get OpenCPN going after a problem, rename the opencpn.conf file and restart. Read the first 3 paragraphs in the FAQ | Official OpenCPN Homepage, for more instructions.

Direct gps connection still works. Uninstall gpsd, as it otherwise, will auto-start when you connect your gps. You may have to reset your gps to nmea mode. Instructions are available in th OpenCPN documentation!

Thomas
cagney is offline   Reply With Quote
Old 02-05-2012, 21:05   #3
Marine Service Provider
 
bdbcat's Avatar

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

Thomas....

I need more info regarding gpsd on 12.04.

I have installed Kubuntu 12.04 as virtual machine, with default gpsd installation (libgps20), and all is well. Works fine. No hiccups yet.

What are you seeing?

FS#744 seems inconclusive....maybe 64 bit problem?

Dave
bdbcat is offline   Reply With Quote
Old 02-05-2012, 23:10   #4
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
Re: The Precise Pangolin or Ubuntu 12.04

Thomas...
Where did you build the package you tried to run on 12.04? For me running builds made on older versions on 12.04 is a no-go, but running a build made on Precise runs without a single glitch...

Pavel
nohal is offline   Reply With Quote
Old 03-05-2012, 09:20   #5
Registered User

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

Dave & Pavel

I'm pretty sure I built opencpn after the upgrade.
To be 100% sure I rebuilt and ..... the problems disappeared.
It is possible that one of the many upgrades/bugfixes after the official release date has something to do with fixing it?

A strange thing now, is that if I run opencpn through ddd it crashes on start!!

Thomas
cagney is offline   Reply With Quote
Old 03-05-2012, 09:36   #6
Marine Service Provider
 
bdbcat's Avatar

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

Pavel/Thomas....

OK, we need to understand this.

I will try the .org site ubuntu download on my brand new virtual 12.04.

Dave
bdbcat is offline   Reply With Quote
Old 03-05-2012, 09:37   #7
Marine Service Provider
 
bdbcat's Avatar

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

Thomas....

Also, I don't understand how gpsd could autostart when a GPS is plugged into /dev/ttyS0. Or is it USB port?

Dave
bdbcat is offline   Reply With Quote
Old 03-05-2012, 09:52   #8
Registered User

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

Dave

It's a USB mice!

Another thing. Most times when I unplug the gps opencpn reacts correctly after a few seconds, OwnShip turns gray etc. On occasion this does not happen, or takes a long time. I this state, no gps but opencpn think that there is activity, it is hung. Plugging in the gps again sorts this out.
A way around this is to set the data source to "none".

Thomas
cagney is offline   Reply With Quote
Old 03-05-2012, 17:40   #9
Marine Service Provider
 
bdbcat's Avatar

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

Thomas....

What I have found:

Using:
a. 12.04 as virtual machine.
b. BU353 USB GPS

Procedure:
Plug in GPS, verify gpsd autostarts, and xgps works.

Run opencpn as usual, with NMEA source set to libgps
Results:

1. Your 32 bit .deb build from .org site: hangs forever.
2. My debian package built on native 8.04: runs fine.
3. My cmake "sudo make install": runs fine.

The "hang forever" happens in the first libgps call.
We seem to be loading the same libgps, since there is only one available on my relatively new virtual system.
While it is hung, xgps works fine in a new shell. So gpsd is alive....

What could be happening?
I'm continuing to poke around.

Ideas, anyone?

Thanks
Dave
bdbcat is offline   Reply With Quote
Old 03-05-2012, 20:11   #10
Marine Service Provider
 
bdbcat's Avatar

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

Thomas....

I'm becoming suspicious of your gps.h include file.
Mine is found at /usr/local/include/gps.h

The interesting part is:

Code:
struct gps_data_t {
    gps_mask_t set;    /* has field been set since this was last cleared? */
#define ONLINE_SET    (1u<<1)
#define TIME_SET    (1u<<2)
#define TIMERR_SET    (1u<<3)
#define LATLON_SET    (1u<<4)
#define ALTITUDE_SET    (1u<<5)
#define SPEED_SET    (1u<<6)
#define TRACK_SET    (1u<<7)
#define CLIMB_SET    (1u<<8)
#define STATUS_SET    (1u<<9)
#define MODE_SET    (1u<<10)
#define DOP_SET      (1u<<11)
#define HERR_SET    (1u<<12)
#define VERR_SET    (1u<<13)
#define ATTITUDE_SET    (1u<<14)
#define SATELLITE_SET    (1u<<15)
#define SPEEDERR_SET    (1u<<16)
#define TRACKERR_SET    (1u<<17)
#define CLIMBERR_SET    (1u<<18)
#define DEVICE_SET    (1u<<19)
#define DEVICELIST_SET    (1u<<20)
#define DEVICEID_SET    (1u<<21)
#define RTCM2_SET    (1u<<22)
#define RTCM3_SET    (1u<<23)
#define AIS_SET     (1u<<24)
#define PACKET_SET    (1u<<25)
#define SUBFRAME_SET    (1u<<26)
#define GST_SET     (1u<<27)
#define VERSION_SET    (1u<<28)
#define POLICY_SET    (1u<<29)
#define LOGMESSAGE_SET    (1u<<30)
#define ERROR_SET    (1u<<31)
Will you take a look at your copy? You may have multiple copies of gps.h on your system, and the build is choosing the wrong one?

Maybe just attach the whole file, and I'll compare in detail.

Another test:
temporarily rename the gps.h file

$sudo mv /usr/local/include/gps.h /usr/local/include/gps.h.save

Then try build. It should fail. This will prove that we are looking at the correct file.

Thanks
Dave
bdbcat is offline   Reply With Quote
Old 03-05-2012, 20:16   #11
Marine Service Provider
 
bdbcat's Avatar

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

Thomas....

And here is a CMakeLists.txt which will tell us exactly where gps.h is coming from for the build.

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

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

Again
Attached Files
File Type: doc CMakeLists.txt.doc (35.9 KB, 86 views)
bdbcat is offline   Reply With Quote
Old 04-05-2012, 03:22   #13
Registered User
 
HamishB's Avatar

Join Date: Jan 2010
Location: New Zealand
Posts: 286
Re: The Precise Pangolin or Ubuntu 12.04

Hi,

for your experimental porpoises, here are some 64-bit packages built on & for ubuntu 12.04 which have been created using the DebianGIS build rules/method. Only deviation from the DebianGIS SVN is that I changed libgps19 to 20 (I had hardcoded the version as an obvious trip-up until compatibility with recent gpsd was assured). I've done nothing to patch the audio/wx issue. MD5sums can be found in the *.changes file.

http://download.osgeo.org/livedvd/data/opencpn/precise/amd64/

Completely untested with a GPS as my build VM is in a rather GPS-opaque, but very pretty, old stone building. But it starts.


feedback welcome,
Hamish
HamishB is offline   Reply With Quote
Old 04-05-2012, 08:44   #14
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
Again
Dave



Unfortunately I can't help you. About a week ago, I made a clean install of Xubuntu 12.04, reformatting the hard drives in the process.

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

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

Thomas...

So, what does the attached CMakeLists.txt produce when copied over your existing CMakeLists, and then $cmake ..
?

And, can you attach your existing gps.h file, wherever it comes from?

Dave


Dave
bdbcat 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 02:13.


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.