Re: [wxVTK] wxvtk compilation on Ubuntu Karmic
Brought to you by:
malat
From: Rupert B. <rup...@gm...> - 2010-04-06 11:29:57
|
Hi, Yes, its libgtk2, which i had the dev installed. Ultimately i had to install the following packages (most were already installed, but not in the include path) and set my CPATH as follows for it to work libgtk2.0-dev libglib2.0-dev libpango1.0-dev libcairo2-dev libatk1.0-dev libatk1.0-dev export CPATH=/usr/include/gtk-2.0:/usr/include/glib-2.0:/usr/lib/glib-2.0/include:/usr/include/pango-1.0:/usr/include/cairo:/usr/lib/gtk-2.0/include:/usr/include/atk-1.0 Sadly, even once built, it seems not to work properly. Clicking in the window gives the following errors rupert@morrigan:~/development/wxVTK/wxVTK-build$ bin/wxSample ERROR: In /build/buildd/vtk-5.2.1/Rendering/vtkInteractorStyle.cxx, line 392 vtkInteractorStyleJoystickCamera (0x17ee510): Timer start failed ERROR: In /build/buildd/vtk-5.2.1/Rendering/vtkInteractorStyle.cxx, line 392 vtkInteractorStyleJoystickCamera (0x17ee510): Timer start failed ERROR: In /build/buildd/vtk-5.2.1/Rendering/vtkInteractorStyle.cxx, line 392 vtkInteractorStyleJoystickCamera (0x17ee510): Timer start failed I've found another solution to what i wanted to do so I'm going to stop following this path. But I just wanted to let you know that on Ubuntu Karmic, 64-bit, it seems to give quite a bit of trouble. The vtk that im using is the Ubuntu vtk (5.2). Cheers Rupert -------------------------------------------------------------- Rupert Brooks rup...@gm... On Tue, Apr 6, 2010 at 04:01, Mathieu Malaterre <mat...@gm...> wrote: > Rupert, > > On Mon, Apr 5, 2010 at 2:41 PM, Rupert Brooks <rup...@gm...> wrote: >> I downloaded wxVTK and tried to build and install, but ran into the >> following compilation error. The same error occurs whether i have >> wx2.6 installed or wx2.8 >> >> rupert@morrigan:~/development/wxVTK/wxVTK-build$ make >> [ 10%] Building CXX object >> CMakeFiles/wxImagePlaneWidget.dir/Sample/wxImagePlaneWidget.cxx.o >> [ 20%] Building CXX object >> CMakeFiles/wxImagePlaneWidget.dir/src/wxVTKRenderWindowInteractor.cxx.o >> /home/rupert/development/wxVTK/wxVTK/src/wxVTKRenderWindowInteractor.cxx:61:81: >> error: gdk/gdkx.h: No such file or directory >> /home/rupert/development/wxVTK/wxVTK/src/wxVTKRenderWindowInteractor.cxx:62:32: >> error: gdk/gdkprivate.h: No such file or directory > > In order to get the X11 pointer wxVTK access the wxVTK window pointer, > then the gdk handle and underneath the X11 window. So you *need* the > gdk dev package. Whichever package that provide 'gdk/gdkprivate.h', > pick the one associated with your wx version. > > > HTH > -- > Mathieu > |