Thread: [wxVTK] Problems on Mac OS 10.5 and wxWidgets 2.8.7
Brought to you by:
malat
From: Doug M. <mc...@ia...> - 2008-08-09 02:21:21
|
Hello, I have an application that is built on Mac OS 10.5 with wxWidgets 2.8.7 and VTK 5.2. When the wxVTK windows are created I get this error: 2008-08-08 21:15:48.815 FinanceViewer[1323:10b] *** -[NSHIObject userSpaceScaleFactor]: unrecognized selector sent to instance 0x329e3c0 2008-08-08 21:15:48.817 FinanceViewer[1323:10b] HIToolbox: ignoring exception '*** -[NSHIObject userSpaceScaleFactor]: unrecognized selector sent to instance 0x329e3c0' that raised inside Carbon event dispatch 2008-08-08 21:16:43.929 FinanceViewer[1323:10b] *** -[NSHIObject userSpaceScaleFactor]: unrecognized selector sent to instance 0x32b1710 2008-08-08 21:16:43.930 FinanceViewer[1323:10b] HIToolbox: ignoring exception '*** -[NSHIObject userSpaceScaleFactor]: unrecognized selector sent to instance 0x32b1710' that raised inside Carbon event dispatch And the windows do not render properly. Any suggestions on what to do to debug the problem? Is anyone successfully using wxVTK with a similar software configuration? Also, I am using the latest released version of wxVTK. Thanks for the help. Doug |
From: Mathieu M. <mat...@gm...> - 2008-08-09 07:37:00
|
Hi Doug, A couple of question first: 1. Did you get the examples working (from wxVTK dist) ? 2. did you try any other wx version working ? 3. You are using Cocoa apparently, did you build VTK with cocoa on ? Sorry if those are dumb questions, but I need to know those kind of things first. Thanks -Mathieu On Sat, Aug 9, 2008 at 4:21 AM, Doug McCorkle <mc...@ia...> wrote: > Hello, > > I have an application that is built on Mac OS 10.5 with wxWidgets > 2.8.7 and VTK 5.2. When the wxVTK windows are created I get this error: > > 2008-08-08 21:15:48.815 FinanceViewer[1323:10b] *** -[NSHIObject > userSpaceScaleFactor]: unrecognized selector sent to instance 0x329e3c0 > 2008-08-08 21:15:48.817 FinanceViewer[1323:10b] HIToolbox: ignoring > exception '*** -[NSHIObject userSpaceScaleFactor]: unrecognized > selector sent to instance 0x329e3c0' that raised inside Carbon event > dispatch > 2008-08-08 21:16:43.929 FinanceViewer[1323:10b] *** -[NSHIObject > userSpaceScaleFactor]: unrecognized selector sent to instance 0x32b1710 > 2008-08-08 21:16:43.930 FinanceViewer[1323:10b] HIToolbox: ignoring > exception '*** -[NSHIObject userSpaceScaleFactor]: unrecognized > selector sent to instance 0x32b1710' that raised inside Carbon event > dispatch > > And the windows do not render properly. Any suggestions on what to do > to debug the problem? Is anyone successfully using wxVTK with a > similar software configuration? Also, I am using the latest released > version of wxVTK. Thanks for the help. > > Doug > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Wxvtk-users mailing list > Wxv...@li... > https://lists.sourceforge.net/lists/listinfo/wxvtk-users > -- Mathieu |
From: Mathieu M. <mat...@gm...> - 2008-08-10 22:20:46
|
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. Anyway this is fixed in CVS HEAD: $ cvs ci -m"ENH: cmake 2.6 wants a bundle dest now" ~/Projects/wxVTK Checking in CMakeLists.txt; /cvsroot/wxvtk/wxVTK/CMakeLists.txt,v <-- CMakeLists.txt new revision: 1.29; previous revision: 1.28 done Index: CMakeLists.txt =================================================================== RCS file: /cvsroot/wxvtk/wxVTK/CMakeLists.txt,v retrieving revision 1.28 diff -u -r1.28 CMakeLists.txt --- CMakeLists.txt 1 Jun 2008 21:12:47 -0000 1.28 +++ CMakeLists.txt 10 Aug 2008 22:18:14 -0000 @@ -114,6 +114,7 @@ INSTALL(TARGETS wxSplitSample wxSample wxImagePlaneWidget wxImageViewer wxMedical3 RUNTIME DESTINATION bin + BUNDLE DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib/static ) -- Mathieu |
From: Mathieu M. <mat...@gm...> - 2008-08-10 22:46:45
|
Doug, One last question, what do you mean by: On Sat, Aug 9, 2008 at 4:21 AM, Doug McCorkle <mc...@ia...> wrote: > And the windows do not render properly. Does it segfault ? Do you get a black/white screen ? Is it scrambled ? I did dive into the core of wxVTK and I think I am doing the right things (I do not have a MacOSX system to check). But basically vtkCocoaRenderWindow expect: - the NSView to be a 'DisplayId' - the NSWindow to be a 'WindowId' Everything is being setup in wxVTK::OnPaint(). Worse case scenario is that the NSView needs to be explicitily passed (not done currently): Something along the line: wxVTK::OnPaint() { ... wxTopLevelWindowCocoa toplevel = this->GetTopLevel() WX_NSWindow nswin = toplevel->GetNSWindow(); this->SetWindowId( nswin ); ... } the this->DisplayId is handle using the internal this->GetWindowHack implementation Let me know if this makes any sense for you, -- Mathieu |
From: Doug M. <mc...@ia...> - 2008-08-10 23:26:36
|
On Aug 10, 2008, at 5:46 PM, "Mathieu Malaterre" <mat...@gm... > wrote: > Doug, > > One last question, what do you mean by: > > On Sat, Aug 9, 2008 at 4:21 AM, Doug McCorkle <mc...@ia...> > wrote: >> And the windows do not render properly. > > Does it segfault ? > Do you get a black/white screen ? > Is it scrambled ? > I get a blank window. > I did dive into the core of wxVTK and I think I am doing the right > things (I do not have a MacOSX system to check). But basically > vtkCocoaRenderWindow expect: > > - the NSView to be a 'DisplayId' > - the NSWindow to be a 'WindowId' > > Everything is being setup in wxVTK::OnPaint(). Worse case scenario is > that the NSView needs to be explicitily passed (not done currently): > > Something along the line: > > wxVTK::OnPaint() > { > ... > wxTopLevelWindowCocoa toplevel = this->GetTopLevel() > WX_NSWindow nswin = toplevel->GetNSWindow(); > this->SetWindowId( nswin ); > ... > } > > the this->DisplayId is handle using the internal this->GetWindowHack > implementation > > Let me know if this makes any sense for you, > -- > Mathieu Everything makes sense and looks fine. I am not sure what is going on. Doug |
From: Mathieu M. <mat...@gm...> - 2008-08-14 08:26:30
|
oooops resending (sent to wrong ML) On Wed, Aug 13, 2008 at 9:43 AM, Mathieu Malaterre <mat...@gm...> wrote: > On Wed, Aug 13, 2008 at 9:40 AM, Mathieu Malaterre > <mat...@gm...> wrote: >> Hi Doug, >> >> Sorry answering your email, in out-of-order mode: >> >> On Wed, Aug 13, 2008 at 6:15 AM, Doug McCorkle <mc...@ia...> wrote: >>> 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$ >> >> Does this help: >> http://lists.apple.com/archives/Xcode-users/2007/Oct/msg00696.html > > Or this one; > http://steel-wheels-project.blogspot.com/2008/02/build-doxygen-on-mac-os-x-1051-leopard.html > > Please send the output of : > > make VERBOSE=1 > > so that I can see what path are being passed to the linker. > > > > Thanks, > -- > Mathieu > -- Mathieu |
From: Mathieu M. <mat...@gm...> - 2008-08-14 08:26:44
|
On Wed, Aug 13, 2008 at 9:40 AM, Mathieu Malaterre <mat...@gm...> wrote: > Hi Doug, > > Sorry answering your email, in out-of-order mode: > > On Wed, Aug 13, 2008 at 6:15 AM, Doug McCorkle <mc...@ia...> wrote: >> 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$ > > Does this help: > http://lists.apple.com/archives/Xcode-users/2007/Oct/msg00696.html > > > -- > Mathieu > -- Mathieu |
From: Mathieu M. <mat...@gm...> - 2008-08-14 08:27:03
|
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 > > > Thanks for patch > -- > Mathieu > -- Mathieu |
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 |
From: Doug M. <mc...@ia...> - 2008-08-14 14:39:11
|
On Aug 14, 2008, at 3:26 AM, Mathieu Malaterre wrote: > oooops resending (sent to wrong ML) > > On Wed, Aug 13, 2008 at 9:43 AM, Mathieu Malaterre > <mat...@gm...> wrote: >> On Wed, Aug 13, 2008 at 9:40 AM, Mathieu Malaterre >> <mat...@gm...> wrote: >>> Hi Doug, >>> >>> Sorry answering your email, in out-of-order mode: >>> >>> On Wed, Aug 13, 2008 at 6:15 AM, Doug McCorkle <mc...@ia...> >>> wrote: >>>> 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$ >>> >>> Does this help: >>> http://lists.apple.com/archives/Xcode-users/2007/Oct/msg00696.html >> >> Or this one; >> http://steel-wheels-project.blogspot.com/2008/02/build-doxygen-on-mac-os-x-1051-leopard.html >> >> Please send the output of : >> >> make VERBOSE=1 >> >> so that I can see what path are being passed to the linker. >> >> Here is what I get: leonidas:build mccdo$ make VERBOSE=1 "/Volumes/data/stuff/data/VE_Suite_Tools/CMake/cmake-2.6.0-Darwin- universal/CMake 2.6-0.app/Contents/bin/cmake" -H/Volumes/data/Volumes/ data/stuff/data/VE_Suite_Deps/wxVTK/wxVTK -B/Volumes/data/Volumes/data/ stuff/data/VE_Suite_Deps/wxVTK/build --check-build-system CMakeFiles/ Makefile.cmake 0 cd /Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build && "/Volumes/ data/stuff/data/VE_Suite_Tools/CMake/cmake-2.6.0-Darwin-universal/ CMake 2.6-0.app/Contents/bin/cmake" -E cmake_progress_start /Volumes/ data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build/CMakeFiles / Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/ build/CMakeFiles/progress.make cd /Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build && make -f CMakeFiles/Makefile2 all make -f CMakeFiles/wxImagePlaneWidget.dir/build.make CMakeFiles/ wxImagePlaneWidget.dir/depend cd /Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build && "/Volumes/data/stuff/data/VE_Suite_Tools/CMake/cmake-2.6.0-Darwin- universal/CMake 2.6-0.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/ wxVTK /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/ wxVTK/wxVTK /Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/ build /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/ wxVTK/build /Volumes/data/Volumes/data/Volumes/data/stuff/data/ VE_Suite_Deps/wxVTK/build/CMakeFiles/wxImagePlaneWidget.dir/ DependInfo.cmake --color= make -f CMakeFiles/wxImagePlaneWidget.dir/build.make CMakeFiles/ wxImagePlaneWidget.dir/build Linking CXX executable /Volumes/data/Volumes/data/Volumes/data/stuff/ data/VE_Suite_Deps/wxVTK/build/wxImagePlaneWidget.app/Contents/MacOS/ wxImagePlaneWidget cd /Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build && "/Volumes/data/stuff/data/VE_Suite_Tools/CMake/cmake-2.6.0-Darwin- universal/CMake 2.6-0.app/Contents/bin/cmake" -E cmake_link_script / Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build/ CMakeFiles/wxImagePlaneWidget.dir/link.txt --verbose=1 /usr/bin/c++ -isysroot /Developer/SDKs/MacOSX10.4u.sdk -no-cpp- precomp -D__WXMAC__ -O2 -g -Wl,-search_paths_first - headerpad_max_install_names -fPIC CMakeFiles/wxImagePlaneWidget.dir/ Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/ wxVTK/Sample/wxImagePlaneWidget.cxx.o CMakeFiles/ wxImagePlaneWidget.dir/Volumes/data/Volumes/data/Volumes/data/stuff/ data/VE_Suite_Deps/wxVTK/wxVTK/src/wxVTKRenderWindowInteractor.cxx.o - o /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/ wxVTK/build/wxImagePlaneWidget.app/Contents/MacOS/wxImagePlaneWidget - L/Volumes/data/stuff/data/VE_Suite_Deps/VTK_cvs/install-mac/lib -L/opt/ local/lib -L/opt/local/lib -framework IOKit -framework System - framework QuickTime -lwx_macu-2.8 -lvtkWidgets -lvtkHybrid - lvtkParallel -lvtkRendering -lvtkftgl -lvtkfreetype -framework Carbon - framework Cocoa -lvtkGraphics -lvtkImaging -lvtkIO -framework OpenGL - lvtkFiltering -lverdict -lvtkDICOMParser -lvtkexoIIc -lvtkNetCDF - lvtkmetaio -lvtksqlite -lvtkpng -lvtktiff -lvtkzlib -lvtkjpeg - lvtkexpat -lvtkCommon -lvtksys -lpthread -lm -L/opt/local/lib -L/opt/ local/lib -L/opt/local/lib -framework IOKit -framework Carbon - framework Cocoa -framework System -framework QuickTime -lwx_macu-2.8 - lvtkWidgets 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 Doug |
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 |
From: Mathieu M. <mat...@gm...> - 2008-08-14 14:46:48
|
Hi Doug, On Thu, Aug 14, 2008 at 4:38 PM, Doug McCorkle <mc...@ia...> wrote: > Here is what I get: > > leonidas:build mccdo$ make VERBOSE=1 > "/Volumes/data/stuff/data/VE_Suite_Tools/CMake/cmake-2.6.0-Darwin-universal/CMake > 2.6-0.app/Contents/bin/cmake" > -H/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/wxVTK > -B/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build > --check-build-system CMakeFiles/Makefile.cmake 0 > cd /Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build && > "/Volumes/data/stuff/data/VE_Suite_Tools/CMake/cmake-2.6.0-Darwin-universal/CMake > 2.6-0.app/Contents/bin/cmake" -E cmake_progress_start > /Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build/CMakeFiles > /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build/CMakeFiles/progress.make > cd /Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build && make -f > CMakeFiles/Makefile2 all > make -f CMakeFiles/wxImagePlaneWidget.dir/build.make > CMakeFiles/wxImagePlaneWidget.dir/depend > cd /Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build && > "/Volumes/data/stuff/data/VE_Suite_Tools/CMake/cmake-2.6.0-Darwin-universal/CMake > 2.6-0.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" > /Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/wxVTK > /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/wxVTK > /Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build > /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build > /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build/CMakeFiles/wxImagePlaneWidget.dir/DependInfo.cmake > --color= > make -f CMakeFiles/wxImagePlaneWidget.dir/build.make > CMakeFiles/wxImagePlaneWidget.dir/build > Linking CXX executable > /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build/wxImagePlaneWidget.app/Contents/MacOS/wxImagePlaneWidget > cd /Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build && > "/Volumes/data/stuff/data/VE_Suite_Tools/CMake/cmake-2.6.0-Darwin-universal/CMake > 2.6-0.app/Contents/bin/cmake" -E cmake_link_script > /Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build/CMakeFiles/wxImagePlaneWidget.dir/link.txt > --verbose=1 > /usr/bin/c++ -isysroot /Developer/SDKs/MacOSX10.4u.sdk -no-cpp-precomp > -D__WXMAC__ -O2 -g -Wl,-search_paths_first -headerpad_max_install_names > -fPIC > CMakeFiles/wxImagePlaneWidget.dir/Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/wxVTK/Sample/wxImagePlaneWidget.cxx.o > CMakeFiles/wxImagePlaneWidget.dir/Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/wxVTK/src/wxVTKRenderWindowInteractor.cxx.o > -o > /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build/wxImagePlaneWidget.app/Contents/MacOS/wxImagePlaneWidget > -L/Volumes/data/stuff/data/VE_Suite_Deps/VTK_cvs/install-mac/lib > -L/opt/local/lib -L/opt/local/lib -framework IOKit -framework System > -framework QuickTime -lwx_macu-2.8 -lvtkWidgets -lvtkHybrid -lvtkParallel > -lvtkRendering -lvtkftgl -lvtkfreetype -framework Carbon -framework Cocoa > -lvtkGraphics -lvtkImaging -lvtkIO -framework OpenGL -lvtkFiltering > -lverdict -lvtkDICOMParser -lvtkexoIIc -lvtkNetCDF -lvtkmetaio -lvtksqlite > -lvtkpng -lvtktiff -lvtkzlib -lvtkjpeg -lvtkexpat -lvtkCommon -lvtksys > -lpthread -lm -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -framework > IOKit -framework Carbon -framework Cocoa -framework System -framework > QuickTime -lwx_macu-2.8 -lvtkWidgets > 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 Ok then, let's try the solution suggested on: http://steel-wheels-project.blogspot.com/2008/02/build-doxygen-on-mac-os-x-1051-leopard.html Apparently using a recent cmake version you can do: export CMAKE_OSX_SYSROOT=/Developer/SDKs/MacOSX10.4u.sdk/usr/lib create an empty dir, and rerun cmake from scratch. It should now pick "sysroot /Developer/SDKs/MacOSX10.4u.sdk/usr/lib" instead of the old "sysroot /Developer/SDKs/MacOSX10.4u.sdk/" Let me know if this works for you, I have CC the cmake list in case someone wants to throw in something. -- Mathieu |
From: Doug M. <mc...@ia...> - 2008-08-14 15:04:55
|
On Aug 14, 2008, at 9:46 AM, Mathieu Malaterre wrote: > Hi Doug, > > On Thu, Aug 14, 2008 at 4:38 PM, Doug McCorkle <mc...@ia...> > wrote: >> Here is what I get: >> >> leonidas:build mccdo$ make VERBOSE=1 >> "/Volumes/data/stuff/data/VE_Suite_Tools/CMake/cmake-2.6.0-Darwin- >> universal/CMake >> 2.6-0.app/Contents/bin/cmake" >> -H/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/wxVTK >> -B/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build >> --check-build-system CMakeFiles/Makefile.cmake 0 >> cd /Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build && >> "/Volumes/data/stuff/data/VE_Suite_Tools/CMake/cmake-2.6.0-Darwin- >> universal/CMake >> 2.6-0.app/Contents/bin/cmake" -E cmake_progress_start >> /Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build/ >> CMakeFiles >> /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/ >> wxVTK/build/CMakeFiles/progress.make >> cd /Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build && make -f >> CMakeFiles/Makefile2 all >> make -f CMakeFiles/wxImagePlaneWidget.dir/build.make >> CMakeFiles/wxImagePlaneWidget.dir/depend >> cd /Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build && >> "/Volumes/data/stuff/data/VE_Suite_Tools/CMake/cmake-2.6.0-Darwin- >> universal/CMake >> 2.6-0.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" >> /Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/wxVTK >> /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/ >> wxVTK/wxVTK >> /Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build >> /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/ >> wxVTK/build >> /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/ >> wxVTK/build/CMakeFiles/wxImagePlaneWidget.dir/DependInfo.cmake >> --color= >> make -f CMakeFiles/wxImagePlaneWidget.dir/build.make >> CMakeFiles/wxImagePlaneWidget.dir/build >> Linking CXX executable >> /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/ >> wxVTK/build/wxImagePlaneWidget.app/Contents/MacOS/wxImagePlaneWidget >> cd /Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build && >> "/Volumes/data/stuff/data/VE_Suite_Tools/CMake/cmake-2.6.0-Darwin- >> universal/CMake >> 2.6-0.app/Contents/bin/cmake" -E cmake_link_script >> /Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build/ >> CMakeFiles/wxImagePlaneWidget.dir/link.txt >> --verbose=1 >> /usr/bin/c++ -isysroot /Developer/SDKs/MacOSX10.4u.sdk -no- >> cpp-precomp >> -D__WXMAC__ -O2 -g -Wl,-search_paths_first - >> headerpad_max_install_names >> -fPIC >> CMakeFiles/wxImagePlaneWidget.dir/Volumes/data/Volumes/data/Volumes/ >> data/stuff/data/VE_Suite_Deps/wxVTK/wxVTK/Sample/ >> wxImagePlaneWidget.cxx.o >> CMakeFiles/wxImagePlaneWidget.dir/Volumes/data/Volumes/data/Volumes/ >> data/stuff/data/VE_Suite_Deps/wxVTK/wxVTK/src/ >> wxVTKRenderWindowInteractor.cxx.o >> -o >> /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/ >> wxVTK/build/wxImagePlaneWidget.app/Contents/MacOS/wxImagePlaneWidget >> -L/Volumes/data/stuff/data/VE_Suite_Deps/VTK_cvs/install-mac/lib >> -L/opt/local/lib -L/opt/local/lib -framework IOKit -framework System >> -framework QuickTime -lwx_macu-2.8 -lvtkWidgets -lvtkHybrid - >> lvtkParallel >> -lvtkRendering -lvtkftgl -lvtkfreetype -framework Carbon -framework >> Cocoa >> -lvtkGraphics -lvtkImaging -lvtkIO -framework OpenGL -lvtkFiltering >> -lverdict -lvtkDICOMParser -lvtkexoIIc -lvtkNetCDF -lvtkmetaio - >> lvtksqlite >> -lvtkpng -lvtktiff -lvtkzlib -lvtkjpeg -lvtkexpat -lvtkCommon - >> lvtksys >> -lpthread -lm -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib - >> framework >> IOKit -framework Carbon -framework Cocoa -framework System -framework >> QuickTime -lwx_macu-2.8 -lvtkWidgets >> 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 > > Ok then, let's try the solution suggested on: > > http://steel-wheels-project.blogspot.com/2008/02/build-doxygen-on-mac-os-x-1051-leopard.html > > Apparently using a recent cmake version you can do: > > export CMAKE_OSX_SYSROOT=/Developer/SDKs/MacOSX10.4u.sdk/usr/lib > > create an empty dir, and rerun cmake from scratch. It should now pick > "sysroot /Developer/SDKs/MacOSX10.4u.sdk/usr/lib" instead of the old > "sysroot /Developer/SDKs/MacOSX10.4u.sdk/" This is only for the link line. If I replace CMAKE_OSX_SYSROOT then nothing compiles because none of the headers can be found. I think the link line needs to change somehow not the whole CMAKE_OSX_SYSROOT. Doug |
From: Mathieu M. <mat...@gm...> - 2008-08-14 14:53:00
|
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 |
From: Mathieu M. <mat...@gm...> - 2008-08-14 14:54:46
|
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 -- Mathieu |
From: Doug M. <mc...@ia...> - 2008-08-14 22:04:31
Attachments:
Picture 1.png
|
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 |
From: Mathieu M. <mat...@gm...> - 2008-08-25 00:04:46
|
On Fri, Aug 15, 2008 at 12:04 AM, Doug McCorkle <mc...@ia...> wrote: > And I see two windows which does not seem correct. I mean it's not too bad, at least for the second one. That means we are very close to something working. For window #1, I would try to interact with the screen anyway to see if we are missing a refresh or something (OnSize maybe?) For window#2 you can simply not see the data, since you do not have VTKData and/or setup VTK_DATA_ROOT properly. -- Mathieu |
From: Doug M. <mc...@ia...> - 2008-08-25 00:42:53
|
On Aug 24, 2008, at 7:04 PM, Mathieu Malaterre wrote: > On Fri, Aug 15, 2008 at 12:04 AM, Doug McCorkle <mc...@ia...> > wrote: >> And I see two windows which does not seem correct. > > I mean it's not too bad, at least for the second one. That means we > are very close to something working. > > For window #1, I would try to interact with the screen anyway to see > if we are missing a refresh or something (OnSize maybe?) > > For window#2 you can simply not see the data, since you do not have > VTKData and/or setup VTK_DATA_ROOT properly. OK. What are the instructions for building wxVTK on Mac OS? Since wxWidgets does not have a stable cocoa build yet does VTK have to be compiled to use Carbon? Doug |
From: Mathieu M. <mat...@gm...> - 2008-08-25 09:30:49
|
On Mon, Aug 25, 2008 at 2:42 AM, Doug McCorkle <mc...@ia...> wrote: > OK. What are the instructions for building wxVTK on Mac OS? Since wxWidgets > does not have a stable cocoa build yet does VTK have to be compiled to use > Carbon? yes -- Mathieu |