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 05-06-2011, 07:39   #61
Registered User

Join Date: Jun 2011
Posts: 23
Re: OpenCPN for Mac

The good news: I managed to compile recent src (from git) using XCode.
Bad news: No toolbar visible...

any hints, someone?

++Luke
luke austria is offline   Reply With Quote
Old 05-06-2011, 08:32   #62
Registered User

Join Date: Jun 2011
Posts: 23
Re: OpenCPN for Mac

Just found out, that the toolbar is hidden behind the charts window...

++Luke
luke austria is offline   Reply With Quote
Old 05-06-2011, 09:00   #63
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: OpenCPN for Mac

Luke....

Good work.

Did you create the xcode project from CMake, or did you "hand-craft" an xcode project?

Could you post a link to your xcode project?

I would really like to get CMake script up to speed so that it generates a usable xcode project.....

Thanks
Dave
bdbcat is offline   Reply With Quote
Old 05-06-2011, 09:27   #64
Registered User

Join Date: Jun 2011
Posts: 23
Re: OpenCPN for Mac

I based it on the 2.3.1 XCode-Package. It's not really clean work - based on the fact that I'm new to XCode. I replaced src and include folders, created version.h manually and added gps.h to the include-folder (as it's needed if compiled for libgps). I also changed call of libgps.so to libgps.dylib and added recent libgps.20 version changes, but this is still broken code.
I managed to get the toolbar in front (wxSTAY_ON_TOP) - it's visible but doesn't behave properly on mouse-actions and it's also on top of dialogs...

Download will be at http://www.friedensflotte.org/luke/O...3.1-Source.zip (available in aprox. 20 min).
Easiest way to use it is to unpack it to /Volumes/Data/
(so all file names and path's will be ok in XCode). Although it's still named 2.3.1, sources are from current git!

++Luke
luke austria is offline   Reply With Quote
Old 12-06-2011, 16:31   #65
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: OpenCPN for Mac

Luke, et al...

OCPN Version 2.4.612.

I can build a working Xcode project by:

Code:
cmake -G Xcode ..
It builds and runs with no tweaks to the source code.

Also builds and runs OK with simple

Code:
cmake ..
I am running on Leopard 10.5 inside a VMware virtual, using linux host. Verrrrrry slow, so I have a hard time really exercising the code. But it does come up, and the basic dialogs and chart display work.

How are you making out? What is your environment?

Dave
bdbcat is offline   Reply With Quote
Old 12-06-2011, 18:34   #66
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: OpenCPN for Mac

Luke....

2.4.612.

Toolbar does not move. We need to debug the Grabber bar mouse events.

Dave
bdbcat is offline   Reply With Quote
Old 13-06-2011, 03:00   #67
Registered User

Join Date: Jun 2011
Posts: 23
Re: OpenCPN for Mac

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

2.4.612.

Toolbar does not move. We need to debug the Grabber bar mouse events.

Dave
also right-click wasn't captured properly (for OS X).
I fixed this and added bug report #525 including code changes:
FS#525 : Toolbar not moveable on OS X
luke austria is offline   Reply With Quote
Old 19-06-2011, 21:59   #68
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: OpenCPN for Mac

Hi there...

OpenCPN Beta 2.4.620 has been released. It builds and runs on Mac OSX.

Use the normal cmake .. and make commands to build it.

It has several known problems:

1. International languages don't work.
2. Plugins don't work.
3. wxWidgets libs are not in the release package .dmg

These problems are related. We need a CMake/OSX guru to tweak the CMake files to get the PlugIns and the Language files into the application bundle. We also need to get the wxWidgets libraries into the bundle, and have them link up correctly.

4. Also, please note that GPS input has not been tested. I don't have the right hardware.....

I worked on this a while, but I guess I just don't "think different" enough. Any help will be appreciated.

Meanwhile, testing of the basic UI is possible without a complete package build. Please do so, if you can, and report results here and on Flyspray.

Thanks to "luke austria" for the testing and code already integrated. More, more....

Good luck
Dave
bdbcat is offline   Reply With Quote
Old 20-06-2011, 22:12   #69
Registered User

Join Date: Mar 2010
Location: Svanesund, Orust, Sweden
Boat: Forgus 31
Posts: 96
Send a message via Skype™ to balp
Re: OpenCPN for Mac

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

OpenCPN Beta 2.4.620 has been released. It builds and runs on Mac OSX.

Use the normal cmake .. and make commands to build it.

CMake Error at /Applications/CMake 2.8-1.app/Contents/share/cmake-2.8/Modules/CPack.cmake:762 (message):
CPack readme resource file:
"/Users/balp/src/opencpn/OpenCPN/buildosx/README.txt" could not be found.
Call Stack (most recent call first):
/Applications/CMake 2.8-1.app/Contents/share/cmake-2.8/Modules/CPack.cmake:768 (cpack_check_file_exists)
CMakeLists.txt:900 (INCLUDE)

The README.txt file for OSX have not been added to the buildosx/ git folder.

and "opencpn.icns"... more feedback on the way....
balp is offline   Reply With Quote
Old 21-06-2011, 22:36   #70
Registered User

Join Date: Mar 2010
Location: Svanesund, Orust, Sweden
Boat: Forgus 31
Posts: 96
Send a message via Skype™ to balp
Re: OpenCPN for Mac

Quote:
Originally Posted by balp View Post
CMake Error at /Applications/CMake 2.8-1.app/Contents/share/cmake-2.8/Modules/CPack.cmake:762 (message):
CPack readme resource file:
"/Users/balp/src/opencpn/OpenCPN/buildosx/README.txt" could not be found.
Call Stack (most recent call first):
/Applications/CMake 2.8-1.app/Contents/share/cmake-2.8/Modules/CPack.cmake:768 (cpack_check_file_exists)
CMakeLists.txt:900 (INCLUDE)

The README.txt file for OSX have not been added to the buildosx/ git folder.

and "opencpn.icns"... more feedback on the way....
To build under Snow Leopard I had to make a few minor changes.

https://github.com/balp/OpenCPN/comm...64ebc749bc7494
balp is offline   Reply With Quote
Old 28-06-2011, 08:24   #71
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: OpenCPN for Mac

Ahoy Mac users!

OpenCPN Version 2.4 Beta Build 628 is available now on sourceforge git repo.
The .dmg Package will soon be available on the opencpn.org download page.

This build brings the OSX(Carbon) Beta up to full parity with the Windows and Linux builds.

Untested issues:
a. Serial NMEA input, usually by USB dongle.
b. AIS

Known or suspected bugs:
a. Locale changes occasionally cause a crash on App exit, at least on my hardware.

Building:
I had a lot of trouble with the CMake/CPack interface to PackageMaker.
I finally gave up and rolled my own.
Volunteers are encouraged to have a look at this toolchain, and try to figure out a clean build procedure using only CMake/CPack tools.

To build from this release:

1. get this stuff
xcode312_2621_developerdvd.dmg (this gets the compilers, etc.)
MacPorts-1.9.2-10.5-Leopard.dmg (this gets macPorts)

2. sudo port install wxwidgets
3. sudo port install glib2

4. Build OpenCPN
$cd {opencpn}
$mkdir build_carbon
$cd build_carbon
$cmake -DPREFIX=/Users/{user}/tmp ..
$make
$make install
$make create-dmg

This will give you a portable .dmg file with the required libraries and basic PlugIns embedded in the app bundle.
Open the Package and drag the OpenCPN icon to the dock. Away you go!

Also, please test the .dmg on the opencpn.org download page. This .dmg was built by me, and I want to be sure that the build workflow creates a really portable download....

Good Luck, and enjoy the Beta Testing!

Thanks
Dave
bdbcat is offline   Reply With Quote
Old 29-06-2011, 08:32   #72
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: OpenCPN for Mac

Hello Mac testers....

Here is the link for the OpenCPN Beta 2.4.628 .dmg download.

http://opencpn.org/downloads/beta/OpenCPN_2.4.628.dmg

Enjoy!

Dave
bdbcat is offline   Reply With Quote
Old 30-06-2011, 00:39   #73
Registered User

Join Date: Jun 2011
Location: BC
Boat: Corbin 39
Posts: 11
Re: OpenCPN for Mac

Hello,

Some observations for Build 628 on MacBook Pro with OSX 10.6.7

Program, chart library, gps, and Dashboard loaded and set up normally.

USB gps NMEA input works.

Toolbar:

Does not respond to mouseover if the main OCPN window has focus i.e. the toolbar only un-dims if it already has focus.

Shows over other applications when they have focus.

Occasionally does not un-dim when clicked near the grab handle.

Does not move away from the Dashboard if parked near the top left of the screen when the Dashboard is turned on.


Chart Quilting:

Using CHS Raster Chart 3000 (British Columbia, Canada). Pan so that an edge of the chart is being moved across the display window - a band of the chart will be redrawn each time the chart is panned. This is most visible when using the cursor keys to pan but also occurs when clicking with the mouse or zooming out past the edge of the last chart.


Main Menu:

Shows only the OpenCPN menu. Version 2.3.1 showed OpenCPN, Window, and Help or something similar.


Thanks for this nicely designed program!

George
GeorgeW is offline   Reply With Quote
Old 30-06-2011, 14:34   #74
Registered User

Join Date: Jun 2011
Location: 27south
Boat: Easton 47
Posts: 65
Thumbs up Re: OpenCPN for Mac

Hi all

Thanks for thinking different Dave..

Installed ok on a macbook running 10.6.8

All the issues mentioned by George are present though

+ one small one.... Red defaults to blue when selected in the route colour option

Mo
Icnoships is offline   Reply With Quote
Old 30-06-2011, 23:08   #75
Registered User

Join Date: Mar 2010
Location: Svanesund, Orust, Sweden
Boat: Forgus 31
Posts: 96
Send a message via Skype™ to balp
Re: OpenCPN for Mac

Now it's down to CPack errors, as i see it.

CPack: Compress package
CPack Error: Bad file extension specified: . Currently only .rtfd, .rtf, .html, and .txt files allowed.
CPack Error: Problem copying the resource files
CPack Error: Problem compressing the directory
CPack Error: Error when generating package: OpenCPN
make: *** [package] Error 1
Build step 'Execute shell' marked build as failure
Archiving artifacts
Finished: FAILURE

I try to see if i can get time to look into it, going on vacations startsing today, laptop on my boat, but most of then time i like a working vertsion so i might mostly run the Linux version.
balp 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenCPN and Mac OSX mskl OpenCPN 9 27-03-2014 08:41
Mac riddon OpenCPN 6 14-08-2011 08:28
Mac skippy Forum Tech Support & Site Help 15 06-01-2011 18:11
Help Me Integrate My Mac hoppy Marine Electronics 6 24-10-2010 11:01
Mac on Board fvn Marine Electronics 9 28-08-2009 04:34

Advertise Here


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


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.