Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 21-09-2012, 17:00   #106
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: OpenCPN Beta Version 3.1.915 Released

Freddie...

Nothing for O to do with respect to carbon->cocoa. Its all up to the wxWidgets port for Mac.

Right now, wxWidgets 2.9(cocoa) is broken. There is no wxGCDC in this port, and O is looking for it. I can't find it, and neither can O. Its well documented in the 2.9 API....

If wx does not get fixed, then we will have to change O so as not to use wxGCDC. I'm not holding my breath on wx. The pace of wxWidgets updates these days is very slow. I don't expect wx3.0 in mainstream releases for another year.

I imagine that a 64 bit Mac will never be able to run wxWidgets without cocoa, ie. using just carbon rendering calls. So, I expect we will have to make the change for 64 bit Mac support.

I guess I'll start looking at that....sigh

Dave
__________________

__________________
bdbcat is online now   Reply With Quote
Old 21-09-2012, 17:45   #107
Registered User
 
yachtvalhalla's Avatar

Join Date: Aug 2009
Location: Philippines
Boat: Fuji 32 Ketch
Posts: 553
Re: OpenCPN Beta Version 3.1.915 Released

Quote:
Originally Posted by phiggins View Post
Has anyone tried using Accelerated Graphics (OpenGL) mode with this version?
With XP I can switch between using it or not without any problem.

But with W7Ultimate when I am not using it and select it to be used, I often get a disappearing toolbox and program crash. (I thought this was fixed with this version)

I honestly don't see much display difference with or without it

Terry
__________________

__________________
VALHALLA's Mooring Page
yachtvalhalla is offline   Reply With Quote
Old 21-09-2012, 18:08   #108
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,777
Re: OpenCPN Beta Version 3.1.915 Released

Quote:
Originally Posted by bdbcat View Post
There is no wxGCDC in this port, and O is looking for it.
Dave
You have to include dcgraph.h
__________________
CarCode is offline   Reply With Quote
Old 21-09-2012, 19:48   #109
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: OpenCPN Beta Version 3.1.915 Released

freddie...

Code:
You have to include dcgraph.h
Hmm, maybe so. The wx precompiled headers are often incomplete.

So, at the top of s52plib.h, edit to become the following:

Code:
#include <wx/glcanvas.h>
#include <wx/dcgraph.h>         // supplemental, for Mac
and try the build again. Maybe it will work

Dave
__________________
bdbcat is online now   Reply With Quote
Old 21-09-2012, 23:21   #110
Registered User
 
sbfreddie's Avatar

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

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

Code:
You have to include dcgraph.h
Hmm, maybe so. The wx precompiled headers are often incomplete.

So, at the top of s52plib.h, edit to become the following:

Code:
#include <wx/glcanvas.h>
#include <wx/dcgraph.h>         // supplemental, for Mac
and try the build again. Maybe it will work

Dave
Dave:
Well there is good news and bad news.
The good news is the build got to 93% before getting an error this time.

The bad news is here is the build log:

Code:
********************************************************************************************
Building i386 OpenCPN...
Now configuring with cmake for Distribution i386 OpenCPN...
-- The C compiler identification is GNU 4.2.1
-- The CXX compiler identification is Clang 4.0.0
-- 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
-- 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 3.1.919 ***
-- 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
--     WxWidgets Libs Required: basecorenetxmlhtmladvauigl
-- Found wxWidgets: TRUE  
-- 
-- *** Staging to build OpenCPN  ***
-- *** Will install to /Users/freddie/Desktop/OpenCPN3.1.919/MacBuilds  ***
-- Found Freetype: /usr/X11R6/lib/libfreetype.dylib (found version "2.4.7") 
-- Found GTK2_GTK: /usr/local/lib/libgtk-x11-2.0.dylib  
-- Found GTK2
-- Found Gettext: /usr/local/Cellar/gettext/0.18.1.1/bin/msgmerge (found version "0.18.1") 
-- Found BZip2: /usr/lib/libbz2.dylib (found version "1.0.6") 
-- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.dylib
-- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.dylib - found
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.5") 
-- Could NOT find TinyXML (missing:  TINYXML_INCLUDE_DIR TINYXML_LIBRARIES) 
-- GPSD Library support: enabled
-- Gps library not found
-- 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/freddie/Desktop/OpenCPN3.1.919/opencpn/buildi386
Configuring with cmake for Distribution of i386 OpenCPN was Successful...
********************************************************************************************

[ 93%] 2 warnings generated.
Building CXX object CMakeFiles/OpenCPN.dir/src/ais.cpp.o
clang: warning: argument unused during compilation: '-rdynamic'
[ 93%] Building CXX object CMakeFiles/OpenCPN.dir/src/pluginmanager.cpp.o
clang: warning: argument unused during compilation: '-rdynamic'
In file included from /Users/freddie/Desktop/OpenCPN3.1.919/opencpn/src/about.cpp:44:
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/chart1.h:316:10: warning: 'MyFrame::DoSetSize' hides overloaded virtual function [-Woverloaded-virtual]
    void DoSetSize(void);
         ^
/usr/local/Cellar/wxmac/2.9.4.0/include/wx-2.9/wx/osx/window.h:361:18: note: hidden overloaded virtual function 'wxWindow::DoSetSize' declared here
    virtual void DoSetSize(int x, int y,
                 ^
In file included from /Users/freddie/Desktop/OpenCPN3.1.919/opencpn/src/pluginmanager.cpp:36:
In file included from /Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/pluginmanager.h:37:
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/ocpn_plugin.h:430:27: warning: 'opencpn_plugin_16::RenderOverlay' hides overloaded virtual function [-Woverloaded-virtual]
             virtual bool RenderOverlay(wxDC &dc, PlugIn_ViewPort *vp);
                          ^
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/ocpn_plugin.h:399:20: note: hidden overloaded virtual function 'opencpn_plugin::RenderOverlay' declared here
      virtual bool RenderOverlay(wxMemoryDC *pmdc, PlugIn_ViewPort *vp);
                   ^
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/ocpn_plugin.h:442:27: warning: 'opencpn_plugin_17::RenderOverlay' hides overloaded virtual function [-Woverloaded-virtual]
             virtual bool RenderOverlay(wxDC &dc, PlugIn_ViewPort *vp);
                          ^
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/ocpn_plugin.h:399:20: note: hidden overloaded virtual function 'opencpn_plugin::RenderOverlay' declared here
      virtual bool RenderOverlay(wxMemoryDC *pmdc, PlugIn_ViewPort *vp);
                   ^
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/ocpn_plugin.h:455:26: warning: 'opencpn_plugin_18::RenderOverlay' hides overloaded virtual function [-Woverloaded-virtual]
            virtual bool RenderOverlay(wxDC &dc, PlugIn_ViewPort *vp);
                         ^
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/ocpn_plugin.h:399:20: note: hidden overloaded virtual function 'opencpn_plugin::RenderOverlay' declared here
      virtual bool RenderOverlay(wxMemoryDC *pmdc, PlugIn_ViewPort *vp);
                   ^
In file included from /Users/freddie/Desktop/OpenCPN3.1.919/opencpn/src/pluginmanager.cpp:36:
In file included from /Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/pluginmanager.h:38:
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/chart1.h:316:10: warning: 'MyFrame::DoSetSize' hides overloaded virtual function [-Woverloaded-virtual]
    void DoSetSize(void);
         ^
/usr/local/Cellar/wxmac/2.9.4.0/include/wx-2.9/wx/osx/window.h:361:18: note: hidden overloaded virtual function 'wxWindow::DoSetSize' declared here
    virtual void DoSetSize(int x, int y,
                 ^
In file included from /Users/freddie/Desktop/OpenCPN3.1.919/opencpn/src/ais.cpp:55:
In file included from /Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/ais.h:62:
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/chart1.h:316:10: warning: 'MyFrame::DoSetSize' hides overloaded virtual function [-Woverloaded-virtual]
    void DoSetSize(void);
         ^
/usr/local/Cellar/wxmac/2.9.4.0/include/wx-2.9/wx/osx/window.h:361:18: note: hidden overloaded virtual function 'wxWindow::DoSetSize' declared here
    virtual void DoSetSize(int x, int y,
                 ^
In file included from /Users/freddie/Desktop/OpenCPN3.1.919/opencpn/src/ais.cpp:60:
In file included from /Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/pluginmanager.h:37:
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/ocpn_plugin.h:430:27: warning: 'opencpn_plugin_16::RenderOverlay' hides overloaded virtual function [-Woverloaded-virtual]
             virtual bool RenderOverlay(wxDC &dc, PlugIn_ViewPort *vp);
                          ^
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/ocpn_plugin.h:399:20: note: hidden overloaded virtual function 'opencpn_plugin::RenderOverlay' declared here
      virtual bool RenderOverlay(wxMemoryDC *pmdc, PlugIn_ViewPort *vp);
                   ^
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/ocpn_plugin.h:442:27: warning: 'opencpn_plugin_17::RenderOverlay' hides overloaded virtual function [-Woverloaded-virtual]
             virtual bool RenderOverlay(wxDC &dc, PlugIn_ViewPort *vp);
                          ^
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/ocpn_plugin.h:399:20: note: hidden overloaded virtual function 'opencpn_plugin::RenderOverlay' declared here
      virtual bool RenderOverlay(wxMemoryDC *pmdc, PlugIn_ViewPort *vp);
                   ^
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/ocpn_plugin.h:455:26: warning: 'opencpn_plugin_18::RenderOverlay' hides overloaded virtual function [-Woverloaded-virtual]
            virtual bool RenderOverlay(wxDC &dc, PlugIn_ViewPort *vp);
                         ^
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/ocpn_plugin.h:399:20: note: hidden overloaded virtual function 'opencpn_plugin::RenderOverlay' declared here
      virtual bool RenderOverlay(wxMemoryDC *pmdc, PlugIn_ViewPort *vp);
                   ^
In file included from /Users/freddie/Desktop/OpenCPN3.1.919/opencpn/src/pluginmanager.cpp:36:
In file included from /Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/pluginmanager.h:61:
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/wx/jsonwriter.h:15:13: warning: unknown pragma ignored [-Wunknown-pragmas]
    #pragma interface "jsonwriter.h"
            ^
In file included from /Users/freddie/Desktop/OpenCPN3.1.919/opencpn/src/pluginmanager.cpp:36:
In file included from /Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/pluginmanager.h:61:
In file included from /Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/wx/jsonwriter.h:33:
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/wx/jsonval.h:15:13: warning: unknown pragma ignored [-Wunknown-pragmas]
    #pragma interface "jsonval.h"
            ^
In file included from /Users/freddie/Desktop/OpenCPN3.1.919/opencpn/src/ais.cpp:60:
In file included from /Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/pluginmanager.h:61:
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/wx/jsonwriter.h:15:13: warning: unknown pragma ignored [-Wunknown-pragmas]
    #pragma interface "jsonwriter.h"
            ^
In file included from /Users/freddie/Desktop/OpenCPN3.1.919/opencpn/src/ais.cpp:60:
In file included from /Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/pluginmanager.h:61:
In file included from /Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/wx/jsonwriter.h:33:
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/include/wx/jsonval.h:15:13: warning: unknown pragma ignored [-Wunknown-pragmas]
    #pragma interface "jsonval.h"
            ^
1 warning generated.
[ 93%] Building CXX object CMakeFiles/OpenCPN.dir/src/gpxdocument.cpp.o
clang: warning: argument unused during compilation: '-rdynamic'
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/src/pluginmanager.cpp:1545:13: error: 'AddPendingEvent' is a protected member of 'wxWindowBase'
    gFrame->AddPendingEvent(Nevent);
            ^
/usr/local/Cellar/wxmac/2.9.4.0/include/wx-2.9/wx/window.h:853:25: note: declared protected here
    using wxEvtHandler::AddPendingEvent;
                        ^
6 warnings and 1 error generated.
make[2]: *** [CMakeFiles/OpenCPN.dir/src/pluginmanager.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/src/ais.cpp:4646:34: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                  if( (t1->Class == AIS_BASE))
                       ~~~~~~~~~~^~~~~~~~~~~
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/src/ais.cpp:4646:34: note: remove extraneous parentheses around the comparison to silence this warning
                  if( (t1->Class == AIS_BASE))
                      ~          ^          ~
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/src/ais.cpp:4646:34: note: use '=' to turn this equality comparison into an assignment
                  if( (t1->Class == AIS_BASE))
                                 ^~
                                 =
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/src/ais.cpp:4664:34: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                  if( (t2->Class == AIS_BASE))
                       ~~~~~~~~~~^~~~~~~~~~~
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/src/ais.cpp:4664:34: note: remove extraneous parentheses around the comparison to silence this warning
                  if( (t2->Class == AIS_BASE))
                      ~          ^          ~
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/src/ais.cpp:4664:34: note: use '=' to turn this equality comparison into an assignment
                  if( (t2->Class == AIS_BASE))
                                 ^~
                                 =
7 warnings generated.
/Users/freddie/Desktop/OpenCPN3.1.919/opencpn/src/gpxdocument.cpp:89:25: warning: add explicit braces to avoid dangling else [-Wdangling-else]
                        wxLogMessage(wxString::Format(wxT("File %s seems broken, %i occurences of '&' were replaced with '&amp;' to try to fix it."), filename.c_str(), cnt));
                        ^
/usr/local/Cellar/wxmac/2.9.4.0/include/wx-2.9/wx/log.h:1366:22: note: expanded from macro 'wxLogMessage'
#define wxLogMessage wxDO_LOG_IF_ENABLED(Message)
                     ^
/usr/local/Cellar/wxmac/2.9.4.0/include/wx-2.9/wx/log.h:1353:5: note: expanded from macro 'wxDO_LOG_IF_ENABLED'
    else                                                                      \
    ^
1 warning generated.
8 warnings generated.
make[1]: *** [CMakeFiles/OpenCPN.dir/all] Error 2
make: *** [all] Error 2
Any ideas how to fix the plugin manager?
I still believe that even if its builds, we will still have to deal with the 32 bit build using 64 bit dylibs.

Thanks,
Freddie
__________________
sbfreddie is offline   Reply With Quote
Old 22-09-2012, 06:58   #111
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: OpenCPN Beta Version 3.1.915 Released

freddie...

OK, just comment out line 1545 of pluginmanager.cpp. Only affects intra-plugin messaging.

Lets get a no-error build somehow, and see if the link stage can work with 64 bit dylibs.

Dave
__________________
bdbcat is online now   Reply With Quote
Old 22-09-2012, 11:23   #112
Registered User
 
sbfreddie's Avatar

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

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

OK, just comment out line 1545 of pluginmanager.cpp. Only affects intra-plugin messaging.

Lets get a no-error build somehow, and see if the link stage can work with 64 bit dylibs.

Dave
Dave:
OK, we have a 100% build, but as I suspected it will not link to any of the wxwidgets libs because of dylib architecture problems (32bit vs 64 bit).
Here is a sample of the relevant parts of the build log:

Code:
[100%] clang: warning: argument unused during compilation: '-rdynamic'
Building C object CMakeFiles/OpenCPN.dir/src/macutils.c.o
1 warning generated.
Copying OS X content OpenCPN.app/Contents/Resources/English.lproj/MainMenu.xib
Copying OS X content OpenCPN.app/Contents/Resources/opencpn.icns
Copying OS X content OpenCPN.app/Contents/SharedSupport/doc/help_web.html
Copying OS X content OpenCPN.app/Contents/SharedSupport/gshhs/poly-c-1.dat
Copying OS X content OpenCPN.app/Contents/SharedSupport/gshhs/poly-i-1.dat
Copying OS X content OpenCPN.app/Contents/SharedSupport/gshhs/poly-l-1.dat
Copying OS X content OpenCPN.app/Contents/SharedSupport/gshhs/wdb_borders_c.b
Copying OS X content OpenCPN.app/Contents/SharedSupport/gshhs/wdb_borders_i.b
Copying OS X content OpenCPN.app/Contents/SharedSupport/gshhs/wdb_borders_l.b
Copying OS X content OpenCPN.app/Contents/SharedSupport/gshhs/wdb_rivers_c.b
6 warnings generated.
Copying OS X content OpenCPN.app/Contents/SharedSupport/gshhs/wdb_rivers_i.b
Copying OS X content OpenCPN.app/Contents/SharedSupport/gshhs/wdb_rivers_l.b
Copying OS X content OpenCPN.app/Contents/SharedSupport/license.txt
Copying OS X content OpenCPN.app/Contents/SharedSupport/s57data/S52RAZDS.RLE
Copying OS X content OpenCPN.app/Contents/SharedSupport/s57data/attdecode.csv
Copying OS X content OpenCPN.app/Contents/SharedSupport/s57data/chartsymbols.xml
Copying OS X content OpenCPN.app/Contents/SharedSupport/s57data/rastersymbols-dark.png
Copying OS X content OpenCPN.app/Contents/SharedSupport/s57data/rastersymbols-day.png
Copying OS X content OpenCPN.app/Contents/SharedSupport/s57data/rastersymbols-dusk.png
Copying OS X content OpenCPN.app/Contents/SharedSupport/s57data/s57attributes.csv
Copying OS X content OpenCPN.app/Contents/SharedSupport/s57data/s57expectedinput.csv
Copying OS X content OpenCPN.app/Contents/SharedSupport/s57data/s57objectclasses.csv
Copying OS X content OpenCPN.app/Contents/SharedSupport/sounds/1bells.wav
Copying OS X content OpenCPN.app/Contents/SharedSupport/sounds/2bells.wav
Copying OS X content OpenCPN.app/Contents/SharedSupport/sounds/3bells.wav
Copying OS X content OpenCPN.app/Contents/SharedSupport/sounds/4bells.wav
Copying OS X content OpenCPN.app/Contents/SharedSupport/sounds/5bells.wav
Copying OS X content OpenCPN.app/Contents/SharedSupport/sounds/6bells.wav
Copying OS X content OpenCPN.app/Contents/SharedSupport/sounds/7bells.wav
Copying OS X content OpenCPN.app/Contents/SharedSupport/sounds/8bells.wav
Copying OS X content OpenCPN.app/Contents/SharedSupport/sounds/README.bells
Copying OS X content OpenCPN.app/Contents/SharedSupport/tcdata/HARMONIC
Copying OS X content OpenCPN.app/Contents/SharedSupport/tcdata/HARMONIC.IDX
Copying OS X content OpenCPN.app/Contents/SharedSupport/tcdata/README.harmonics
Copying OS X content OpenCPN.app/Contents/SharedSupport/uidata/styles.xml
Copying OS X content OpenCPN.app/Contents/SharedSupport/uidata/toolicons_journeyman.png
Copying OS X content OpenCPN.app/Contents/SharedSupport/uidata/toolicons_journeyman_flat.png
Copying OS X content OpenCPN.app/Contents/SharedSupport/uidata/toolicons_traditional.png
Linking CXX executable OpenCPN.app/Contents/MacOS/OpenCPN
ld: warning: ignoring file /usr/local/Cellar/wxmac/2.9.4.0/lib/libwx_baseu-2.9.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /usr/local/Cellar/wxmac/2.9.4.0/lib/libwx_baseu-2.9.dylib
ld: warning: ignoring file /usr/local/Cellar/wxmac/2.9.4.0/lib/libwx_osx_cocoau_core-2.9.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /usr/local/Cellar/wxmac/2.9.4.0/lib/libwx_osx_cocoau_core-2.9.dylib
ld: warning: ignoring file /usr/local/Cellar/wxmac/2.9.4.0/lib/libwx_baseu_net-2.9.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /usr/local/Cellar/wxmac/2.9.4.0/lib/libwx_baseu_net-2.9.dylib
ld: warning: ignoring file /usr/local/Cellar/wxmac/2.9.4.0/lib/libwx_baseu_xml-2.9.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /usr/local/Cellar/wxmac/2.9.4.0/lib/libwx_baseu_xml-2.9.dylib
ld: warning: ignoring file /usr/local/Cellar/wxmac/2.9.4.0/lib/libwx_osx_cocoau_html-2.9.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /usr/local/Cellar/wxmac/2.9.4.0/lib/libwx_osx_cocoau_html-2.9.dylib
ld: warning: ignoring file /usr/local/Cellar/wxmac/2.9.4.0/lib/libwx_osx_cocoau_adv-2.9.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /usr/local/Cellar/wxmac/2.9.4.0/lib/libwx_osx_cocoau_adv-2.9.dylib
ld: warning: ignoring file /usr/local/Cellar/wxmac/2.9.4.0/lib/libwx_osx_cocoau_aui-2.9.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /usr/local/Cellar/wxmac/2.9.4.0/lib/libwx_osx_cocoau_aui-2.9.dylib
ld: warning: ignoring file /usr/local/Cellar/wxmac/2.9.4.0/lib/libwx_osx_cocoau_gl-2.9.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /usr/local/Cellar/wxmac/2.9.4.0/lib/libwx_osx_cocoau_gl-2.9.dylib
ld: warning: ignoring file /usr/local/lib/libglib-2.0.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /usr/local/lib/libglib-2.0.dylib
ld: warning: ignoring file /usr/local/lib/libgdk-x11-2.0.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /usr/local/lib/libgdk-x11-2.0.dylib
ld: warning: ignoring file /usr/local/lib/libgdk_pixbuf-2.0.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /usr/local/lib/libgdk_pixbuf-2.0.dylib
ld: warning: ignoring file /usr/local/lib/libgtk-x11-2.0.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /usr/local/lib/libgtk-x11-2.0.dylib
ld: warning: ignoring file /usr/local/lib/libgobject-2.0.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /usr/local/lib/libgobject-2.0.dylib
ld: warning: ignoring file /usr/local/lib/libpango-1.0.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /usr/local/lib/libpango-1.0.dylib
ld: warning: ignoring file /usr/local/lib/libatk-1.0.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /usr/local/lib/libatk-1.0.dylib
Undefined symbols for architecture i386:
  "wxCopyFile(wxString const&, wxString const&, bool)", referenced from:
      MyConfig::CreateRotatingNavObjBackup() in navutil.cpp.o
      s57chart::BuildSENCFile(wxString const&, wxString const&) in libS57ENC.a(s57chart.cpp.o)
      s57chart::ValidateAndCountUpdates(wxFileName, wxString, wxString&, bool) in libS57ENC.a(s57chart.cpp.o)
  "wxDirExists(wxString const&)", referenced from:
      PlugInManager::LoadAllPlugIns(wxString&) in pluginmanager.cpp.o
      Is_CM93Cell_Present(wxString&, double, double, int) in libS57ENC.a(cm93.cpp.o)
  "wxSetCursor(wxCursor const&)", referenced from:
      MyFrame::OnCloseWindow(wxCloseEvent&) in chart1.cpp.o
  "wxFileExists(wxString const&)", referenced from:
      MyApp::OnInit() in chart1.cpp.o
      MyConfig::LoadMyConfig(int) in navutil.cpp.o
      MyConfig::ExportGPXRoute(wxWindow*, Route*) in navutil.cpp.o
      MyConfig::ExportGPXWaypoint(wxWindow*, RoutePoint*) in navutil.cpp.o
      MyConfig::ExportGPX(wxWindow*) in navutil.cpp.o
      MyConfig::ImportGPX(wxWindow*, bool, wxString, bool) in navutil.cpp.o
      about::OnPageChange(wxBookCtrlEvent&) in about.cpp.o
      ...
  "wxGetUTCTime()", referenced from:
      s52plib::s52plib(wxString const&, bool) in libS57ENC.a(s52plib.cpp.o)
      s52plib::GenerateStateHash() in libS57ENC.a(s52plib.cpp.o)
  "wxIsReadable(wxString const&)", referenced from:
      wxFileName::IsFileReadable() const in chartdbs.cpp.o
  "wxMessageBox(wxString const&, wxString const&, long, wxWindow*, int, int)", referenced from:
      MyFrame::SetGroupIndex(int) in chart1.cpp.o
      RouteManagerDialog::OnRteToggleVisibility(wxMouseEvent&) in routemanagerdialog.cpp.o
      RouteManagerDialog::OnWptDeleteClick(wxCommandEvent&) in routemanagerdialog.cpp.o
      LinkPropImpl::OnOkClick(wxCommandEvent&) in routeprop.cpp.o
  "wxMilliSleep(unsigned long)", referenced from:
      AIS_Decoder::OpenDataSource(wxFrame*, wxString const&) in ais.cpp.o
      NMEAHandler::NMEAHandler(int, wxFrame*, wxString const&, wxString const&, wxMutex*, bool) in libNMEA0183.a(nmea.cpp.o)
      NMEAHandler::SendRouteToGPS(Route*, wxString&, bool, wxGauge*) in libNMEA0183.a(nmea.cpp.o)
      NMEAHandler::SendWaypointToGPS(RoutePoint*, wxString&, wxGauge*) in libNMEA0183.a(nmea.cpp.o)
  "wxRemoveFile(wxString const&)", referenced from:
      MyApp::OnInit() in chart1.cpp.o
      MyConfig::CreateRotatingNavObjBackup() in navutil.cpp.o
      MyConfig::UpdateNavObj() in navutil.cpp.o
      GpxDocument::LoadFile(wxString const&) in gpxdocument.cpp.o
      s57chart::BuildSENCFile(wxString const&, wxString const&) in libS57ENC.a(s57chart.cpp.o)
      covr_set::Init(wchar_t, wxString&) in libS57ENC.a(cm93.cpp.o)
  "wxRenameFile(wxString const&, wxString const&, bool)", referenced from:
      MyApp::OnInit() in chart1.cpp.o
  "wxDisplaySize(int*, int*)", referenced from:
Seems that I have to tell CMake to build x86_64 builds as all systems past about 10.4 want 64 bit builds. This also means I need to set the right architecture as well as the Minimum system build supported.
Looks like some more research is in order, Sigh.

Thanks,
Freddie
__________________
sbfreddie is offline   Reply With Quote
Old 23-09-2012, 20:40   #113
Registered User
 
sbfreddie's Avatar

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

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

OK, just comment out line 1545 of pluginmanager.cpp. Only affects intra-plugin messaging.

Lets get a no-error build somehow, and see if the link stage can work with 64 bit dylibs.

Dave
Dave:
I figured out how to make O build as a 64bit app, and it completes the build with no errors.
However the install phase fails because CMake is not creating or installing the plugins folder with the two plugins in it.
Here is the relevant snip from build log:

Code:
[ 61%] Built target OpenCPN
make -f plugins/dashboard_pi/CMakeFiles/dashboard-i18n.dir/build.make plugins/dashboard_pi/CMakeFiles/dashboard-i18n.dir/depend
cd /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64 && "/Applications/CMake 2.8-9.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/plugins/dashboard_pi /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64 /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/plugins/dashboard_pi /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/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-9.app/Contents/bin/cmake" -E cmake_progress_report /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/CMakeFiles 42
[ 62%] dashboard-i18n: Done.
"/Applications/CMake 2.8-9.app/Contents/bin/cmake" -E cmake_progress_report /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/CMakeFiles  42 43 44 45 46 47 48
[ 70%] 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/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64 && "/Applications/CMake 2.8-9.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/plugins/dashboard_pi /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64 /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/plugins/dashboard_pi /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/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-9.app/Contents/bin/cmake" -E cmake_progress_report /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/CMakeFiles  56 57 58 59 60 61 62 63 64 65 66 67 68 69
[ 88%] 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/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64 && "/Applications/CMake 2.8-9.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/plugins/grib_pi /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64 /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/plugins/grib_pi /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/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-9.app/Contents/bin/cmake" -E cmake_progress_report /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/CMakeFiles 70
[ 89%] grib-i18n: Done.
"/Applications/CMake 2.8-9.app/Contents/bin/cmake" -E cmake_progress_report /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/CMakeFiles  70 71 72 73 74 75 76
[ 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/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64 && "/Applications/CMake 2.8-9.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/plugins/grib_pi /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64 /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/plugins/grib_pi /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/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-9.app/Contents/bin/cmake" -E cmake_progress_report /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/CMakeFiles  84 85
[100%] Built target grib_pi
"/Applications/CMake 2.8-9.app/Contents/bin/cmake" -E cmake_progress_start /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/CMakeFiles 0
make -f CMakeFiles/Makefile2 preinstall
make[1]: Nothing to be done for `preinstall'.
Install the project...
"/Applications/CMake 2.8-9.app/Contents/bin/cmake" -P cmake_install.cmake
-- Install configuration: ""
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/Info.plist
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/OpenCPN
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/Resources
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/Resources/English.lproj
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/Resources/English.lproj/MainMenu.xib
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/Resources/opencpn.icns
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/doc
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/doc/help_web.html
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/gshhs
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/gshhs/poly-c-1.dat
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/gshhs/poly-i-1.dat
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/gshhs/poly-l-1.dat
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/gshhs/wdb_borders_c.b
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/gshhs/wdb_borders_i.b
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/gshhs/wdb_borders_l.b
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/gshhs/wdb_rivers_c.b
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/gshhs/wdb_rivers_i.b
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/gshhs/wdb_rivers_l.b
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/license.txt
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/s57data
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/s57data/attdecode.csv
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/s57data/chartsymbols.xml
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/s57data/rastersymbols-dark.png
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/s57data/rastersymbols-day.png
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/s57data/rastersymbols-dusk.png
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/s57data/S52RAZDS.RLE
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/s57data/s57attributes.csv
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/s57data/s57expectedinput.csv
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/s57data/s57objectclasses.csv
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/sounds
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/sounds/1bells.wav
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/sounds/2bells.wav
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/sounds/3bells.wav
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/sounds/4bells.wav
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/sounds/5bells.wav
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/sounds/6bells.wav
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/sounds/7bells.wav
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/sounds/8bells.wav
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/sounds/README.bells
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/tcdata
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/tcdata/HARMONIC
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/tcdata/HARMONIC.IDX
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/tcdata/README.harmonics
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/uidata
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/uidata/styles.xml
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/uidata/toolicons_journeyman.png
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/uidata/toolicons_journeyman_flat.png
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/SharedSupport/uidata/toolicons_traditional.png
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/Resources/cs.lproj/OpenCPN.mo
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/Resources/da.lproj/OpenCPN.mo
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/Resources/de.lproj/OpenCPN.mo
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/Resources/es.lproj/OpenCPN.mo
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/Resources/fr.lproj/OpenCPN.mo
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/Resources/it.lproj/OpenCPN.mo
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/Resources/nl.lproj/OpenCPN.mo
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/Resources/pl.lproj/OpenCPN.mo
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/Resources/ru.lproj/OpenCPN.mo
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/Resources/sv.lproj/OpenCPN.mo
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/Resources/et.lproj/OpenCPN.mo
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/Resources/pt_PT.lproj/OpenCPN.mo
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/Resources/pt_BR.lproj/OpenCPN.mo
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/Resources/nb_NO.lproj/OpenCPN.mo
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/Resources/tr_TR.lproj/OpenCPN.mo
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/Resources/fi_FI.lproj/OpenCPN.mo
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/Resources/el_GR.lproj/OpenCPN.mo
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/Resources/zh_TW.lproj/OpenCPN.mo
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/Resources/hu_HU.lproj/OpenCPN.mo
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/Resources/gl_ES.lproj/OpenCPN.mo
-- Installing: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/Resources/ca_ES.lproj/OpenCPN.mo
-- fixup_bundle
--   app='/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app'
--   libs='/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib;/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libgrib_pi.dylib'
--   dirs=''
-- fixup_bundle: preparing...
-- 
warning: cannot resolve item '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib'

  possible problems:
    need more directories?
    need to use InstallRequiredSystemLibraries?
    run in install tree instead of build tree?

warning: target '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib' does not exist...
/usr/bin/otool: can't open file: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib (No such file or directory)
otool: can't open file: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib (No such file or directory)
-- 
warning: cannot resolve item '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libgrib_pi.dylib'

  possible problems:
    need more directories?
    need to use InstallRequiredSystemLibraries?
    run in install tree instead of build tree?

warning: target '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libgrib_pi.dylib' does not exist...
/usr/bin/otool: can't open file: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libgrib_pi.dylib (No such file or directory)
otool: can't open file: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libgrib_pi.dylib (No such file or directory)
-- fixup_bundle: copying...
-- 1/96: *NOT* copying '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib'
-- 2/96: *NOT* copying '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libgrib_pi.dylib'
-- 3/96: *NOT* copying '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/OpenCPN'
-- 4/96: copying '/opt/X11/lib/libX11.6.dylib'
-- 5/96: copying '/opt/X11/lib/libXau.6.dylib'
-- 6/96: copying '/opt/X11/lib/libXcomposite.1.dylib'
-- 7/96: copying '/opt/X11/lib/libXcursor.1.dylib'
-- 8/96: copying '/opt/X11/lib/libXdamage.1.dylib'
-- 9/96: copying '/opt/X11/lib/libXdmcp.6.dylib'
-- 10/96: copying '/opt/X11/lib/libXext.6.dylib'
-- 11/96: copying '/opt/X11/lib/libXfixes.3.dylib'
-- 12/96: copying '/opt/X11/lib/libXinerama.1.dylib'
-- 13/96: copying '/opt/X11/lib/libXrandr.2.dylib'
-- 14/96: copying '/opt/X11/lib/libXrender.1.dylib'
-- 15/96: copying '/opt/X11/lib/libfontconfig.1.dylib'
-- 16/96: copying '/opt/X11/lib/libfreetype.6.dylib'
-- 17/96: copying '/opt/X11/lib/libpng15.15.dylib'
-- 18/96: copying '/opt/X11/lib/libxcb-render.0.dylib'
-- 19/96: copying '/opt/X11/lib/libxcb-shm.0.dylib'
-- 20/96: copying '/opt/X11/lib/libxcb.1.dylib'
-- 21/96: copying '/usr/X11/lib/libX11-xcb.1.dylib'
-- 22/96: copying '/usr/X11/lib/libcairo.2.dylib'
-- 23/96: copying '/usr/X11/lib/libpixman-1.0.dylib'
-- 24/96: copying '/usr/local/Cellar/gettext/0.18.1.1/lib/libintl.8.dylib'
-- 25/96: copying '/usr/local/Cellar/glib/2.32.4/lib/libglib-2.0.0.dylib'
-- 26/96: copying '/usr/local/Cellar/glib/2.32.4/lib/libgmodule-2.0.0.dylib'
-- 27/96: copying '/usr/local/Cellar/glib/2.32.4/lib/libgobject-2.0.0.dylib'
-- 28/96: copying '/usr/local/Cellar/glib/2.32.4/lib/libgthread-2.0.0.dylib'
-- 29/96: copying '/usr/local/Cellar/gtk+/2.24.11/lib/libgdk-x11-2.0.0.dylib'
-- 30/96: copying '/usr/local/Cellar/libffi/3.0.11/lib/libffi.6.dylib'
-- 31/96: copying '/usr/local/Cellar/pango/1.30.1/lib/libpango-1.0.0.dylib'
-- 32/96: copying '/usr/local/Cellar/pango/1.30.1/lib/libpangoft2-1.0.0.dylib'
-- 33/96: copying '/usr/local/Cellar/wxmac/2.9.4.0/lib/libwx_baseu-2.9.4.0.0.dylib'
-- 34/96: copying '/usr/local/Cellar/wxmac/2.9.4.0/lib/libwx_osx_cocoau_adv-2.9.4.0.0.dylib'
-- 35/96: copying '/usr/local/Cellar/wxmac/2.9.4.0/lib/libwx_osx_cocoau_core-2.9.4.0.0.dylib'
-- 36/96: copying '/usr/local/lib/libatk-1.0.0.dylib'
-- 37/96: copying '/usr/local/lib/libgdk_pixbuf-2.0.0.dylib'
-- 38/96: copying '/usr/local/lib/libgio-2.0.0.dylib'
-- 39/96: copying '/usr/local/lib/libgtk-x11-2.0.0.dylib'
-- 40/96: copying '/usr/local/lib/libjpeg.8.dylib'
-- 41/96: copying '/usr/local/lib/liblzma.5.dylib'
-- 42/96: copying '/usr/local/lib/libpangocairo-1.0.0.dylib'
-- 43/96: copying '/usr/local/lib/libtiff.5.dylib'
-- 44/96: copying '/usr/local/lib/libwx_baseu_net-2.9.4.0.0.dylib'
-- 45/96: copying '/usr/local/lib/libwx_baseu_xml-2.9.4.0.0.dylib'
-- 46/96: copying '/usr/local/lib/libwx_osx_cocoau_aui-2.9.4.0.0.dylib'
-- 47/96: copying '/usr/local/lib/libwx_osx_cocoau_gl-2.9.4.0.0.dylib'
-- 48/96: copying '/usr/local/lib/libwx_osx_cocoau_html-2.9.4.0.0.dylib'
-- fixup_bundle: fixing...
-- 49/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib'
warning: target '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib' does not exist...
/usr/bin/otool: can't open file: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib (No such file or directory)
otool: can't open file: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib (No such file or directory)
install_name_tool: can't open file: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib (No such file or directory)
-- 50/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libgrib_pi.dylib'
warning: target '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libgrib_pi.dylib' does not exist...
/usr/bin/otool: can't open file: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libgrib_pi.dylib (No such file or directory)
otool: can't open file: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libgrib_pi.dylib (No such file or directory)
install_name_tool: can't open file: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libgrib_pi.dylib (No such file or directory)
-- 51/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/OpenCPN'
-- 52/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libX11.6.dylib'
-- 53/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libXau.6.dylib'
-- 54/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libXcomposite.1.dylib'
-- 55/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libXcursor.1.dylib'
-- 56/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libXdamage.1.dylib'
-- 57/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libXdmcp.6.dylib'
-- 58/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libXext.6.dylib'
-- 59/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libXfixes.3.dylib'
install_name_tool: changing install names or rpaths can't be redone for: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libXfixes.3.dylib (for architecture x86_64) because larger updated load commands do not fit (the program must be relinked, and you may need to use -headerpad or -headerpad_max_install_names)
-- 60/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libXinerama.1.dylib'
-- 61/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libXrandr.2.dylib'
-- 62/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libXrender.1.dylib'
-- 63/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libfontconfig.1.dylib'
-- 64/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libfreetype.6.dylib'
-- 65/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libpng15.15.dylib'
-- 66/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libxcb-render.0.dylib'
-- 67/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libxcb-shm.0.dylib'
-- 68/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libxcb.1.dylib'
-- 69/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libX11-xcb.1.dylib'
-- 70/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libcairo.2.dylib'
-- 71/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libpixman-1.0.dylib'
-- 72/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libintl.8.dylib'
-- 73/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libglib-2.0.0.dylib'
-- 74/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libgmodule-2.0.0.dylib'
-- 75/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libgobject-2.0.0.dylib'
-- 76/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libgthread-2.0.0.dylib'
-- 77/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libgdk-x11-2.0.0.dylib'
-- 78/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libffi.6.dylib'
-- 79/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libpango-1.0.0.dylib'
-- 80/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libpangoft2-1.0.0.dylib'
-- 81/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libwx_baseu-2.9.4.0.0.dylib'
-- 82/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libwx_osx_cocoau_adv-2.9.4.0.0.dylib'
-- 83/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libwx_osx_cocoau_core-2.9.4.0.0.dylib'
-- 84/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libatk-1.0.0.dylib'
-- 85/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libgdk_pixbuf-2.0.0.dylib'
install_name_tool: can't open input file: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libgdk_pixbuf-2.0.0.dylib for writing (Permission denied)
install_name_tool: can't lseek to offset: 0 in file: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libgdk_pixbuf-2.0.0.dylib for writing (Bad file descriptor)
install_name_tool: can't write new headers in file: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libgdk_pixbuf-2.0.0.dylib (Bad file descriptor)
install_name_tool: can't close written on input file: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libgdk_pixbuf-2.0.0.dylib (Bad file descriptor)
-- 86/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libgio-2.0.0.dylib'
-- 87/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libgtk-x11-2.0.0.dylib'
-- 88/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libjpeg.8.dylib'
-- 89/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/liblzma.5.dylib'
-- 90/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libpangocairo-1.0.0.dylib'
-- 91/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libtiff.5.dylib'
-- 92/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libwx_baseu_net-2.9.4.0.0.dylib'
-- 93/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libwx_baseu_xml-2.9.4.0.0.dylib'
-- 94/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libwx_osx_cocoau_aui-2.9.4.0.0.dylib'
-- 95/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libwx_osx_cocoau_gl-2.9.4.0.0.dylib'
-- 96/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/libwx_osx_cocoau_html-2.9.4.0.0.dylib'
-- fixup_bundle: cleaning up...
-- fixup_bundle: verifying...
-- ===========================================================================
-- Analyzing app='/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app'
-- bundle='/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app'
-- executable='/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/OpenCPN'
-- valid='1'
-- executable file 1: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/OpenCPN
-- verified='0'
-- info='external prerequisites found:
f='/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/MacOS/OpenCPN'
external_prereqs='/opt/X11/lib/libX11.6.dylib;/opt/X11/lib/libXau.6.dylib;/opt/X11/lib/libXdmcp.6.dylib;/opt/X11/lib/libxcb.1.dylib;/usr/X11/lib/libpng15.15.dylib;/usr/local/Cellar/gettext/0.18.1.1/lib/libintl.8.dylib;/usr/local/Cellar/glib/2.32.4/lib/libglib-2.0.0.dylib;/usr/local/Cellar/glib/2.32.4/lib/libgmodule-2.0.0.dylib;/usr/local/Cellar/glib/2.32.4/lib/libgobject-2.0.0.dylib;/usr/local/Cellar/glib/2.32.4/lib/libgthread-2.0.0.dylib;/usr/local/Cellar/libffi/3.0.11/lib/libffi.6.dylib;/usr/local/lib/libgio-2.0.0.dylib;/usr/local/lib/libglib-2.0.0.dylib;/usr/local/lib/libgmodule-2.0.0.dylib;/usr/local/lib/libgobject-2.0.0.dylib'
'
-- 
CMake Error at /Applications/CMake 2.8-9.app/Contents/share/cmake-2.8/Modules/BundleUtilities.cmake:784 (message):
  error: verify_app failed
Call Stack (most recent call first):
  /Applications/CMake 2.8-9.app/Contents/share/cmake-2.8/Modules/BundleUtilities.cmake:666 (verify_app)
  cmake_install.cmake:289 (fixup_bundle)


make: *** [install] Error 1


Any ideas how to get CMake to install the plugins?

Thanks,
Freddie
__________________
sbfreddie is offline   Reply With Quote
Old 24-09-2012, 07:03   #114
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: OpenCPN Beta Version 3.1.915 Released

freddie....

I don't think it actually built the plugins. The plugin dylbs don't seem to exist.
From the log:

make[2]: NNothing to be done for `plugins/dashboard_pi/CMakeFiles/dashboard_pi.dir/build'.
Maybe need a $make clean?

or, you can remove these two lines from CMakeLists.txt, and skip the PlugIns for now.

Code:
  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")
also, rerun cmake as:

$cmake -D SKIP_PLUGINS:BOOL=TRUE ..

Dave
__________________
bdbcat is online now   Reply With Quote
Old 24-09-2012, 13:14   #115
Registered User
 
sbfreddie's Avatar

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

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

I don't think it actually built the plugins. The plugin dylbs don't seem to exist.
From the log:

make[2]: NNothing to be done for `plugins/dashboard_pi/CMakeFiles/dashboard_pi.dir/build'.
Maybe need a $make clean?

or, you can remove these two lines from CMakeLists.txt, and skip the PlugIns for now.

Code:
  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")
also, rerun cmake as:

$cmake -D SKIP_PLUGINS:BOOL=TRUE ..

Dave
Dave:
I believe it did build the plugins, because if I look into the build directory I find located inside the plugins folder two plugins called dashboard_pi and grib_pi and in each of these folders I find libdashboard_pi.dylib, and libgrib_pi.dylib respectively along with a whole bunch of .mo files in each folder.
There is also this output from the build log which confirms that it did successfully build the plugins:

Code:
make -f plugins/grib_pi/CMakeFiles/grib_pi.dir/build.make plugins/grib_pi/CMakeFiles/grib_pi.dir/depend
cd /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64 && "/Applications/CMake 2.8-9.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/plugins/grib_pi /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64 /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/plugins/grib_pi /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/plugins/grib_pi/CMakeFiles/grib_pi.dir/DependInfo.cmake --color=
In file included from /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/src/s52plib.cpp:44:
In file included from /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/include/s57chart.h:50:
In file included from /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/include/chcanv.h:42:
/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/include/chart1.h:316:10: warning: 'MyFrame::DoSetSize' hides overloaded virtual function [-Woverloaded-virtual]
    void DoSetSize(void);
         ^
/usr/local/Cellar/wxmac/2.9.4.0/include/wx-2.9/wx/osx/window.h:361:18: note: hidden overloaded virtual function 'wxWindow::DoSetSize' declared here
    virtual void DoSetSize(int x, int y,
                 ^
Scanning dependencies of target grib_pi
make -f plugins/grib_pi/CMakeFiles/grib_pi.dir/build.make plugins/grib_pi/CMakeFiles/grib_pi.dir/build
"/Applications/CMake 2.8-9.app/Contents/bin/cmake" -E cmake_progress_report /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/CMakeFiles 
[ 37%] Building CXX object plugins/grib_pi/CMakeFiles/grib_pi.dir/src/grib_pi.cpp.o
cd /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/plugins/grib_pi && /usr/bin/c++   -Dgrib_pi_EXPORTS -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -DUSE_GLU_TESS -DocpnUSE_GTK_OPTIMIZE -DocpnHAS_GTK -DTIXML_USE_STL -DUSE_S57 -DUSE_GARMINHOST -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -O2 -arch x86_64 -I/usr/local/Cellar/wxmac/2.9.4.0/include/wx-2.9 -fPIC -I/usr/local/Cellar/wxmac/2.9.4.0/lib/wx/include/osx_cocoa-unicode-2.9 -I/usr/local/Cellar/wxmac/2.9.4.0/include/wx-2.9 -I/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/include -I/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/src -I/usr/local/include/gtk-2.0 -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/X11R6/include/cairo -I/usr/local/include/pango-1.0 -I/usr/local/include/atk-1.0 -I/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/src/nmea0183 -I/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/src/mygdal -I/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/src/garmin/jeeps -I/usr/X11/include -I/usr/X11/include/GL    -Wall -Wno-unused -fexceptions  -g -fno-strict-aliasing -Wall -O0 -fexceptions -fvisibility=hidden -o CMakeFiles/grib_pi.dir/src/grib_pi.cpp.o -c /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/plugins/grib_pi/src/grib_pi.cpp
and this also:

Code:
[ 41%] Building CXX object plugins/dashboard_pi/CMakeFiles/dashboard_pi.dir/src/instrument.cpp.o
cd /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/plugins/dashboard_pi && /usr/bin/c++   -Ddashboard_pi_EXPORTS -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -DUSE_GLU_TESS -DocpnUSE_GTK_OPTIMIZE -DocpnHAS_GTK -DTIXML_USE_STL -DUSE_S57 -DUSE_GARMINHOST -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -O2 -arch x86_64 -I/usr/local/Cellar/wxmac/2.9.4.0/include/wx-2.9 -fPIC -I/usr/local/Cellar/wxmac/2.9.4.0/lib/wx/include/osx_cocoa-unicode-2.9 -I/usr/local/Cellar/wxmac/2.9.4.0/include/wx-2.9 -I/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/include -I/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/src -I/usr/local/include/gtk-2.0 -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/X11R6/include/cairo -I/usr/local/include/pango-1.0 -I/usr/local/include/atk-1.0 -I/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/src/nmea0183 -I/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/src/mygdal -I/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/src/garmin/jeeps -I/usr/X11/include -I/usr/X11/include/GL -I/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/plugins/dashboard_pi/src/nmea0183    -Wall -Wno-unused -fexceptions  -g -fno-strict-aliasing -Wall -O3 -fexceptions -fvisibility=hidden -o CMakeFiles/dashboard_pi.dir/src/instrument.cpp.o -c /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/plugins/dashboard_pi/src/instrument.cpp
In file included from /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/plugins/grib_pi/src/grib.cpp:42:
In file included from /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/plugins/grib_pi/src/grib_pi.h:43:
/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/plugins/grib_pi/src/../../../include/ocpn_plugin.h:430:27: warning: 'opencpn_plugin_16::RenderOverlay' hides overloaded virtual function [-Woverloaded-virtual]
             virtual bool RenderOverlay(wxDC &dc, PlugIn_ViewPort *vp);
                          ^
/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/plugins/grib_pi/src/../../../include/ocpn_plugin.h:399:20: note: hidden overloaded virtual function 'opencpn_plugin::RenderOverlay' declared here
      virtual bool RenderOverlay(wxMemoryDC *pmdc, PlugIn_ViewPort *vp);
                   ^
/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/plugins/grib_pi/src/../../../include/ocpn_plugin.h:442:27: warning: 'opencpn_plugin_17::RenderOverlay' hides overloaded virtual function [-Woverloaded-virtual]
             virtual bool RenderOverlay(wxDC &dc, PlugIn_ViewPort *vp);
                          ^
/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/plugins/grib_pi/src/../../../include/ocpn_plugin.h:399:20: note: hidden overloaded virtual function 'opencpn_plugin::RenderOverlay' declared here
      virtual bool RenderOverlay(wxMemoryDC *pmdc, PlugIn_ViewPort *vp);
                   ^
/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/plugins/grib_pi/src/../../../include/ocpn_plugin.h:455:26: warning: 'opencpn_plugin_18::RenderOverlay' hides overloaded virtual function [-Woverloaded-virtual]
            virtual bool RenderOverlay(wxDC &dc, PlugIn_ViewPort *vp);
                         ^
/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/plugins/grib_pi/src/../../../include/ocpn_plugin.h:399:20: note: hidden overloaded virtual function 'opencpn_plugin::RenderOverlay' declared here
      virtual bool RenderOverlay(wxMemoryDC *pmdc, PlugIn_ViewPort *vp);
                   ^
"/Applications/CMake 2.8-9.app/Contents/bin/cmake" -E cmake_progress_report /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/CMakeFiles
These outputs were not included in the previous post because the entire output is too large for this message board.

Thanks,
Freddie
__________________
sbfreddie is offline   Reply With Quote
Old 25-09-2012, 15:36   #116
Registered User
 
sbfreddie's Avatar

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

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

I don't think it actually built the plugins. The plugin dylbs don't seem to exist.
From the log:

make[2]: NNothing to be done for `plugins/dashboard_pi/CMakeFiles/dashboard_pi.dir/build'.
Maybe need a $make clean?

or, you can remove these two lines from CMakeLists.txt, and skip the PlugIns for now.

Code:
  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")
also, rerun cmake as:

$cmake -D SKIP_PLUGINS:BOOL=TRUE ..

Dave
Dave:
I tried rerunning CMake with the SKIP_PLUGINS BOOL set to true, and it did indeed not build the plugins this time. However I still get the same errors as before.
While digging around on the Net I came across this tidbit from the Kitware bug tracker:
0012034: BundleUtilities can not fixup standalone executable on OS X - MantisBT

Here is the pertinent part:

Code:
0012034: BundleUtilities can not fixup standalone executable on OS X
Description	Using the BundleUtilities on OS X and trying to fixup a plain executable will fail because the executable is expected to be included in a .app package

2) You need to supply install rules for "dynamically loaded shared libraries" (like plugins) -- fixup_bundle will only copy in files that it determines are necessary based on otool -L output. It no longer copies in the "${libs}" list as it used to in CMake 2.8.3 and earlier.

(Which is why we added the error message to 2.8.4 -- to explicitly call attention to the fact that we inadvertently changed the behavior with one of the bug fixes we allowed in the 2.8.3 release...)
The reason your build works I believe is because you are using CMake less than 2.8.4. to build the app bundle.
Now I have to figure out how to copy in the Plugins folder and put the *_pi.dylibs plugins in it.

Thanks,
Freddie
__________________
sbfreddie is offline   Reply With Quote
Old 25-09-2012, 16:06   #117
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: OpenCPN Beta Version 3.1.915 Released

Freddie...

Not sure how this relates. Our intent is to to install the PlugIns into the bundle explicitly.

from CMakeLists.txt:

Code:
  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)
Dunno why this won't work for 64 bit build.
Is there any way to build the PlugIns as you have done, and use some tool like "file" or "objdump" to try and confirm that they are actually 64 bit elf dylibs? I have a suspicion that the PlugIns are not in the correct format for bundling, somehow.

Dave
__________________
bdbcat is online now   Reply With Quote
Old 25-09-2012, 16:15   #118
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: OpenCPN Beta Version 3.1.915 Released

Freddie...

or try this:

Build OpenCPN without Plugins. Install the dmg, and get it running.

Then, build with PlugIns, however that may be done. Before installing/bundling, find and copy the PlugIn dylibs to the correct runtime directory manually. Then run your previously installed O. Prove to yourself that the PlugIns just built will actually link and run.

If they do run, then we (just) have a packaging problem. If they fail to link and run, then we have a PlugIn compile/link problem.

This would be instructive, I think.


Dave
__________________
bdbcat is online now   Reply With Quote
Old 25-09-2012, 16:38   #119
Registered User
 
sbfreddie's Avatar

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

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

Not sure how this relates. Our intent is to to install the PlugIns into the bundle explicitly.

from CMakeLists.txt:

Code:
  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)
Dunno why this won't work for 64 bit build.
Is there any way to build the PlugIns as you have done, and use some tool like "file" or "objdump" to try and confirm that they are actually 64 bit elf dylibs? I have a suspicion that the PlugIns are not in the correct format for bundling, somehow.

Dave
Dave:
Here is the output of the OS X tool for finding the information you seek, its call otool:

Code:
kingston-cos-computer-3:OpenCPN3.1.919 freddie$ otool -fahv /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/Plugins/dashboard_pi/libdashboard_pi.dylib /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/Plugins/grib_pi/libgrib_pi.dylib 
/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/Plugins/dashboard_pi/libdashboard_pi.dylib:
Mach header
      magic cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags
MH_MAGIC_64  X86_64        ALL  0x00       DYLIB    26       3120   NOUNDEFS DYLDLINK TWOLEVEL BINDS_TO_WEAK NO_REEXPORTED_DYLIBS
/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/Plugins/grib_pi/libgrib_pi.dylib:
Mach header
      magic cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags
MH_MAGIC_64  X86_64        ALL  0x00       DYLIB    27       3160   NOUNDEFS DYLDLINK TWOLEVEL WEAK_DEFINES BINDS_TO_WEAK NO_REEXPORTED_DYLIBS
kingston-cos-computer-3:OpenCPN3.1.919 freddie$
Here is the output of otool -L which tells you the linkages of the dylibs:

Code:
kingston-cos-computer-3:OpenCPN3.1.919 freddie$ otool -L /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/Plugins/dashboard_pi/libdashboard_pi.dylib /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/Plugins/grib_pi/libgrib_pi.dylib 
/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/Plugins/dashboard_pi/libdashboard_pi.dylib:
	/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/Plugins/dashboard_pi/libdashboard_pi.dylib (compatibility version 0.0.0, current version 0.0.0)
	/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
	/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 153.0.0)
	/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 17.0.0)
	/System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
	/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
	/usr/local/lib/libwx_baseu-2.9.4.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/local/lib/libwx_osx_cocoau_core-2.9.4.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/local/lib/libwx_baseu_net-2.9.4.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/local/lib/libwx_baseu_xml-2.9.4.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/local/lib/libwx_osx_cocoau_html-2.9.4.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/local/lib/libwx_osx_cocoau_adv-2.9.4.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/local/lib/libwx_osx_cocoau_aui-2.9.4.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/local/lib/libwx_osx_cocoau_gl-2.9.4.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 635.21.0)
/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/Plugins/grib_pi/libgrib_pi.dylib:
	/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/Plugins/grib_pi/libgrib_pi.dylib (compatibility version 0.0.0, current version 0.0.0)
	/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
	/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 153.0.0)
	/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 17.0.0)
	/System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
	/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
	/usr/local/lib/libwx_baseu-2.9.4.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/local/lib/libwx_osx_cocoau_core-2.9.4.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/local/lib/libwx_baseu_net-2.9.4.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/local/lib/libwx_baseu_xml-2.9.4.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/local/lib/libwx_osx_cocoau_html-2.9.4.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/local/lib/libwx_osx_cocoau_adv-2.9.4.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/local/lib/libwx_osx_cocoau_aui-2.9.4.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/local/lib/libwx_osx_cocoau_gl-2.9.4.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
	/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 635.21.0)
kingston-cos-computer-3:OpenCPN3.1.919 freddie$
As you can see the two plugin dylibs are built for X86_64 and they are properly linked to the system frameworks as well as OpenGL and wxWidgets libs.

They have been built correctly, they just have not been copied into the app bundle, and thats why I get this error in the the build output:

Code:
warning: target '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib' does not exist...
/usr/bin/otool: can't open file: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib (No such file or directory)
otool: can't open file: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib (No such file or directory)
And this further up the line:

Code:
-- fixup_bundle: fixing...
-- 49/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib'
warning: target '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib' does not exist...
/usr/bin/otool: can't open file: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib (No such file or directory)
otool: can't open file: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib (No such file or directory)
install_name_tool: can't open file: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libdashboard_pi.dylib (No such file or directory)
-- 50/96: fixing up '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libgrib_pi.dylib'
warning: target '/Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libgrib_pi.dylib' does not exist...
/usr/bin/otool: can't open file: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libgrib_pi.dylib (No such file or directory)
otool: can't open file: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libgrib_pi.dylib (No such file or directory)
install_name_tool: can't open file: /Users/freddie/Desktop/OpenCPN3.1.919/OpenCPN/buildX86_64/MacBuild/bin/OpenCPN.app/Contents/PlugIns/libgrib_pi.dylib (No such file or directory)
There is a lot of talk on the net concerning this change in CMake, because it caused a lot of grief in a lot of builds.

Thanks,
Freddie
__________________
sbfreddie is offline   Reply With Quote
Old 25-09-2012, 16:43   #120
Registered User
 
sbfreddie's Avatar

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

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

or try this:

Build OpenCPN without Plugins. Install the dmg, and get it running.

Then, build with PlugIns, however that may be done. Before installing/bundling, find and copy the PlugIn dylibs to the correct runtime directory manually. Then run your previously installed O. Prove to yourself that the PlugIns just built will actually link and run.

If they do run, then we (just) have a packaging problem. If they fail to link and run, then we have a PlugIn compile/link problem.

This would be instructive, I think.


Dave
Dave:
As I mentioned earlier even if I build with the plugins disabled I still get the same errors and it does not finish creating the DMG file. So I cannot try this technique.

Thanks,
Freddie
__________________

__________________
sbfreddie is offline   Reply With Quote
Reply

Tags
opencpn

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




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 11:15.


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.