Re: [wxVTK] Problems on Mac OS 10.5 and wxWidgets 2.8.7
Brought to you by:
malat
From: Doug M. <mc...@ia...> - 2008-08-14 22:04:31
|
On Aug 14, 2008, at 9:54 AM, Mathieu Malaterre wrote: > On Thu, Aug 14, 2008 at 4:52 PM, Mathieu Malaterre > <mat...@gm...> wrote: >> On Thu, Aug 14, 2008 at 4:42 PM, Doug McCorkle <mc...@ia...> >> wrote: >>> I know get: >> >> s/know/now/ >> >>> eonidas:build mccdo$ make >>> [ 10%] Building CXX object >>> CMakeFiles/wxImagePlaneWidget.dir/Volumes/data/Volumes/data/ >>> Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/wxVTK/src/ >>> wxVTKRenderWindowInteractor.cxx.o >>> /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/ >>> wxVTK/wxVTK/src/wxVTKRenderWindowInteractor.cxx:39:35: >>> error: vtkCarbonRenderWindow.h: No such file or directory >>> /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/ >>> wxVTK/wxVTK/src/wxVTKRenderWindowInteractor.cxx: >>> In member function 'void >>> wxVTKRenderWindowInteractor::OnPaint(wxPaintEvent&)': >>> /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/ >>> wxVTK/wxVTK/src/wxVTKRenderWindowInteractor.cxx:390: >>> error: 'vtkCarbonRenderWindow' was not declared in this scope >>> /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/ >>> wxVTK/wxVTK/src/wxVTKRenderWindowInteractor.cxx:390: >>> error: 'rwin' was not declared in this scope >>> /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/ >>> wxVTK/wxVTK/src/wxVTKRenderWindowInteractor.cxx:390: >>> error: 'vtkCarbonRenderWindow' is not a class or namespace >>> make[2]: *** >>> [CMakeFiles/wxImagePlaneWidget.dir/Volumes/data/Volumes/data/ >>> Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/wxVTK/src/ >>> wxVTKRenderWindowInteractor.cxx.o] >>> Error 1 >>> make[1]: *** [CMakeFiles/wxImagePlaneWidget.dir/all] Error 2 >>> make: *** [all] Error 2 >>> leonidas:build mccdo$ >> >> How is that even possible ? Why isn't __WXCOCOA__ defined in your wx >> build ? How did you built wx ? >> >> According to documentation in wx/platform.h I can read: >> >> /* >> WXMAC variants >> __WXMAC_CLASSIC__ means ppc non-carbon builds, __WXMAC_CARBON__ >> means >> carbon API available (mach or cfm builds) , __WXMAC_OSX__ means >> mach-o >> builds, running under 10.2 + only >> */ >> >> which one of those #define is set in your build ? >> >> Thanks >> -- >> Mathieu >> > > Ah, I see, I misread the doc it should have been '__WXMAC_CLASSIC__' > right ? > > http://wxvtk.cvs.sourceforge.net/wxvtk/wxVTK/src/wxVTKRenderWindowInteractor.cxx?r1=1.40&r2=1.41 I got everything built now. I just told cmake to use the 10.5 sdk not the 10.4. Anyway, I now get this when running a sample: leonidas:build mccdo$ ./wxImagePlaneWidget.app/Contents/MacOS/ wxImagePlaneWidget ERROR: In /Volumes/data/VE_Suite_Deps/VTK_new/VTK/IO/ vtkVolume16Reader.cxx, line 355 vtkVolume16Reader (0x3571a00): Can't find file: ../../../../VTKData/ Data/headsq/quarter.1 Warning: In /Volumes/data/VE_Suite_Deps/VTK_new/VTK/Rendering/ vtkCocoaRenderWindow.h, line 138 vtkCocoaRenderWindow (0x35716c0): SetNextWindowId not implemented (WindowRemap not implemented). Warning: In /Volumes/data/VE_Suite_Deps/VTK_new/VTK/Rendering/ vtkCocoaRenderWindow.mm, line 813 vtkCocoaRenderWindow (0x35716c0): Can't remap the window. 2008-08-14 17:01:02.903 wxImagePlaneWidget[47823:10b] invalid drawable 2008-08-14 17:01:02.938 wxImagePlaneWidget[47823:10b] invalid drawable ERROR: In /Volumes/data/VE_Suite_Deps/VTK_new/VTK/Rendering/ vtkInteractorStyle.cxx, line 392 vtkInteractorStyleJoystickCamera (0x3567600): Timer start failed leonidas:build mccdo$ ./wxImagePlaneWidget.app/Contents/MacOS/ wxImagePlaneWidget ERROR: In /Volumes/data/VE_Suite_Deps/VTK_new/VTK/IO/ vtkVolume16Reader.cxx, line 355 vtkVolume16Reader (0x356ffa0): Can't find file: ../../../../VTKData/ Data/headsq/quarter.1 Warning: In /Volumes/data/VE_Suite_Deps/VTK_new/VTK/Rendering/ vtkCocoaRenderWindow.h, line 138 vtkCocoaRenderWindow (0x356fc60): SetNextWindowId not implemented (WindowRemap not implemented). Warning: In /Volumes/data/VE_Suite_Deps/VTK_new/VTK/Rendering/ vtkCocoaRenderWindow.mm, line 813 vtkCocoaRenderWindow (0x356fc60): Can't remap the window. 2008-08-14 17:02:08.366 wxImagePlaneWidget[47828:10b] invalid drawable 2008-08-14 17:02:08.371 wxImagePlaneWidget[47828:10b] invalid drawable And I see two windows which does not seem correct. Doug |