Re: [wxVTK] Problems on Mac OS 10.5 and wxWidgets 2.8.7
Brought to you by:
malat
From: Mathieu M. <mat...@gm...> - 2008-08-14 08:27:46
|
resending to wxVTK list On Wed, Aug 13, 2008 at 6:15 AM, Doug McCorkle <mc...@ia...> wrote: > > On Aug 12, 2008, at 11:07 PM, Doug McCorkle wrote: > >> >> On Aug 10, 2008, at 5:20 PM, Mathieu Malaterre wrote: >> >>> On Sat, Aug 9, 2008 at 3:46 PM, Doug McCorkle <mc...@ia...> wrote: >>>>> >>>>> 3. You are using Cocoa apparently, did you build VTK with cocoa on ? >>>>> >>>> Yes. >>>> >>>> Also, currently we are just compiling in the wxVTK classes into our app. >>>> I >>>> tried to build wxVTK on my make through CMake 2.6 but get this error: >>>> >>>> CMake Error at CMakeLists.txt:114 (INSTALL): >>>> install TARGETS given no BUNDLE DESTINATION for MACOSX_BUNDLE executable >>>> target "wxSplitSample". >>> >>> install targets are not really needed. If the exe builds, I just >>> wanted you to toy with them, to check it is working ok on your system. >> >> OK. I now get: >> >> mccdo:build mccdo$ make >> Scanning dependencies of target wxImagePlaneWidget >> [ 10%] Building CXX object >> CMakeFiles/wxImagePlaneWidget.dir/Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/wxVTK/Sample/wxImagePlaneWidget.cxx.o >> [ 20%] 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:36: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:379: >> error: 'vtkCarbonRenderWindow' was not declared in this scope >> >> /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/wxVTK/src/wxVTKRenderWindowInteractor.cxx:379: >> error: 'rwin' was not declared in this scope >> >> /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/wxVTK/src/wxVTKRenderWindowInteractor.cxx:379: >> 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 >> mccdo:build mccdo$ > > After these changes: > > 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 > } > mccdo:wxVTK mccdo$ > > I get this error: > > mccdo: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 > Linking CXX executable > /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build/wxImagePlaneWidget.app/Contents/MacOS/wxImagePlaneWidget > ld: library not found for -lcrt1.10.5.o > collect2: ld returned 1 exit status > make[2]: *** > [/Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build/wxImagePlaneWidget.app/Contents/MacOS/wxImagePlaneWidget] > Error 1 > make[1]: *** [CMakeFiles/wxImagePlaneWidget.dir/all] Error 2 > make: *** [all] Error 2 > mccdo:build mccdo$ > > Doug > > > > -- Mathieu |