Thread: [wxVTK] a compilation problem and a .... mystery
Brought to you by:
malat
|
From: genesy g. <ge...@gm...> - 2008-10-21 14:47:33
|
thanks Mathieu for your quickness! the compilation goes fine with this only exception: Scanning dependencies of target wxVTKNotebook [ 91%] Building CXX object CMakeFiles/wxVTKNotebook.dir/Sample/wxVTKNotebook.cxx.o /Users/xael/wxVTK_latest/wxVTK/Sample/wxVTKNotebook.cxx: In member function 'void MyFrame::OnNoteBookChanging(wxNotebookEvent&)': /Users/xael/wxVTK_latest/wxVTK/Sample/wxVTKNotebook.cxx:181: error: 'class vtkRenderWindow' has no member named 'Finalize' /Users/xael/wxVTK_latest/wxVTK/Sample/wxVTKNotebook.cxx: In member function 'void MyFrame::FillVTK(wxPanel*, wxGridSizer*)': /Users/xael/wxVTK_latest/wxVTK/Sample/wxVTKNotebook.cxx:215: error: 'wxGetDisplay' was not declared in this scope make[2]: *** [CMakeFiles/wxVTKNotebook.dir/Sample/wxVTKNotebook.cxx.o] Error 1 make[1]: *** [CMakeFiles/wxVTKNotebook.dir/all] Error 2 make: *** [all] Error 2 but the big trouble appears when I launch wxImagePlaneWidget : two windows are shown and I can't do nothing with them . The first one is is white and is labeled "vtkX - Carbon#1" the second one is grey and its name is "wxWindows - VTK App". If you think is helpful I could load the application in a debugger (gdb command line or Xcode) and with your help find out information about this problem... bye SO: MacOsX 10.4.11 xcode: 2.4.1 gcc version: 4.0.1 wx-config --version-full : 2.6.3.1 VTK 4.4 Carbon ccmake version 2.6-patch 1 G. |
|
From: Mathieu M. <mat...@gm...> - 2008-10-21 14:58:45
|
On Tue, Oct 21, 2008 at 4:47 PM, genesy genesy <ge...@gm...> wrote: > thanks Mathieu for your quickness! > > the compilation goes fine with this only exception: > > > Scanning dependencies of target wxVTKNotebook > [ 91%] Building CXX object > CMakeFiles/wxVTKNotebook.dir/Sample/wxVTKNotebook.cxx.o > /Users/xael/wxVTK_latest/wxVTK/Sample/wxVTKNotebook.cxx: In member > function 'void MyFrame::OnNoteBookChanging(wxNotebookEvent&)': > /Users/xael/wxVTK_latest/wxVTK/Sample/wxVTKNotebook.cxx:181: error: > 'class vtkRenderWindow' has no member named 'Finalize' > /Users/xael/wxVTK_latest/wxVTK/Sample/wxVTKNotebook.cxx: In member > function 'void MyFrame::FillVTK(wxPanel*, wxGridSizer*)': > /Users/xael/wxVTK_latest/wxVTK/Sample/wxVTKNotebook.cxx:215: error: > 'wxGetDisplay' was not declared in this scope > make[2]: *** [CMakeFiles/wxVTKNotebook.dir/Sample/wxVTKNotebook.cxx.o] Error 1 > make[1]: *** [CMakeFiles/wxVTKNotebook.dir/all] Error 2 > make: *** [all] Error 2 Fixed: $ cvs ci -m"COMP: fix compilation for vtkrw::finalize" ~/Projects/wxVTK ? Sample/wxLeaks.cxx ? current.patch ? bin Checking in CMakeLists.txt; /cvsroot/wxvtk/wxVTK/CMakeLists.txt,v <-- CMakeLists.txt new revision: 1.34; previous revision: 1.33 done Mailing wxv...@li...... Generating notification message... Generating notification message... done. thx ! > > but the big trouble appears when I launch wxImagePlaneWidget : two > windows are shown and I can't do nothing with them . > The first one is is white and is labeled "vtkX - Carbon#1" the > second one is grey and its name is "wxWindows - VTK App". Hum... I fear this is a nasty issue on the mac (cannot reproduce it here...). Can you press the 't' key, this should go into trackball mode, and you'll be able to interact a little more smoothly with the cone. > If you think is helpful I could load the application in a debugger > (gdb command line or Xcode) and with your help find out information > about this problem... If the previous comment does not work, I think you are suffering from the 'Rez' issue. >From the command line, try typing: /Developer/Tools/Rez Carbon.r -o wxVTKSample HTH -- Mathieu |
|
From: Mathieu M. <mat...@gm...> - 2008-10-21 15:31:05
|
On Tue, Oct 21, 2008 at 4:58 PM, Mathieu Malaterre <mat...@gm...> wrote: > On Tue, Oct 21, 2008 at 4:47 PM, genesy genesy <ge...@gm...> wrote: >> thanks Mathieu for your quickness! >> >> the compilation goes fine with this only exception: >> >> >> Scanning dependencies of target wxVTKNotebook >> [ 91%] Building CXX object >> CMakeFiles/wxVTKNotebook.dir/Sample/wxVTKNotebook.cxx.o >> /Users/xael/wxVTK_latest/wxVTK/Sample/wxVTKNotebook.cxx: In member >> function 'void MyFrame::OnNoteBookChanging(wxNotebookEvent&)': >> /Users/xael/wxVTK_latest/wxVTK/Sample/wxVTKNotebook.cxx:181: error: >> 'class vtkRenderWindow' has no member named 'Finalize' >> /Users/xael/wxVTK_latest/wxVTK/Sample/wxVTKNotebook.cxx: In member >> function 'void MyFrame::FillVTK(wxPanel*, wxGridSizer*)': >> /Users/xael/wxVTK_latest/wxVTK/Sample/wxVTKNotebook.cxx:215: error: >> 'wxGetDisplay' was not declared in this scope >> make[2]: *** [CMakeFiles/wxVTKNotebook.dir/Sample/wxVTKNotebook.cxx.o] Error 1 >> make[1]: *** [CMakeFiles/wxVTKNotebook.dir/all] Error 2 >> make: *** [all] Error 2 > > Fixed: > > $ cvs ci -m"COMP: fix compilation for vtkrw::finalize" > > > ~/Projects/wxVTK > ? Sample/wxLeaks.cxx > ? current.patch > ? bin > Checking in CMakeLists.txt; > /cvsroot/wxvtk/wxVTK/CMakeLists.txt,v <-- CMakeLists.txt > new revision: 1.34; previous revision: 1.33 > done > Mailing wxv...@li...... > Generating notification message... > Generating notification message... done. > > thx ! >> >> but the big trouble appears when I launch wxImagePlaneWidget : two >> windows are shown and I can't do nothing with them . >> The first one is is white and is labeled "vtkX - Carbon#1" the >> second one is grey and its name is "wxWindows - VTK App". > > Hum... I fear this is a nasty issue on the mac (cannot reproduce it here...). > Can you press the 't' key, this should go into trackball mode, and > you'll be able to interact a little more smoothly with the cone. > >> If you think is helpful I could load the application in a debugger >> (gdb command line or Xcode) and with your help find out information >> about this problem... > > If the previous comment does not work, I think you are suffering from > the 'Rez' issue. > > From the command line, try typing: > > /Developer/Tools/Rez Carbon.r -o wxVTKSample Try again now: $ cvs ci -m"ENH: attempt for MacOSX" CMakeLists.txt ~/Projects/wxVTK Checking in CMakeLists.txt; /cvsroot/wxvtk/wxVTK/CMakeLists.txt,v <-- CMakeLists.txt new revision: 1.35; previous revision: 1.34 done Mailing wxv...@li...... Generating notification message... Generating notification message... done. Can you get interaction working on the wxSample example ? -- Mathieu |