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 14:42:43
|
On Aug 14, 2008, at 3:27 AM, Mathieu Malaterre wrote: > On Wed, Aug 13, 2008 at 10:24 AM, Mathieu Malaterre > <mat...@gm...> wrote: >> Doug, >> >> On Wed, Aug 13, 2008 at 6:15 AM, Doug McCorkle <mc...@ia...> >> wrote: >> >> >>> mccdo:wxVTK mccdo$ cvs diff -u . >>> cvs diff: Diffing . >>> cvs diff: Diffing Modules >>> cvs diff: Diffing Sample >>> cvs diff: Diffing oldbin >>> cvs diff: Diffing src >>> Index: src/wxVTKRenderWindowInteractor.cxx >>> =================================================================== >>> RCS file: /cvsroot/wxvtk/wxVTK/src/wxVTKRenderWindowInteractor.cxx,v >>> retrieving revision 1.40 >>> diff -u -r1.40 wxVTKRenderWindowInteractor.cxx >>> --- src/wxVTKRenderWindowInteractor.cxx 10 Aug 2008 23:00:36 >>> -0000 1.40 >>> +++ src/wxVTKRenderWindowInteractor.cxx 13 Aug 2008 04:13:33 -0000 >>> @@ -33,7 +33,7 @@ >>> #include "vtkDebugLeaks.h" >>> >>> #ifdef __WXMAC__ >>> -#include "vtkCarbonRenderWindow.h" >>> +#include "vtkCocoaRenderWindow.h" >>> #endif >>> >>> //Keep this for compatibilty reason, this was introduced in wxGTK >>> 2.4.0 >>> @@ -376,10 +376,10 @@ >>> #ifdef __WXMAC__ >>> // This solves a problem with repainting after a window resize >>> // See also: >>> http://sourceforge.net/mailarchive/forum.php?thread_id=31690967&forum_id=41789 >>> - vtkCarbonRenderWindow* rwin = >>> vtkCarbonRenderWindow::SafeDownCast(RenderWindow); >>> + vtkCocoaRenderWindow* rwin = >>> vtkCocoaRenderWindow::SafeDownCast(RenderWindow); >>> if( rwin ) >>> { >>> - rwin->UpdateGLRegion(); >>> + rwin->UpdateContext(); >>> } >>> #endif >>> } >> >> If you get a chance, please try the version from CVS HEAD, it should >> work for both the Mac/Carbon and the Mac/Cocoa now. >> >> $ cvs ci -m"COMP: Fix compilation problem on Mac+Cocoa builds. Thanks >> to Doug McCorkle for report & patch" >> Checking in wxVTKRenderWindowInteractor.cxx; >> /cvsroot/wxvtk/wxVTK/src/wxVTKRenderWindowInteractor.cxx,v <-- >> wxVTKRenderWindowInteractor.cxx >> new revision: 1.41; previous revision: 1.40 >> done >> >> I know get: 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$ Doug |