Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 19-07-2011, 19:32   #106
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: OpenCPN for Mac

Greg....

Could be. I installed using port, but don't remember the build sequence.

btw, I'm on a Leopard Hackintosh, so that may explain the file difference.

Quick google "gpsd snow leopard" gives lots of reading material....

Dave
__________________

__________________
bdbcat is offline   Reply With Quote
Old 19-07-2011, 19:36   #107
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: OpenCPN for Mac

Greg....

I am running gpsd 2.95.

Dave
__________________

__________________
bdbcat is offline   Reply With Quote
Old 20-07-2011, 12:02   #108
Registered User
 
CarinaPDX's Avatar

Join Date: Jan 2010
Location: Portland, Oregon, USA
Boat: 31' Cape George Cutter
Posts: 1,678
Re: OpenCPN for Mac

Hi Dave-

Nothing like sleeping on a problem - I woke up today and knew what it was. The last time I was trying to build OpenCPN on my own (months ago) I was playing with Wx 2.9 and 64-bits. Apparently the 64-bit switch has remained set all this time - the dylib port created this last week was 64-bit. I'll change the switch back to 32 and give it a try, but I'm pretty certain that is the problem.

Thanks for the help,

Greg
__________________
CarinaPDX is offline   Reply With Quote
Old 20-07-2011, 12:09   #109
Registered User

Join Date: Oct 2009
Location: Out cruising
Boat: Bruckmann 50
Posts: 521
Re: OpenCPN for Mac

I get a page not found at the link from 7/11.

Jim
__________________
jkleins is offline   Reply With Quote
Old 20-07-2011, 13:46   #110
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,249
Re: OpenCPN for Mac

Jim

That is because of later releases. We try to keep Download OpenCPN | Official OpenCPN Homepage up to date! Here is the latest release- http://opencpn.org/downloads/beta/OpenCPN_2.4.717.dmg.
As you can see it's from 7/17!

Thomas
__________________
cagney is offline   Reply With Quote
Old 20-07-2011, 16:14   #111
Registered User
 
CarinaPDX's Avatar

Join Date: Jan 2010
Location: Portland, Oregon, USA
Boat: 31' Cape George Cutter
Posts: 1,678
Re: OpenCPN for Mac

Hi Dave,

This is slowly coming back to me. IIRC beginning with Snow Leopard (10.6) Xcode defaults to 64 bits on 64-bit capable CPUs (Core2Duo and later), 32 bits otherwise. So it is necessary to use the port option "+universal" on newer machines to be 32 bit compatible (32+64). (I actually wrote about this before in the context of using port to install Wx - great memory!) OpenCPN appears to load the universal variant of gpsd. That's the good news.

The bad news is that it still doesn't work. An OpenCPN warning box comes up saying that it may be an incompatible API version, and then hangs (I can't dismiss the box). So a Force Quit is required. Of course it shouldn't hang at this point, but that is a non-issue once the basic problem is solved.

My first reaction is that the libgps is still not quite right. The default is to build gpsd with Python 2.6 (which I did) but the package has the option of building with 2.5 or 2.7 as well. It also has the options of building with DBUS and Qt. I tried with just Python27 and universal and that didn't change things. I am currently trying to install with Python27, universal, and qt but this is taking forever to build Qt. So while I am waiting, perhaps you can help me speed the trial and error up with some info.

Are the Qt bindings and DBUS needed? Is there any preference for Python versions?

BTW, I really appreciate your going to the effort of getting OS X to help with this. I just hope we are not piling too much on your back...

Greg
__________________
CarinaPDX is offline   Reply With Quote
Old 21-07-2011, 15:20   #112
Registered User

Join Date: Oct 2009
Location: Out cruising
Boat: Bruckmann 50
Posts: 521
Re: OpenCPN for Mac

Quote:
Originally Posted by cagney View Post
Jim

That is because of later releases. We try to keep Download OpenCPN | Official OpenCPN Homepage up to date! Here is the latest release- http://opencpn.org/downloads/beta/OpenCPN_2.4.717.dmg.
As you can see it's from 7/17!

Thomas
Oh, sorry. I downloaded that one first and it was not in English so I thought maybe you put out an update that was localized. Sorry if I can't decode your dot notation. Maybe one will work one of these days. I will keep checking back.

Jim
__________________
jkleins is offline   Reply With Quote
Old 21-07-2011, 22:42   #113
Registered User
 
CarinaPDX's Avatar

Join Date: Jan 2010
Location: Portland, Oregon, USA
Boat: 31' Cape George Cutter
Posts: 1,678
Re: OpenCPN for Mac

I have tried to build gpsd with/without Qt with python 2.5, 2.6, 2.7, all universal, and always have the same problem. So it is time to revisit that problem.

Apparently libgps loads but then I get the following error (paraphrased):

there may be a different version of the API
libgps fails to reasonably respond to version request
Proceed anyway?

At this point OpenCPN hangs.

Any ideas?
__________________
CarinaPDX is offline   Reply With Quote
Old 22-07-2011, 11:56   #114
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: OpenCPN for Mac

Carina....

OK, lets try this, just to prove the concept.
Attached you will find my copy of (32 bit) libgps. Rename and copy it into /opt/local/lib, and see if OCPN will load it.

Dave
Attached Files
File Type: doc libgps.19.dylib.doc (74.9 KB, 39 views)
__________________
bdbcat is offline   Reply With Quote
Old 22-07-2011, 15:01   #115
Registered User
 
CarinaPDX's Avatar

Join Date: Jan 2010
Location: Portland, Oregon, USA
Boat: 31' Cape George Cutter
Posts: 1,678
Re: OpenCPN for Mac

Hi Dave,

I'm afraid OS X is a bit more complicated than that. I moved my copy, a 32/64 bit version, to the desktop and moved your 32 bit version into the folder. When I tried to load gpsd at the command line I got the following error:

Quote:
dyld: Library not loaded: /opt/local/lib/libgps.19.dylib
Referenced from: /opt/local/sbin/gpsd
Reason: no suitable image found. Did find:
/opt/local/lib/libgps.19.dylib: mach-o, but wrong architecture
So dyld, the dynamic library loader, apparently has a database of dynamic library info and caught the swap.

I have been looking at MacPorts documentation to see if I can force a 32 bit build instead of a "universal" build without success. What a can of worms. The definition of "universal" changes based on which version of the OS is used: Tiger/PowerPC and Leopard/i386 consider "universal" to mean to build for PowerPC and i386, while Snow Leopard builds for i386 and x86_64. So my choice is to either build for my machine (64 bits) or for both Intel archs (32/64), but not 32 bit only. There is one other alternative that may be of interest to you at some point: the definition of "universal" can be changed in a port config file, but only with a clean install of port (if this is done now it will cause problems); so it is possible for you with a Leopard OS to make the definition of "universal" be "i386 x86_64" and get rid of PPC. This could be useful when we get to the point of building with Cocoa and Wx 2.9/3.0. OTOH it is probably better to just upgrade to Snow Leopard at that point.

For now, if you have any other ideas let me know and I will do what I can to help. It might, however, be better to set this aside so you can concentrate on more important issues right now - I was just testing the gpsd capability, it is not important to me at this time although it probably will be down the road.

Thanks again for all of your help.

Greg
__________________
CarinaPDX is offline   Reply With Quote
Old 09-08-2011, 09:14   #116
Registered User

Join Date: Aug 2011
Posts: 2
Re: OpenCPN for Mac

Hi.
I am new at this forum and wonder if any of you have had the same problem as i.
I downloded OpenCPN v.2.5 for mac, and installed it on my macbook pro.
I installed the chart database for CM93 and the driver for the USB Serial dongle i have. I tried out the program and everything looks great.
Then i shut down the program and the computer. The next day i wanted to try out the program further then i was not abel to open the program any more, i only got this fault message.

Process: OpenCPN [334]
Path: /Applications/OpenCPN.app/Contents/MacOS/OpenCPN
Identifier: ???
Version: ()
Code Type: X86 (Native)
Parent Process: launchd [130]

Date/Time: 2011-08-09 17:07:20.865 +0200
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6

Interval Since Last Report: 72204 sec
Crashes Since Last Report: 16
Per-App Interval Since Last Report: 45 sec
Per-App Crashes Since Last Report: 16
Anonymous UUID: 2D514845-4F80-41CE-A561-8C475958BE55

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000020
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 0x000b8097 NavObjectCollection::LoadAllGPXObjects() + 55
1 0x000c762e MyConfig::LoadMyConfig(int) + 23614
2 0x0002dabd MyApp::OnInit() + 3933
3 0x00035101 wxAppConsole::CallOnInit() + 17
4 libwx_macu-2.8.0.dylib 0x003a6cd0 wxEntry(int&, wchar_t**) + 112
5 0x00007eb8 main + 24
6 0x00007aa6 start + 54

Thread 1: Dispatch queue: com.apple.libdispatch-manager
0 libSystem.B.dylib 0x95bc3382 kevent + 10
1 libSystem.B.dylib 0x95bc3a9c _dispatch_mgr_invoke + 215
2 libSystem.B.dylib 0x95bc2f59 _dispatch_queue_invoke + 163
3 libSystem.B.dylib 0x95bc2cfe _dispatch_worker_thread2 + 240
4 libSystem.B.dylib 0x95bc2781 _pthread_wqthread + 390
5 libSystem.B.dylib 0x95bc25c6 start_wqthread + 30

Thread 2:
0 libSystem.B.dylib 0x95bc2412 __workq_kernreturn + 10
1 libSystem.B.dylib 0x95bc29a8 _pthread_wqthread + 941
2 libSystem.B.dylib 0x95bc25c6 start_wqthread + 30

Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x0093a554 ebx: 0x000b806b ecx: 0x00ea90d0 edx: 0x000fc080
edi: 0x00000000 esi: 0xbffff094 ebp: 0xbffff0b8 esp: 0xbffff060
ss: 0x0000001f efl: 0x00010246 eip: 0x000b8097 cs: 0x00000017
ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
cr2: 0x00000020

Binary Images:
0x1000 - 0x292fff + () <9D777105-8105-E9EB-7370-2B9BE128A1DB> /Applications/OpenCPN.app/Contents/MacOS/OpenCPN
0x363000 - 0x873ff7 +libwx_macu-2.8.0.dylib 9.0.0 (compatibility 9.0.0) <38CDB2E2-43E8-E987-A77B-6F780857736A> /Applications/OpenCPN.app/Contents/MacOS/libwx_macu-2.8.0.dylib
0xb47000 - 0xb58feb +libz.1.dylib 1.2.5 (compatibility 1.0.0) <39532624-E874-8401-08E0-1BEFA1318D20> /Applications/OpenCPN.app/Contents/MacOS/libz.1.dylib
0xb5d000 - 0xc55ff4 +libiconv.2.dylib 8.0.0 (compatibility 8.0.0) <7AFF3622-4747-E62C-E020-3BAFA63A8DDA> /Applications/OpenCPN.app/Contents/MacOS/libiconv.2.dylib
0xc62000 - 0xc82fe3 +libpng14.14.dylib 22.0.0 (compatibility 22.0.0) <C0B7358C-3806-E6E3-3368-3EA482E7DAE5> /Applications/OpenCPN.app/Contents/MacOS/libpng14.14.dylib
0xc8a000 - 0xcbcff0 +libjpeg.8.dylib 12.0.0 (compatibility 12.0.0)

I have tried to delete the program, download it again and reinstall it but still got the same error message.

Is there anything i can do to make this fantastic program to run on my mac again.

Regards
Nordwest
__________________
Nordwest is offline   Reply With Quote
Old 09-08-2011, 09:47   #117
Registered User

Join Date: Dec 2010
Boat: Catalina 30
Posts: 211
Re: OpenCPN for Mac

FWIW I have a persistent crash on startup first noticed while cruising last week. Worked fine until I enabled anchor watch. This was the latest Ubuntu. My crash is related to audio I think, but I have not tested further yet.

If it is audio related, the program should be modified to test audio drivers and disable audible warnings if nonfunctional, perhaps offering a popup informing the user ("Warning: Audio nonfunctional, using visual bell" or some such).
__________________
allanpeda is offline   Reply With Quote
Old 09-08-2011, 10:13   #118
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,777
Re: OpenCPN for Mac

allanpeda,

so you run Ubuntu on a Mac?
This thread was "OpenCPN for Mac".


Nordwest,

try to delete the files opencpn.ini and navobj.xml in /users/your name/Library/Preferences/
Library is a hidden folder since Mac OS X Lion.
Post your logfile (in /users/your name/Library/Logs/) if you have problems further on.
__________________
CarCode is online now   Reply With Quote
Old 09-08-2011, 10:16   #119
Registered User

Join Date: Dec 2010
Boat: Catalina 30
Posts: 211
Re: OpenCPN for Mac

Quote:
Originally Posted by CarCode View Post
allanpeda,

so you run Ubuntu on a Mac?
This thread was "OpenCPN for Mac".
I clearly stated FWIW. It might be related. I am trying to be helpful.
__________________
allanpeda is offline   Reply With Quote
Old 09-08-2011, 10:33   #120
Registered User

Join Date: Aug 2011
Posts: 2
Re: OpenCPN for Mac

CarCode,

Thanks this solved my problem.
I deleted the two files you suggested and everything seems to be up and running again.

Best regards
NordWest
__________________

__________________
Nordwest 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 and Mac OSX mskl OpenCPN 9 27-03-2014 09:41
Mac riddon OpenCPN 6 14-08-2011 09:28
Mac skippy Forum Tech Support & Site Help 15 06-01-2011 19:11
Help Me Integrate My Mac hoppy Marine Electronics 6 24-10-2010 12:01
Mac on Board fvn Marine Electronics 9 28-08-2009 05:34



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 04:33.


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.