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 29-05-2012, 18:17   #76
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,472
Re: OpenCPN Version 2.6 Beta Build 1723

Freddie....

Great Job! Really!

For documentation purposes, I would keep the wxWidgets build and the O build separate. After all, once wx is built, it should never (??) need to be built again.

About the Plugins missing from the .dmg. Frustrating is the word. There must be a way to instruct CPackage to do the right thing. It sure is picky.

Sadly, I can't help with this one, since I'm running 10.5, and it just works on this platform.

So, carry on. Lets try to get a documented build process for either carbon or cocoa or both. Starts from source, and ends with .dmg.

We'll add it to the .org site Wiki for posterity. Once and for all...

Thanks
Dave
bdbcat is offline   Reply With Quote
Old 29-05-2012, 20:33   #77
Registered User
 
sbfreddie's Avatar

Join Date: Mar 2012
Location: Southern Texas, Port Isabel
Boat: I Wish
Posts: 175
Images: 1
Send a message via Skype™ to sbfreddie
Re: OpenCPN Version 2.6 Beta Build 1723

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

Great Job! Really!

For documentation purposes, I would keep the wxWidgets build and the O build separate. After all, once wx is built, it should never (??) need to be built again.

About the Plugins missing from the .dmg. Frustrating is the word. There must be a way to instruct CPackage to do the right thing. It sure is picky.

Sadly, I can't help with this one, since I'm running 10.5, and it just works on this platform.

So, carry on. Lets try to get a documented build process for either carbon or cocoa or both. Starts from source, and ends with .dmg.

We'll add it to the .org site Wiki for posterity. Once and for all...

Thanks
Dave
Dave:
What version of cmake are you using?
Do you have a make log of a good build?
I sure would like to find out what's going on with the cmake script. I think it has something to do with where it is building the app bundle. That's why I have more than one app bundle.


Thanks,
Freddie
sbfreddie is offline   Reply With Quote
Old 30-05-2012, 03:16   #78
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,472
Re: OpenCPN Version 2.6 Beta Build 1723

Freddie...

cmake on 10.5 is 2.8.4


Here is a log generated from

make install
make create-dmg

Dave

$make install
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -H/Users/dsr/Projects/opencpn -B/Users/dsr/Projects/opencpn/build_carbon --check-build-system CMakeFiles/Makefile.cmake 0
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_progress_start /Users/dsr/Projects/opencpn/build_carbon/CMakeFiles /Users/dsr/Projects/opencpn/build_carbon/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make -f CMakeFiles/GARMINHOST.dir/build.make CMakeFiles/GARMINHOST.dir/depend
cd /Users/dsr/Projects/opencpn/build_carbon && "/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/dsr/Projects/opencpn /Users/dsr/Projects/opencpn /Users/dsr/Projects/opencpn/build_carbon /Users/dsr/Projects/opencpn/build_carbon /Users/dsr/Projects/opencpn/build_carbon/CMakeFiles/GARMINHOST.dir/DependInfo.cmake --color=
make -f CMakeFiles/GARMINHOST.dir/build.make CMakeFiles/GARMINHOST.dir/build
make[2]: Nothing to be done for `CMakeFiles/GARMINHOST.dir/build'.
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_progress_report /Users/dsr/Projects/opencpn/build_carbon/CMakeFiles 1 2 3 4 5 6
[ 8%] Built target GARMINHOST
make -f CMakeFiles/NMEA0183.dir/build.make CMakeFiles/NMEA0183.dir/depend
cd /Users/dsr/Projects/opencpn/build_carbon && "/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/dsr/Projects/opencpn /Users/dsr/Projects/opencpn /Users/dsr/Projects/opencpn/build_carbon /Users/dsr/Projects/opencpn/build_carbon /Users/dsr/Projects/opencpn/build_carbon/CMakeFiles/NMEA0183.dir/DependInfo.cmake --color=
make -f CMakeFiles/NMEA0183.dir/build.make CMakeFiles/NMEA0183.dir/build
make[2]: Nothing to be done for `CMakeFiles/NMEA0183.dir/build'.
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_progress_report /Users/dsr/Projects/opencpn/build_carbon/CMakeFiles 7 8 9 10 11 12 13
[ 17%] Built target NMEA0183
make -f CMakeFiles/i18n.dir/build.make CMakeFiles/i18n.dir/depend
cd /Users/dsr/Projects/opencpn/build_carbon && "/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/dsr/Projects/opencpn /Users/dsr/Projects/opencpn /Users/dsr/Projects/opencpn/build_carbon /Users/dsr/Projects/opencpn/build_carbon /Users/dsr/Projects/opencpn/build_carbon/CMakeFiles/i18n.dir/DependInfo.cmake --color=
make -f CMakeFiles/i18n.dir/build.make CMakeFiles/i18n.dir/build
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_progress_report /Users/dsr/Projects/opencpn/build_carbon/CMakeFiles
[ 17%] i18n: Done.
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_progress_report /Users/dsr/Projects/opencpn/build_carbon/CMakeFiles 85 86 87 88 89 90 91 92
[ 28%] Built target i18n
make -f CMakeFiles/S57ENC.dir/build.make CMakeFiles/S57ENC.dir/depend
cd /Users/dsr/Projects/opencpn/build_carbon && "/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/dsr/Projects/opencpn /Users/dsr/Projects/opencpn /Users/dsr/Projects/opencpn/build_carbon /Users/dsr/Projects/opencpn/build_carbon /Users/dsr/Projects/opencpn/build_carbon/CMakeFiles/S57ENC.dir/DependInfo.cmake --color=
make -f CMakeFiles/S57ENC.dir/build.make CMakeFiles/S57ENC.dir/build
make[2]: Nothing to be done for `CMakeFiles/S57ENC.dir/build'.
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_progress_report /Users/dsr/Projects/opencpn/build_carbon/CMakeFiles 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
[ 48%] Built target S57ENC
make -f CMakeFiles/OpenCPN.dir/build.make CMakeFiles/OpenCPN.dir/depend
cd /Users/dsr/Projects/opencpn/build_carbon && "/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/dsr/Projects/opencpn /Users/dsr/Projects/opencpn /Users/dsr/Projects/opencpn/build_carbon /Users/dsr/Projects/opencpn/build_carbon /Users/dsr/Projects/opencpn/build_carbon/CMakeFiles/OpenCPN.dir/DependInfo.cmake --color=
make -f CMakeFiles/OpenCPN.dir/build.make CMakeFiles/OpenCPN.dir/build
make[2]: Nothing to be done for `CMakeFiles/OpenCPN.dir/build'.
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_progress_report /Users/dsr/Projects/opencpn/build_carbon/CMakeFiles 14 15 16 17 18 19 20 21 22 23 24
[ 62%] Built target OpenCPN
make -f plugins/dashboard_pi/CMakeFiles/dashboard-i18n.dir/build.make plugins/dashboard_pi/CMakeFiles/dashboard-i18n.dir/depend
cd /Users/dsr/Projects/opencpn/build_carbon && "/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/dsr/Projects/opencpn /Users/dsr/Projects/opencpn/plugins/dashboard_pi /Users/dsr/Projects/opencpn/build_carbon /Users/dsr/Projects/opencpn/build_carbon/plugins/dashboard_pi /Users/dsr/Projects/opencpn/build_carbon/plugins/dashboard_pi/CMakeFiles/dashboard-i18n.dir/DependInfo.cmake --color=
make -f plugins/dashboard_pi/CMakeFiles/dashboard-i18n.dir/build.make plugins/dashboard_pi/CMakeFiles/dashboard-i18n.dir/build
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_progress_report /Users/dsr/Projects/opencpn/build_carbon/CMakeFiles
[ 62%] dashboard-i18n: Done.
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_progress_report /Users/dsr/Projects/opencpn/build_carbon/CMakeFiles 41 42 43 44 45 46 47
[ 72%] Built target dashboard-i18n
make -f plugins/dashboard_pi/CMakeFiles/dashboard_pi.dir/build.make plugins/dashboard_pi/CMakeFiles/dashboard_pi.dir/depend
cd /Users/dsr/Projects/opencpn/build_carbon && "/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/dsr/Projects/opencpn /Users/dsr/Projects/opencpn/plugins/dashboard_pi /Users/dsr/Projects/opencpn/build_carbon /Users/dsr/Projects/opencpn/build_carbon/plugins/dashboard_pi /Users/dsr/Projects/opencpn/build_carbon/plugins/dashboard_pi/CMakeFiles/dashboard_pi.dir/DependInfo.cmake --color=
make -f plugins/dashboard_pi/CMakeFiles/dashboard_pi.dir/build.make plugins/dashboard_pi/CMakeFiles/dashboard_pi.dir/build
make[2]: Nothing to be done for `plugins/dashboard_pi/CMakeFiles/dashboard_pi.dir/build'.
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_progress_report /Users/dsr/Projects/opencpn/build_carbon/CMakeFiles 56 57 58 59 60 61 62 63 64 65 66 67 68
[ 89%] Built target dashboard_pi
make -f plugins/grib_pi/CMakeFiles/grib-i18n.dir/build.make plugins/grib_pi/CMakeFiles/grib-i18n.dir/depend
cd /Users/dsr/Projects/opencpn/build_carbon && "/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/dsr/Projects/opencpn /Users/dsr/Projects/opencpn/plugins/grib_pi /Users/dsr/Projects/opencpn/build_carbon /Users/dsr/Projects/opencpn/build_carbon/plugins/grib_pi /Users/dsr/Projects/opencpn/build_carbon/plugins/grib_pi/CMakeFiles/grib-i18n.dir/DependInfo.cmake --color=
make -f plugins/grib_pi/CMakeFiles/grib-i18n.dir/build.make plugins/grib_pi/CMakeFiles/grib-i18n.dir/build
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_progress_report /Users/dsr/Projects/opencpn/build_carbon/CMakeFiles
[ 89%] grib-i18n: Done.
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_progress_report /Users/dsr/Projects/opencpn/build_carbon/CMakeFiles 70 71 72 73 74 75
[ 97%] Built target grib-i18n
make -f plugins/grib_pi/CMakeFiles/grib_pi.dir/build.make plugins/grib_pi/CMakeFiles/grib_pi.dir/depend
cd /Users/dsr/Projects/opencpn/build_carbon && "/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/dsr/Projects/opencpn /Users/dsr/Projects/opencpn/plugins/grib_pi /Users/dsr/Projects/opencpn/build_carbon /Users/dsr/Projects/opencpn/build_carbon/plugins/grib_pi /Users/dsr/Projects/opencpn/build_carbon/plugins/grib_pi/CMakeFiles/grib_pi.dir/DependInfo.cmake --color=
make -f plugins/grib_pi/CMakeFiles/grib_pi.dir/build.make plugins/grib_pi/CMakeFiles/grib_pi.dir/build
make[2]: Nothing to be done for `plugins/grib_pi/CMakeFiles/grib_pi.dir/build'.
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_progress_report /Users/dsr/Projects/opencpn/build_carbon/CMakeFiles 83 84
[100%] Built target grib_pi
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_progress_start /Users/dsr/Projects/opencpn/build_carbon/CMakeFiles 0
make -f CMakeFiles/Makefile2 preinstall
make[1]: Nothing to be done for `preinstall'.
Install the project...
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -P cmake_install.cmake
-- Install configuration: ""
-- Installing: /Users/dsr/tmp/bin/OpenCPN.app
-- Installing: /Users/dsr/tmp/bin/OpenCPN.app/Contents
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Info.plist
-- Installing: /Users/dsr/tmp/bin/OpenCPN.app/Contents/MacOS
-- Installing: /Users/dsr/tmp/bin/OpenCPN.app/Contents/MacOS/OpenCPN
-- Installing: /Users/dsr/tmp/bin/OpenCPN.app/Contents/PlugIns
-- Installing: /Users/dsr/tmp/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib
-- Installing: /Users/dsr/tmp/bin/OpenCPN.app/Contents/PlugIns/libgrib_pi.dylib
-- Installing: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources
-- Installing: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/English.lproj
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/English.lproj/MainMenu.xib
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/opencpn.icns
-- Installing: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport
-- Installing: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/doc
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/doc/help_web.html
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/license.txt
-- Installing: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/s57data
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/s57data/attdecode.csv
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/s57data/chartsymbols.xml
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/s57data/Helvetica.txf
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/s57data/rastersymbols-dark.png
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/s57data/rastersymbols-day.png
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/s57data/rastersymbols-dusk.png
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/s57data/S52RAZDS.RLE
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/s57data/s57attributes.csv
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/s57data/s57expectedinput.csv
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/s57data/s57objectclasses.csv
-- Installing: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/sounds
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/sounds/1bells.wav
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/sounds/2bells.wav
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/sounds/3bells.wav
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/sounds/4bells.wav
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/sounds/5bells.wav
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/sounds/6bells.wav
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/sounds/7bells.wav
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/sounds/8bells.wav
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/sounds/README.bells
-- Installing: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/tcdata
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/tcdata/HARMONIC
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/tcdata/HARMONIC.IDX
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/tcdata/README.harmonics
-- Installing: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/wvsdata
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/wvsdata/readmewvs.txt
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/wvsdata/wvs1.dat
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/SharedSupport/wvsdata/wvs43.dat
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/cs.lproj/OpenCPN.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/da.lproj/OpenCPN.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/de.lproj/OpenCPN.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/es.lproj/OpenCPN.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/fr.lproj/OpenCPN.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/it.lproj/OpenCPN.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/nl.lproj/OpenCPN.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/pl.lproj/OpenCPN.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/ru.lproj/OpenCPN.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/sv.lproj/OpenCPN.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/et.lproj/OpenCPN.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/pt_PT.lproj/OpenCPN.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/pt_BR.lproj/OpenCPN.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/nb_NO.lproj/OpenCPN.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/tr_TR.lproj/OpenCPN.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/fi_FI.lproj/OpenCPN.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/el_GR.lproj/OpenCPN.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/zh_TW.lproj/OpenCPN.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/hu_HU.lproj/OpenCPN.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/gl_ES.lproj/OpenCPN.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/ca_ES.lproj/OpenCPN.mo
-- fixup_bundle
-- app='/Users/dsr/tmp/bin/OpenCPN.app'
-- libs='/Users/dsr/tmp/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib;/Users/dsr/tmp/bin/OpenCPN.app/Contents/PlugIns/libgrib_pi.dylib'
-- dirs=''
-- fixup_bundle: preparing...
-- fixup_bundle: copying...
-- 1/24: *NOT* copying '/Users/dsr/tmp/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib'
-- 2/24: copying '/opt/local/lib/libSDL-1.2.0.dylib'
-- 3/24: copying '/opt/local/lib/libexpat.1.dylib'
-- 4/24: copying '/opt/local/lib/libiconv.2.dylib'
-- 5/24: copying '/opt/local/lib/libjpeg.8.dylib'
-- 6/24: copying '/opt/local/lib/libpng14.14.dylib'
-- 7/24: copying '/opt/local/lib/libtiff.3.dylib'
-- 8/24: copying '/opt/local/lib/libwx_macu-2.8.0.dylib'
-- 9/24: copying '/opt/local/lib/libwx_macu_gl-2.8.0.dylib'
-- 10/24: copying '/opt/local/lib/libz.1.dylib'
-- 11/24: *NOT* copying '/Users/dsr/tmp/bin/OpenCPN.app/Contents/PlugIns/libgrib_pi.dylib'
-- 12/24: *NOT* copying '/Users/dsr/tmp/bin/OpenCPN.app/Contents/MacOS/OpenCPN'
-- fixup_bundle: fixing...
-- 13/24: fixing up '/Users/dsr/tmp/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib'
-- 14/24: fixing up '/Users/dsr/tmp/bin/OpenCPN.app/Contents/MacOS/libSDL-1.2.0.dylib'
-- 15/24: fixing up '/Users/dsr/tmp/bin/OpenCPN.app/Contents/MacOS/libexpat.1.dylib'
-- 16/24: fixing up '/Users/dsr/tmp/bin/OpenCPN.app/Contents/MacOS/libiconv.2.dylib'
-- 17/24: fixing up '/Users/dsr/tmp/bin/OpenCPN.app/Contents/MacOS/libjpeg.8.dylib'
-- 18/24: fixing up '/Users/dsr/tmp/bin/OpenCPN.app/Contents/MacOS/libpng14.14.dylib'
-- 19/24: fixing up '/Users/dsr/tmp/bin/OpenCPN.app/Contents/MacOS/libtiff.3.dylib'
-- 20/24: fixing up '/Users/dsr/tmp/bin/OpenCPN.app/Contents/MacOS/libwx_macu-2.8.0.dylib'
-- 21/24: fixing up '/Users/dsr/tmp/bin/OpenCPN.app/Contents/MacOS/libwx_macu_gl-2.8.0.dylib'
-- 22/24: fixing up '/Users/dsr/tmp/bin/OpenCPN.app/Contents/MacOS/libz.1.dylib'
-- 23/24: fixing up '/Users/dsr/tmp/bin/OpenCPN.app/Contents/PlugIns/libgrib_pi.dylib'
-- 24/24: fixing up '/Users/dsr/tmp/bin/OpenCPN.app/Contents/MacOS/OpenCPN'
-- fixup_bundle: cleaning up...
-- fixup_bundle: verifying...
-- ================================================== =========================
-- Analyzing app='/Users/dsr/tmp/bin/OpenCPN.app'
-- bundle='/Users/dsr/tmp/bin/OpenCPN.app'
-- executable='/Users/dsr/tmp/bin/OpenCPN.app/Contents/MacOS/OpenCPN'
-- valid='1'
-- executable file 1: /Users/dsr/tmp/bin/OpenCPN.app/Contents/MacOS/OpenCPN
-- verified='1'
-- info='Verified 1 executable files in '/Users/dsr/tmp/bin/OpenCPN.app''
--
-- verified='1'
-- info=''
--
-- fixup_bundle: done
-- Installing: /Users/dsr/Projects/opencpn/build_carbon/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/cs.lproj/opencpn-dashboard_pi.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/da.lproj/opencpn-dashboard_pi.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/de.lproj/opencpn-dashboard_pi.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/el_GR.lproj/opencpn-dashboard_pi.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/es.lproj/opencpn-dashboard_pi.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/et.lproj/opencpn-dashboard_pi.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/fi_FI.lproj/opencpn-dashboard_pi.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/fr.lproj/opencpn-dashboard_pi.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/Contents/Resources/hu_HU.lproj/opencpn-dashboard_pi.mo
-- Up-to-date: /Users/dsr/tmp/bin/OpenCPN.app/
bdbcat is offline   Reply With Quote
Old 30-05-2012, 11:36   #79
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,546
Re: OpenCPN Version 2.6 Beta Build 1723

There are always less problems using the Apple tools like Xcode, Packages and so on instead of third party command line tools. The Apple tools are free and good documentated.
Furthermore after Mountain Lion is out the Apple developer ID should be used otherwise Gatekeeper warns about unsecure software installations when anyone tries to install a software compiled by third party command line tools.

Gerhard
CarCode is offline   Reply With Quote
Old 30-05-2012, 16:31   #80
Registered User
 
sbfreddie's Avatar

Join Date: Mar 2012
Location: Southern Texas, Port Isabel
Boat: I Wish
Posts: 175
Images: 1
Send a message via Skype™ to sbfreddie
Re: OpenCPN Version 2.6 Beta Build 1723

Quote:
Freddie...

cmake on 10.5 is 2.8.4


Here is a log generated from

make install
make create-dmg

Dave
Dave:
Our outputs are similar except mine has the Plugins dylibs missing.

Could you post the output from the cmake configure as well, somethings fishy here. Your output doesn't mention the deprecated stuff either, which is suspicious as well. Can you determine if your system is using the OpenGL from the system like this:
Code:
-- Found OpenGL...
--     Lib: /System/Library/Frameworks/AGL.framework/System/Library/Frameworks/OpenGL.framework
--     Include: /System/Library/Frameworks/OpenGL.framework
or do you have OpenGL installed from MacPorts?

I have read on my Google searches that cmake packager does not deal with frameworks on apple well.

Thanks,
Freddie
sbfreddie is offline   Reply With Quote
Old 30-05-2012, 18:05   #81
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,472
Re: OpenCPN Version 2.6 Beta Build 1723

Freddie...

Here is my cmake log

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- *** Build Architecture is i386
-- *** Staging to build OpenCPN 2.6.1729 ***
-- Found OpenGL: /System/Library/Frameworks/OpenGL.framework
-- Found OpenGL...
-- Lib: /System/Library/Frameworks/AGL.framework/System/Library/Frameworks/OpenGL.framework
-- Include: /System/Library/Frameworks/OpenGL.framework
-- Found wxWidgets: TRUE
--
-- *** Staging to build OpenCPN ***
-- *** Will install to /usr/local ***
-- GTK2 Not found...
-- Found BZip2: /usr/lib/libbz2.dylib
-- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.dylib
-- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.dylib - found
-- Found ZLIB: /usr/include (found version "1.2.3")
-- Could NOT find TinyXML (missing: TINYXML_INCLUDE_DIR TINYXML_LIBRARIES)
-- GPSD Library support: enabled
-- Found gps: /opt/local/lib/libgps.dylib
-- Building with libgps includes
-- GPS library include location is /opt/local/include
-- tinyxml library not found
-- S57 ENC support: enabled
-- Garmin Host Mode support: enabled
--
-- *** Staging to build PlugIns ***
--
-- *** Staging to build dashboard_pi ***
-- *** Staging to build grib_pi ***
-- Writing spec file...
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/dsr/Projects/opencpn/build_carbon


As you can see, the OpenGL library support comes via frameworks, like yours.

Good Luck
Dave
bdbcat is offline   Reply With Quote
Old 30-05-2012, 20:18   #82
Registered User
 
CarinaPDX's Avatar

Join Date: Jan 2010
Location: Portland, Oregon, USA
Boat: 31' Cape George Cutter
Posts: 3,299
Re: OpenCPN Version 2.6 Beta Build 1723

Dave-

There is something fishy here - are you sure you are using the same cmake files as is on the GIT server?

My output doesn't show the plugin dylibs installed into opencpn/Contents/Plugins/ like yours does - in fact, there is no entry for installing those files in my log. These are in your log only:

-- Installing: /Users/dsr/tmp/bin/OpenCPN.app/Contents/PlugIns
-- Installing: /Users/dsr/tmp/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib
-- Installing: /Users/dsr/tmp/bin/OpenCPN.app/Contents/PlugIns/libgrib_pi.dylib

It has been mentioned that installing plugin dylibs in the app bundle is one solution to the changes in Cmake 2.8.3, which no longer copies them in automatically (which could be a duplication, hence no longer). So this is why yours is working. Since my install doesn't do this it seems likely yours has been changed from the GIT Cmake_install.cmake file.

Could you please check for diffs? Thanks.

Greg
CarinaPDX is offline   Reply With Quote
Old 30-05-2012, 20:46   #83
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,472
Re: OpenCPN Version 2.6 Beta Build 1723

Greg...

Thanks for looking into this. It is fishy.

Cmake_install.cmake is a cmake build product, so not in the git source tree. Everything related to install (on all platforms) derives from the main CMakeLists.txt.

The only thing in CMakeLists.txt that relates is

Code:
IF(APPLE)
# -- Run the BundleUtilities cmake code
  SET(CPACK_BUNDLE_PLIST "${CMAKE_SOURCE_DIR}/buildosx/Info.plist")

  SET(APPS "\${CMAKE_INSTALL_PREFIX}/bin/OpenCPN.app")
  SET(DIRS "")

  SET(LIBS "\${CMAKE_INSTALL_PREFIX}/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib")
  SET(LIBS 
      ${LIBS} "\${CMAKE_INSTALL_PREFIX}/bin/OpenCPN.app/Contents/PlugIns/libgrib_pi.dylib")

  INSTALL(CODE "
   include(BundleUtilities)
   fixup_bundle(\"${APPS}\"   \"${LIBS}\"   \"${DIRS}\")
   " COMPONENT Runtime)
The magic seems to happen at to fixup_bundle invocation.

For reference, here is cmake_install.cmake, the most recent build product on my 10.5 build machine:

Code:
# Install script for directory: /Users/dsr/Projects/opencpn

# Set the install prefix
IF(NOT DEFINED CMAKE_INSTALL_PREFIX)
  SET(CMAKE_INSTALL_PREFIX "/usr/local")
ENDIF(NOT DEFINED CMAKE_INSTALL_PREFIX)
STRING(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")

# Set the install configuration name.
IF(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
  IF(BUILD_TYPE)
    STRING(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
           CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
  ELSE(BUILD_TYPE)
    SET(CMAKE_INSTALL_CONFIG_NAME "")
  ENDIF(BUILD_TYPE)
  MESSAGE(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
ENDIF(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)

# Set the component getting installed.
IF(NOT CMAKE_INSTALL_COMPONENT)
  IF(COMPONENT)
    MESSAGE(STATUS "Install component: \"${COMPONENT}\"")
    SET(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
  ELSE(COMPONENT)
    SET(CMAKE_INSTALL_COMPONENT)
  ENDIF(COMPONENT)
ENDIF(NOT CMAKE_INSTALL_COMPONENT)

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE DIRECTORY PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE FILES "/Users/dsr/Projects/opencpn/build_carbon/OpenCPN.app" USE_SOURCE_PERMISSIONS)
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  list(APPEND CPACK_ABSOLUTE_DESTINATION_FILES
   "/usr/local/bin/OpenCPN.app/Contents/Resources/cs.lproj/OpenCPN.mo")
FILE(INSTALL DESTINATION "/usr/local/bin/OpenCPN.app/Contents/Resources/cs.lproj" TYPE FILE RENAME "OpenCPN.mo" FILES "/Users/dsr/Projects/opencpn/build_carbon/opencpn_cs_CZ.mo")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  list(APPEND CPACK_ABSOLUTE_DESTINATION_FILES
   "/usr/local/bin/OpenCPN.app/Contents/Resources/da.lproj/OpenCPN.mo")
FILE(INSTALL DESTINATION "/usr/local/bin/OpenCPN.app/Contents/Resources/da.lproj" TYPE FILE RENAME "OpenCPN.mo" FILES "/Users/dsr/Projects/opencpn/build_carbon/opencpn_da_DK.mo")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  list(APPEND CPACK_ABSOLUTE_DESTINATION_FILES
   "/usr/local/bin/OpenCPN.app/Contents/Resources/de.lproj/OpenCPN.mo")
FILE(INSTALL DESTINATION "/usr/local/bin/OpenCPN.app/Contents/Resources/de.lproj" TYPE FILE RENAME "OpenCPN.mo" FILES "/Users/dsr/Projects/opencpn/build_carbon/opencpn_de_DE.mo")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  list(APPEND CPACK_ABSOLUTE_DESTINATION_FILES
   "/usr/local/bin/OpenCPN.app/Contents/Resources/es.lproj/OpenCPN.mo")
FILE(INSTALL DESTINATION "/usr/local/bin/OpenCPN.app/Contents/Resources/es.lproj" TYPE FILE RENAME "OpenCPN.mo" FILES "/Users/dsr/Projects/opencpn/build_carbon/opencpn_es_ES.mo")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  list(APPEND CPACK_ABSOLUTE_DESTINATION_FILES
   "/usr/local/bin/OpenCPN.app/Contents/Resources/fr.lproj/OpenCPN.mo")
FILE(INSTALL DESTINATION "/usr/local/bin/OpenCPN.app/Contents/Resources/fr.lproj" TYPE FILE RENAME "OpenCPN.mo" FILES "/Users/dsr/Projects/opencpn/build_carbon/opencpn_fr_FR.mo")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  list(APPEND CPACK_ABSOLUTE_DESTINATION_FILES
   "/usr/local/bin/OpenCPN.app/Contents/Resources/it.lproj/OpenCPN.mo")
FILE(INSTALL DESTINATION "/usr/local/bin/OpenCPN.app/Contents/Resources/it.lproj" TYPE FILE RENAME "OpenCPN.mo" FILES "/Users/dsr/Projects/opencpn/build_carbon/opencpn_it_IT.mo")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  list(APPEND CPACK_ABSOLUTE_DESTINATION_FILES
   "/usr/local/bin/OpenCPN.app/Contents/Resources/nl.lproj/OpenCPN.mo")
FILE(INSTALL DESTINATION "/usr/local/bin/OpenCPN.app/Contents/Resources/nl.lproj" TYPE FILE RENAME "OpenCPN.mo" FILES "/Users/dsr/Projects/opencpn/build_carbon/opencpn_nl_NL.mo")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  list(APPEND CPACK_ABSOLUTE_DESTINATION_FILES
   "/usr/local/bin/OpenCPN.app/Contents/Resources/pl.lproj/OpenCPN.mo")
FILE(INSTALL DESTINATION "/usr/local/bin/OpenCPN.app/Contents/Resources/pl.lproj" TYPE FILE RENAME "OpenCPN.mo" FILES "/Users/dsr/Projects/opencpn/build_carbon/opencpn_pl_PL.mo")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  list(APPEND CPACK_ABSOLUTE_DESTINATION_FILES
   "/usr/local/bin/OpenCPN.app/Contents/Resources/ru.lproj/OpenCPN.mo")
FILE(INSTALL DESTINATION "/usr/local/bin/OpenCPN.app/Contents/Resources/ru.lproj" TYPE FILE RENAME "OpenCPN.mo" FILES "/Users/dsr/Projects/opencpn/build_carbon/opencpn_ru_RU.mo")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  list(APPEND CPACK_ABSOLUTE_DESTINATION_FILES
   "/usr/local/bin/OpenCPN.app/Contents/Resources/sv.lproj/OpenCPN.mo")
FILE(INSTALL DESTINATION "/usr/local/bin/OpenCPN.app/Contents/Resources/sv.lproj" TYPE FILE RENAME "OpenCPN.mo" FILES "/Users/dsr/Projects/opencpn/build_carbon/opencpn_sv_SE.mo")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  list(APPEND CPACK_ABSOLUTE_DESTINATION_FILES
   "/usr/local/bin/OpenCPN.app/Contents/Resources/et.lproj/OpenCPN.mo")
FILE(INSTALL DESTINATION "/usr/local/bin/OpenCPN.app/Contents/Resources/et.lproj" TYPE FILE RENAME "OpenCPN.mo" FILES "/Users/dsr/Projects/opencpn/build_carbon/opencpn_et_ET.mo")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  list(APPEND CPACK_ABSOLUTE_DESTINATION_FILES
   "/usr/local/bin/OpenCPN.app/Contents/Resources/pt_PT.lproj/OpenCPN.mo")
FILE(INSTALL DESTINATION "/usr/local/bin/OpenCPN.app/Contents/Resources/pt_PT.lproj" TYPE FILE RENAME "OpenCPN.mo" FILES "/Users/dsr/Projects/opencpn/build_carbon/opencpn_pt_PT.mo")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  list(APPEND CPACK_ABSOLUTE_DESTINATION_FILES
   "/usr/local/bin/OpenCPN.app/Contents/Resources/pt_BR.lproj/OpenCPN.mo")
FILE(INSTALL DESTINATION "/usr/local/bin/OpenCPN.app/Contents/Resources/pt_BR.lproj" TYPE FILE RENAME "OpenCPN.mo" FILES "/Users/dsr/Projects/opencpn/build_carbon/opencpn_pt_BR.mo")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  list(APPEND CPACK_ABSOLUTE_DESTINATION_FILES
   "/usr/local/bin/OpenCPN.app/Contents/Resources/nb_NO.lproj/OpenCPN.mo")
FILE(INSTALL DESTINATION "/usr/local/bin/OpenCPN.app/Contents/Resources/nb_NO.lproj" TYPE FILE RENAME "OpenCPN.mo" FILES "/Users/dsr/Projects/opencpn/build_carbon/opencpn_nb_NO.mo")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  list(APPEND CPACK_ABSOLUTE_DESTINATION_FILES
   "/usr/local/bin/OpenCPN.app/Contents/Resources/tr_TR.lproj/OpenCPN.mo")
FILE(INSTALL DESTINATION "/usr/local/bin/OpenCPN.app/Contents/Resources/tr_TR.lproj" TYPE FILE RENAME "OpenCPN.mo" FILES "/Users/dsr/Projects/opencpn/build_carbon/opencpn_tr_TR.mo")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  list(APPEND CPACK_ABSOLUTE_DESTINATION_FILES
   "/usr/local/bin/OpenCPN.app/Contents/Resources/fi_FI.lproj/OpenCPN.mo")
FILE(INSTALL DESTINATION "/usr/local/bin/OpenCPN.app/Contents/Resources/fi_FI.lproj" TYPE FILE RENAME "OpenCPN.mo" FILES "/Users/dsr/Projects/opencpn/build_carbon/opencpn_fi_FI.mo")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  list(APPEND CPACK_ABSOLUTE_DESTINATION_FILES
   "/usr/local/bin/OpenCPN.app/Contents/Resources/el_GR.lproj/OpenCPN.mo")
FILE(INSTALL DESTINATION "/usr/local/bin/OpenCPN.app/Contents/Resources/el_GR.lproj" TYPE FILE RENAME "OpenCPN.mo" FILES "/Users/dsr/Projects/opencpn/build_carbon/opencpn_el_GR.mo")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  list(APPEND CPACK_ABSOLUTE_DESTINATION_FILES
   "/usr/local/bin/OpenCPN.app/Contents/Resources/zh_TW.lproj/OpenCPN.mo")
FILE(INSTALL DESTINATION "/usr/local/bin/OpenCPN.app/Contents/Resources/zh_TW.lproj" TYPE FILE RENAME "OpenCPN.mo" FILES "/Users/dsr/Projects/opencpn/build_carbon/opencpn_zh_TW.mo")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  list(APPEND CPACK_ABSOLUTE_DESTINATION_FILES
   "/usr/local/bin/OpenCPN.app/Contents/Resources/hu_HU.lproj/OpenCPN.mo")
FILE(INSTALL DESTINATION "/usr/local/bin/OpenCPN.app/Contents/Resources/hu_HU.lproj" TYPE FILE RENAME "OpenCPN.mo" FILES "/Users/dsr/Projects/opencpn/build_carbon/opencpn_hu_HU.mo")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  list(APPEND CPACK_ABSOLUTE_DESTINATION_FILES
   "/usr/local/bin/OpenCPN.app/Contents/Resources/gl_ES.lproj/OpenCPN.mo")
FILE(INSTALL DESTINATION "/usr/local/bin/OpenCPN.app/Contents/Resources/gl_ES.lproj" TYPE FILE RENAME "OpenCPN.mo" FILES "/Users/dsr/Projects/opencpn/build_carbon/opencpn_gl_ES.mo")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  list(APPEND CPACK_ABSOLUTE_DESTINATION_FILES
   "/usr/local/bin/OpenCPN.app/Contents/Resources/ca_ES.lproj/OpenCPN.mo")
FILE(INSTALL DESTINATION "/usr/local/bin/OpenCPN.app/Contents/Resources/ca_ES.lproj" TYPE FILE RENAME "OpenCPN.mo" FILES "/Users/dsr/Projects/opencpn/build_carbon/opencpn_ca_ES.mo")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Runtime")
  
   include(BundleUtilities)
   fixup_bundle("${CMAKE_INSTALL_PREFIX}/bin/OpenCPN.app"   "${CMAKE_INSTALL_PREFIX}/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib;${CMAKE_INSTALL_PREFIX}/bin/OpenCPN.app/Contents/PlugIns/libgrib_pi.dylib"   "")
   
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Runtime")

IF(NOT CMAKE_INSTALL_LOCAL_ONLY)
  # Include the install script for each subdirectory.
  INCLUDE("/Users/dsr/Projects/opencpn/build_carbon/plugins/cmake_install.cmake")

ENDIF(NOT CMAKE_INSTALL_LOCAL_ONLY)

IF(CMAKE_INSTALL_COMPONENT)
  SET(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt")
ELSE(CMAKE_INSTALL_COMPONENT)
  SET(CMAKE_INSTALL_MANIFEST "install_manifest.txt")
ENDIF(CMAKE_INSTALL_COMPONENT)

FILE(WRITE "/Users/dsr/Projects/opencpn/build_carbon/${CMAKE_INSTALL_MANIFEST}" "")
FOREACH(file ${CMAKE_INSTALL_MANIFEST_FILES})
  FILE(APPEND "/Users/dsr/Projects/opencpn/build_carbon/${CMAKE_INSTALL_MANIFEST}" "${file}\n")
ENDFOREACH(file)
There may be a difference in CPack....?

Dave
bdbcat is offline   Reply With Quote
Old 30-05-2012, 21:52   #84
Registered User
 
CarinaPDX's Avatar

Join Date: Jan 2010
Location: Portland, Oregon, USA
Boat: 31' Cape George Cutter
Posts: 3,299
Re: OpenCPN Version 2.6 Beta Build 1723

If I understand correctly, everything for cmake derives from CMakeLists.txt; if that is so, then it follows that there must be some difference between yours and mine - downloaded via GIT. So a diff should find a difference? Maybe? Edit: the plugins are installed before fixup_bundle - that is just where the error shows up. The problem is that the plugin installs are not in my logs but they are in yours - before the fixup_bundle is invoked.

Looking at CMakeLists.txt, at about 673 the instructions for installing for Apple begin. There is just one command INSTALL which installs the bundle, and the TARGET_LINK_LIBRARIES which include wxWidgets, NMEA0183, and EXTRA_LIBS - GTK2, gpslibs, S57ENC, and Garminhost (from previous additions). I am guessing that somehow your version is including the plugins, at least implicitly, in this command. Otherwise, how would it be included in the list of installed libraries?

Admittedly, I am just stumbling in the dark. 'Just hope this jogs something loose.

Greg
CarinaPDX is offline   Reply With Quote
Old 31-05-2012, 00:05   #85
Registered User
 
CarinaPDX's Avatar

Join Date: Jan 2010
Location: Portland, Oregon, USA
Boat: 31' Cape George Cutter
Posts: 3,299
Re: OpenCPN Version 2.6 Beta Build 1723

Next idea: at about lines 900-902 in CMakeLists.txt you will find this:

IF(NOT SKIP_PLUGINS)
add_subdirectory (plugins)
ENDIF(NOT SKIP_PLUGINS)

I can't find where SKIP_PLUGINS is set. Since you are installing the plugins subdirectory and I am not, that is terribly suspicious-looking. I still have no idea where the plugins themselves are installed but I guess there is a test for SKIP_PLUGINS there as well.

Still looking and learning...

Greg
CarinaPDX is offline   Reply With Quote
Old 31-05-2012, 06:30   #86
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,472
Re: OpenCPN Version 2.6 Beta Build 1723

Greg....

The CMakeLists.txt on my Mac build system is exactly the same as the GIT repo copy. No diffs.

SKIP_PLUGINS is a command line argument to cmake. You could say
Code:
$cmake -DSKIP_PLUGINS=true ..
to save build time, if one wanted to. SKIP_PLUGINS defaults to false, or it should.

If the plugins are actually being compiled, it is safe to assume that SKIP_PLUGINS is false.

What version of cmake are you using? Maybe I could get and build that version and try some experiments here...

Dave
bdbcat is offline   Reply With Quote
Old 31-05-2012, 08:47   #87
Registered User

Join Date: Feb 2010
Posts: 619
Re: OpenCPN Version 2.6 Beta Build 1723

My (battery) lifetime is running out, so pls bear with me... :-)

I've been continuously using OCPN on the now almost finished trip from Italy to the Baltic. Mostly I was sailing with my custom 2.5.1318, because of its route-planning capabilities, but occassionally downloading and trying the newest beta. All was well, or - may I say: excellent - until mid-Biscay, when I was woken up to restart "The PC" because my colleagues could nor decide which of the many versions on my desktop is the right one...

Since then, a crash every couple of hours was on the routine menu... until I switched to 1.3.6 for a good night's sleep. I did not witness the crash often enough, but I think there was a pattern:

1. Sailing in "follow the boat", "lookahead" mode, no user action for a long time, just chart shifting (CM93)
2. First, the track and route disappears from display
3. Then, some mouse action on the chart
4. A message about "appcrash" appears
5. Another message panel about "unhandled exception" appears
6. My selection is "close the application"
7. In the logfile "ocpn exits cleanly..."

On the attached pic pls note that the route is missing, but two of its waypoints names (@~~CALAIS and @~~BOULOGNE) are shown.

The only thing I can think of is that since mid-Biscay my general course changed to North-East, and the chart got a little complex. Until then, a couple of thousands of miles was covered without any problem...

Just a report. 6 minutes remaining, so I post it off...

Piotr
Java Island, Amsterdam
Attached Thumbnails
Click image for larger version

Name:	crash0529.jpg
Views:	175
Size:	133.0 KB
ID:	41684  
Attached Files
File Type: doc crash0529.zip.doc (121.7 KB, 58 views)
PjotrC is offline   Reply With Quote
Old 31-05-2012, 16:35   #88
Registered User
 
CarinaPDX's Avatar

Join Date: Jan 2010
Location: Portland, Oregon, USA
Boat: 31' Cape George Cutter
Posts: 3,299
Re: OpenCPN Version 2.6 Beta Build 1723

Dave-

I am using CMake v.2.8.8 - the current stable release in MacPorts.

Yes, the plugin dyllibs are getting built - just not installed. They are located in the build_carbon/plugins/dashboard_pi/ and grib_pi/ directories.

Greg
CarinaPDX is offline   Reply With Quote
Old 31-05-2012, 18:15   #89
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,472
Re: OpenCPN Version 2.6 Beta Build 1723

Freddie/Greg...

I looked into this missing PlugIns a little more.

The problem is not in fixup_bundle. That seems to do the right thing. Bear with me a sec...

What actually installs the PlugIns is in their own CMakeLists.txt file, which are included as subdirectories to the main build.

For instance, in plugins/dashboard_pi/CMakeLists.txt, we see:

Code:
IF(APPLE)
      INSTALL(TARGETS ${PACKAGE_NAME} BUNDLE LIBRARY DESTINATION ${CMAKE_BINARY_DIR}/OpenCPN.app/Contents/PlugIns)
ENDIF(APPLE)
And so the PlugIn gets installed during the INSTALL step.

On my system, the fixup_bundle step does not copy the PlugIn dylib again, since it seems to know that one copy is enough.

Code:
1/24: *NOT* copying '/Users/dsr/tmp/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib'
In fact, we can safely drop the following from the main CMakeLists.txt

Code:
Line:1065
 SET(LIBS "\${CMAKE_INSTALL_PREFIX}/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib")
  SET(LIBS 
      ${LIBS} "\${CMAKE_INSTALL_PREFIX}/bin/OpenCPN.app/Contents/PlugIns/libgrib_pi.dylib")
since there really is nothing that fixup_bundle needs to do with these dylibs anyway.


So, the question is, "Why is your system not executing the INSTALL step from the PlugIn source directory?"

I think I lost it, but could we see the relevant part of your
Code:
$make install
step?

Thanks
Dave
bdbcat is offline   Reply With Quote
Old 31-05-2012, 19:26   #90
Registered User
 
CarinaPDX's Avatar

Join Date: Jan 2010
Location: Portland, Oregon, USA
Boat: 31' Cape George Cutter
Posts: 3,299
Re: OpenCPN Version 2.6 Beta Build 1723

Dave-

Attached is the make install output.

Frankly I am at a loss to come up with anything. If we are both working from the same Git branch (1723, but other recent versions act the same) then what could be different? Perhaps the different CMake versions would behave differently. It seems unlikely that this would be an issue of OS X 10.5 vs 10.6, or the different compiler versions. It looks like a CMake issue exclusively, so now what? I'm not near to the end of my rope, so I'll do what I can - I just am fresh out of ideas.

Greg
Attached Files
File Type: pdf MakeInstallLog.pdf (51.1 KB, 54 views)
CarinaPDX is offline   Reply With Quote
Reply

Tags
opencpn


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 22:21.


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.