So I don't pollute the 2.2 beta issues thread.
Okay, I downloaded wxWidgets, and built it in debug mode (2.9) using Cocoa instead of Carbon. So I should be able to step through code that crashes, once I figure out how to get it to link against that version.
On the other thing (plugins not building), as promisted, here's some build output:
Ld buildosx/plugins/celestial_navigation_pi/src/Debug/libcelestial_navigation_pi.dylib normal i386
cd /Users/rmartell/opensrc/opencpn
setenv MACOSX_DEPLOYMENT_TARGET 10.6
/Developer/usr/bin/g++-4.2 -arch i386 -dynamiclib -isysroot /Developer/SDKs/MacOSX10.6.sdk -L/Users/rmartell/opensrc/opencpn/buildosx/plugins/celestial_navigation_pi/src/Debug -F/Users/rmartell/opensrc/opencpn/buildosx/plugins/celestial_navigation_pi/src/Debug -filelist /Users/rmartell/opensrc/opencpn/buildosx/plugins/celestial_navigation_pi/src/OpenCPN.build/Debug/celestial_navigation_pi.build/Objects-normal/i386/celestial_navigation_pi.LinkFileList -install_name /Users/rmartell/opensrc/opencpn/buildosx/plugins/celestial_navigation_pi/src/Debug/libcelestial_navigation_pi.dylib -mmacosx-version-min=10.6 -dynamiclib -headerpad_max_install_names -framework IOKit -framework Carbon -framework Cocoa -framework System -framework QuickTime -framework OpenGL -framework AGL -lwx_macud-2.8 -single_module -o /Users/rmartell/opensrc/opencpn/buildosx/plugins/celestial_navigation_pi/src/Debug/libcelestial_navigation_pi.dylib
Undefined symbols:
"wxBoundingBox::wxBoundingBox()", referenced from:
LLBBox::LLBBox()in sight.o
"opencpn_plugin::SetCursorLatLon(double, double)", referenced from:
vtable for celestial_navigation_piin celestial_navigation_pi.o
"opencpn_plugin::SetupToolboxPanel(int, wxNotebook*)", referenced from:
vtable for celestial_navigation_piin celestial_navigation_pi.o
"wxBoundingBox::Intersect(wxBoundingBox&, double)", referenced from:
Sight:
rawPolygon(wxDC&, ViewPort&, wxRealPointList&) in sight.o
"opencpn_plugin::SetNMEASentence(wxString&)", referenced from:
vtable for celestial_navigation_piin celestial_navigation_pi.o
"wxBoundingBox::~wxBoundingBox()", referenced from:
LLBBox::~LLBBox()in sight.o
"vtable for LLBBox", referenced from:
__ZTV6LLBBox$non_lazy_ptr in sight.o
(maybe you meant: __ZTV6LLBBox$non_lazy_ptr)
"_ll_gc_ll", referenced from:
Sight::BearingPoint(wxDateTime, double, double, double&, double&)in sight.o
Sight:
istancePoint(wxDateTime, double, double)in sight.o
"opencpn_plugin::OnToolbarToolCallback(int)", referenced from:
vtable for celestial_navigation_piin celestial_navigation_pi.o
"_g_SData_Locn", referenced from:
_g_SData_Locn$non_lazy_ptr in sight.o
(maybe you meant: _g_SData_Locn$non_lazy_ptr)
"_SetCanvasContextMenuItemViz", referenced from:
celestial_navigation_pi::OnContextMenuItemCallback (int) in celestial_navigation_pi.o
celestial_navigation_pi::OnContextMenuItemCallback (int) in celestial_navigation_pi.o
celestial_navigation_pi::OnContextMenuItemCallback (int) in celestial_navigation_pi.o
celestial_navigation_pi::OnContextMenuItemCallback (int) in celestial_navigation_pi.o
celestial_navigation_pi::Init() in celestial_navigation_pi.o
celestial_navigation_pi::Init() in celestial_navigation_pi.o
"GetGlobalColor(wxString)", referenced from:
SightDialog::SetColorScheme(ColorScheme) in sightdialog.o
SightDialog::SetColorScheme(ColorScheme) in sightdialog.o
SightDialog::SetColorScheme(ColorScheme) in sightdialog.o
"opencpn_plugin::GetToolboxPanelCount()", referenced from:
vtable for celestial_navigation_piin celestial_navigation_pi.o
"opencpn_plugin::RenderOverlay(wxMemoryDC*, PlugIn_ViewPort*)", referenced from:
vtable for celestial_navigation_piin celestial_navigation_pi.o
"opencpn_plugin::OnCloseToolboxPanel(int, int)", referenced from:
vtable for celestial_navigation_piin celestial_navigation_pi.o
"_AddCanvasContextMenuItem", referenced from:
celestial_navigation_pi::Init() in celestial_navigation_pi.o
celestial_navigation_pi::Init() in celestial_navigation_pi.o
"_ll_gc_ll_reverse", referenced from:
Sight::BearingPoint(wxDateTime, double, double, double&, double&)in sight.o
Sight::BuildBearingLineOfPosition(double, double, double, double, double, double, double, double, double)in sight.o
"opencpn_plugin::SetPositionFix(PlugIn_Position_Fi x&)", referenced from:
vtable for celestial_navigation_piin celestial_navigation_pi.o
"wxBoundingBox::Expand(double, double)", referenced from:
Sight:
rawPolygon(wxDC&, ViewPort&, wxRealPointList&) in sight.o
"vtable for opencpn_plugin", referenced from:
__ZTV14opencpn_plugin$non_lazy_ptr in celestial_navigation_pi.o
(maybe you meant: __ZTV14opencpn_plugin$non_lazy_ptr)
"ChartCanvas::GetCanvasPointPix(double, double, wxPoint*)", referenced from:
Sight:
rawPolygon(wxDC&, ViewPort&, wxRealPointList&) in sight.o
"_cc1", referenced from:
_cc1$non_lazy_ptr in celestialnavigationdialog.o
_cc1$non_lazy_ptr in sight.o
(maybe you meant: _cc1$non_lazy_ptr)
"typeinfo for opencpn_plugin", referenced from:
typeinfo for celestial_navigation_piin celestial_navigation_pi.o
"_GetOCPNCanvasWindow", referenced from:
celestial_navigation_pi::Init() in celestial_navigation_pi.o
"opencpn_plugin::GetToolbarToolCount()", referenced from:
vtable for celestial_navigation_piin celestial_navigation_pi.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
AND:
(on this one, gzopen and whatnot is b/c libz isn't included- which is a cmake issue, right?)
Ld buildosx/plugins/grib_pi/src/Debug/libgrib_pi.dylib normal i386
cd /Users/rmartell/opensrc/opencpn
setenv MACOSX_DEPLOYMENT_TARGET 10.6
/Developer/usr/bin/g++-4.2 -arch i386 -dynamiclib -isysroot /Developer/SDKs/MacOSX10.6.sdk -L/Users/rmartell/opensrc/opencpn/buildosx/plugins/grib_pi/src/Debug -F/Users/rmartell/opensrc/opencpn/buildosx/plugins/grib_pi/src/Debug -filelist /Users/rmartell/opensrc/opencpn/buildosx/plugins/grib_pi/src/OpenCPN.build/Debug/grib_pi.build/Objects-normal/i386/grib_pi.LinkFileList -install_name /Users/rmartell/opensrc/opencpn/buildosx/plugins/grib_pi/src/Debug/libgrib_pi.dylib -mmacosx-version-min=10.6 -dynamiclib -headerpad_max_install_names -framework IOKit -framework Carbon -framework Cocoa -framework System -framework QuickTime -framework OpenGL -framework AGL -lwx_macud-2.8 -single_module -o /Users/rmartell/opensrc/opencpn/buildosx/plugins/grib_pi/src/Debug/libgrib_pi.dylib
Undefined symbols:
"_gzopen", referenced from:
_zu_open in zuFile.o
"_GetOCPNConfigObject", referenced from:
grib_pi::Init() in grib_pi.o
"_gzread", referenced from:
_zu_read in zuFile.o
"opencpn_plugin::SetNMEASentence(wxString&)", referenced from:
vtable for grib_piin grib_pi.o
"_gzseek", referenced from:
_zu_seek in zuFile.o
_zu_seek in zuFile.o
"_InsertPlugInTool", referenced from:
grib_pi::OnCloseToolboxPanel(int, int)in grib_pi.o
grib_pi::Init() in grib_pi.o
"_gztell", referenced from:
_zu_seek in zuFile.o
_zu_seek in zuFile.o
"_GetCanvasLLPix", referenced from:
GRIBOverlayFactory::RenderGribCurrent(GribRecord*, GribRecord*, wxMemoryDC*, PlugIn_ViewPort*)in grib.o
GRIBOverlayFactory::RenderGribSeaTemp(GribRecord*, wxMemoryDC*, PlugIn_ViewPort*) in grib.o
GRIBOverlayFactory::RenderGribCRAIN(GribRecord*, wxMemoryDC*, PlugIn_ViewPort*) in grib.o
GRIBOverlayFactory::RenderGribSigWh(GribRecord*, wxMemoryDC*, PlugIn_ViewPort*) in grib.o
"opencpn_plugin::OnContextMenuItemCallback(int )", referenced from:
vtable for grib_piin grib_pi.o
"_GetCanvasPixLL", referenced from:
GRIBOverlayFactory::RenderGribCurrent(GribRecord*, GribRecord*, wxMemoryDC*, PlugIn_ViewPort*)in grib.o
GRIBOverlayFactory::RenderGribCurrent(GribRecord*, GribRecord*, wxMemoryDC*, PlugIn_ViewPort*)in grib.o
GRIBOverlayFactory::RenderGribCurrent(GribRecord*, GribRecord*, wxMemoryDC*, PlugIn_ViewPort*)in grib.o
GRIBOverlayFactory::RenderGribSeaTemp(GribRecord*, wxMemoryDC*, PlugIn_ViewPort*) in grib.o
GRIBOverlayFactory::RenderGribSeaTemp(GribRecord*, wxMemoryDC*, PlugIn_ViewPort*) in grib.o
GRIBOverlayFactory::RenderGribSeaTemp(GribRecord*, wxMemoryDC*, PlugIn_ViewPort*) in grib.o
GRIBOverlayFactory::RenderGribCRAIN(GribRecord*, wxMemoryDC*, PlugIn_ViewPort*) in grib.o
GRIBOverlayFactory::RenderGribCRAIN(GribRecord*, wxMemoryDC*, PlugIn_ViewPort*) in grib.o
GRIBOverlayFactory::RenderGribCRAIN(GribRecord*, wxMemoryDC*, PlugIn_ViewPort*) in grib.o
GRIBOverlayFactory::RenderGribSigWh(GribRecord*, wxMemoryDC*, PlugIn_ViewPort*) in grib.o
GRIBOverlayFactory::RenderGribSigWh(GribRecord*, wxMemoryDC*, PlugIn_ViewPort*) in grib.o
GRIBOverlayFactory::RenderGribSigWh(GribRecord*, wxMemoryDC*, PlugIn_ViewPort*) in grib.o
GRIBOverlayFactory::RenderGribWvDir(GribRecord*, wxMemoryDC*, PlugIn_ViewPort*) in grib.o
GRIBOverlayFactory::RenderGribWvDir(GribRecord*, wxMemoryDC*, PlugIn_ViewPort*) in grib.o
GRIBOverlayFactory::RenderGribWind(GribRecord*, GribRecord*, wxMemoryDC*, PlugIn_ViewPort*)in grib.o
GRIBOverlayFactory::RenderGribWind(GribRecord*, GribRecord*, wxMemoryDC*, PlugIn_ViewPort*)in grib.o
GRIBOverlayFactory::RenderGribScatWind(GribRecord* , GribRecord*, wxMemoryDC*, PlugIn_ViewPort*)in grib.o
GRIBOverlayFactory::RenderGribScatWind(GribRecord* , GribRecord*, wxMemoryDC*, PlugIn_ViewPort*)in grib.o
"_gzclose", referenced from:
_zu_close in zuFile.o
"opencpn_plugin::SetPositionFix(PlugIn_Position_Fi x&)", referenced from:
vtable for grib_piin grib_pi.o
"_RemovePlugInTool", referenced from:
grib_pi::OnCloseToolboxPanel(int, int)in grib_pi.o
"vtable for opencpn_plugin", referenced from:
__ZTV14opencpn_plugin$non_lazy_ptr in grib_pi.o
(maybe you meant: __ZTV14opencpn_plugin$non_lazy_ptr)
"typeinfo for opencpn_plugin", referenced from:
typeinfo for grib_piin grib_pi.o
"_GetOCPNCanvasWindow", referenced from:
grib_pi::Init() in grib_pi.o
"_GetGlobalColor", referenced from:
GRIBOverlayFactory::RenderGribWvDir(GribRecord*, wxMemoryDC*, PlugIn_ViewPort*) in grib.o
GRIBOverlayFactory::RenderGribWind(GribRecord*, GribRecord*, wxMemoryDC*, PlugIn_ViewPort*)in grib.o
"_RequestRefresh", referenced from:
GRIBUIDialog::SetFactoryOptions() in grib.o
GRIBUIDialog::SetGribRecordSet(GribRecordSet*) in grib.o
GRIBUIDialog::OnClose(wxCloseEvent&) in grib.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
AND:
Ld buildosx/plugins/demo_pi/src/Debug/libdemo_pi.dylib normal i386
cd /Users/rmartell/opensrc/opencpn
setenv MACOSX_DEPLOYMENT_TARGET 10.6
/Developer/usr/bin/g++-4.2 -arch i386 -dynamiclib -isysroot /Developer/SDKs/MacOSX10.6.sdk -L/Users/rmartell/opensrc/opencpn/buildosx/plugins/demo_pi/src/Debug -F/Users/rmartell/opensrc/opencpn/buildosx/plugins/demo_pi/src/Debug -filelist /Users/rmartell/opensrc/opencpn/buildosx/plugins/demo_pi/src/OpenCPN.build/Debug/demo_pi.build/Objects-normal/i386/demo_pi.LinkFileList -install_name /Users/rmartell/opensrc/opencpn/buildosx/plugins/demo_pi/src/Debug/libdemo_pi.dylib -mmacosx-version-min=10.6 -dynamiclib -headerpad_max_install_names -framework IOKit -framework Carbon -framework Cocoa -framework System -framework QuickTime -framework OpenGL -framework AGL -lwx_macud-2.8 -single_module -o /Users/rmartell/opensrc/opencpn/buildosx/plugins/demo_pi/src/Debug/libdemo_pi.dylib
Undefined symbols:
"opencpn_plugin::OnCloseToolboxPanel(int, int)", referenced from:
vtable for demo_piin demo_pi.o
"typeinfo for opencpn_plugin", referenced from:
typeinfo for demo_piin demo_pi.o
"opencpn_plugin::OnToolbarToolCallback(int)", referenced from:
vtable for demo_piin demo_pi.o
"opencpn_plugin::GetToolboxPanelCount()", referenced from:
vtable for demo_piin demo_pi.o
"opencpn_plugin::RenderOverlay(wxMemoryDC*, PlugIn_ViewPort*)", referenced from:
vtable for demo_piin demo_pi.o
"vtable for opencpn_plugin", referenced from:
__ZTV14opencpn_plugin$non_lazy_ptr in demo_pi.o
(maybe you meant: __ZTV14opencpn_plugin$non_lazy_ptr)
"opencpn_plugin::SetupToolboxPanel(int, wxNotebook*)", referenced from:
vtable for demo_piin demo_pi.o
"opencpn_plugin::SetCursorLatLon(double, double)", referenced from:
vtable for demo_piin demo_pi.o
"_SetCanvasContextMenuItemViz", referenced from:
demo_pi::OnContextMenuItemCallback(int) in demo_pi.o
demo_pi::OnContextMenuItemCallback(int) in demo_pi.o
demo_pi::OnContextMenuItemCallback(int) in demo_pi.o
demo_pi::OnContextMenuItemCallback(int) in demo_pi.o
demo_pi::Init() in demo_pi.o
demo_pi::Init() in demo_pi.o
"opencpn_plugin::GetToolbarToolCount()", referenced from:
vtable for demo_piin demo_pi.o
"_GetOCPNCanvasWindow", referenced from:
demo_pi::Init() in demo_pi.o
"opencpn_plugin::SetPositionFix(PlugIn_Position_Fi x&)", referenced from:
vtable for demo_piin demo_pi.o
"_AddCanvasContextMenuItem", referenced from:
demo_pi::Init() in demo_pi.o
demo_pi::Init() in demo_pi.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
I was able to build wxWidgets monolithically, which yields one huge library. I might be able to package that as a framework, and get a build. Plus, I can build that for i386, so I could possibly get a build others could use.
Let me know if you have suggestions on these link issues.
Thanks!
-Ryan