Thread: [wxVTK] wxvtk compilation on Ubuntu Karmic
Brought to you by:
malat
From: Rupert B. <rup...@gm...> - 2010-04-05 12:41:28
|
Hi, 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 file included from /home/rupert/development/wxVTK/wxVTK/src/wxVTKRenderWindowInteractor.cxx:70: /usr/include/wx-2.6/wx/gtk/win_gtk.h:18:21: error: gdk/gdk.h: No such file or directory /usr/include/wx-2.6/wx/gtk/win_gtk.h:20:30: error: gtk/gtkcontainer.h: No such file or directory /usr/include/wx-2.6/wx/gtk/win_gtk.h:21:31: error: gtk/gtkadjustment.h: No such file or directory In file included from /home/rupert/development/wxVTK/wxVTK/src/wxVTKRenderWindowInteractor.cxx:70: /usr/include/wx-2.6/wx/gtk/win_gtk.h:56: error: ‘GtkContainer’ does not name a type /usr/include/wx-2.6/wx/gtk/win_gtk.h:57: error: expected ‘;’ before ‘*’ token /usr/include/wx-2.6/wx/gtk/win_gtk.h:68: error: ‘GdkVisibilityState’ does not name a type /usr/include/wx-2.6/wx/gtk/win_gtk.h:73: error: ‘gboolean’ does not name a type /usr/include/wx-2.6/wx/gtk/win_gtk.h:74: error: ‘gboolean’ does not name a type /usr/include/wx-2.6/wx/gtk/win_gtk.h:75: error: ‘gboolean’ does not name a type /usr/include/wx-2.6/wx/gtk/win_gtk.h:80: error: ‘GtkContainerClass’ does not name a type /usr/include/wx-2.6/wx/gtk/win_gtk.h:88: error: ‘GtkType’ does not name a type /usr/include/wx-2.6/wx/gtk/win_gtk.h:98: error: ‘gboolean’ has not been declared /usr/include/wx-2.6/wx/gtk/win_gtk.h:102: error: ‘gboolean’ has not been declared /usr/include/wx-2.6/wx/gtk/win_gtk.h:106: error: ‘gboolean’ has not been declared /home/rupert/development/wxVTK/wxVTK/src/wxVTKRenderWindowInteractor.cxx: In member function ‘long int wxVTKRenderWindowInteractor::GetHandleHack()’: /home/rupert/development/wxVTK/wxVTK/src/wxVTKRenderWindowInteractor.cxx:344: error: ‘gtk_pizza_get_type’ was not declared in this scope /home/rupert/development/wxVTK/wxVTK/src/wxVTKRenderWindowInteractor.cxx:344: error: expected primary-expression before ‘)’ token /home/rupert/development/wxVTK/wxVTK/src/wxVTKRenderWindowInteractor.cxx:344: error: ‘GTK_CHECK_CAST’ was not declared in this scope /home/rupert/development/wxVTK/wxVTK/src/wxVTKRenderWindowInteractor.cxx:344: error: ‘GDK_WINDOW_XWINDOW’ was not declared in this scope /home/rupert/development/wxVTK/wxVTK/src/wxVTKRenderWindowInteractor.cxx:344: error: invalid use of incomplete type ‘struct _GtkWidget’ /usr/include/wx-2.6/wx/defs.h:2777: error: forward declaration of ‘struct _GtkWidget’ make[2]: *** [CMakeFiles/wxImagePlaneWidget.dir/src/wxVTKRenderWindowInteractor.cxx.o] Error 1 make[1]: *** [CMakeFiles/wxImagePlaneWidget.dir/all] Error 2 I tried putting the gtk2.0 includes in my include path, and it got a bit farther, but then ran into more problems rupert@morrigan:~/development/wxVTK/wxVTK-build$ export CPATH=/usr/include/gtk-2.0 rupert@morrigan:~/development/wxVTK/wxVTK-build$ make [ 10%] Building CXX object CMakeFiles/wxImagePlaneWidget.dir/src/wxVTKRenderWindowInteractor.cxx.o In file included from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gdk/gdkprivate.h:30, from /usr/include/gtk-2.0/gdk/gdkx.h:30, from /home/rupert/development/wxVTK/wxVTK/src/wxVTKRenderWindowInteractor.cxx:61: /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30:21: error: gio/gio.h: No such file or directory In file included from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gdk/gdkprivate.h:30, from /usr/include/gtk-2.0/gdk/gdkx.h:30, from /home/rupert/development/wxVTK/wxVTK/src/wxVTKRenderWindowInteractor.cxx:61: [...snipped...] Do you have any tips for compilation on ubuntu karmic? Thanks Rupert B -------------------------------------------------------------- Rupert Brooks rup...@gm... |
From: Mathieu M. <mat...@gm...> - 2010-04-06 08:02:17
|
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 |
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 > |
From: Ruopeng W. <rp...@nm...> - 2010-07-15 21:16:03
|
Hi all, Just wondering if there is anyone successfully get wxVTK work on Snow Leopard (cocoa)? Also, how to get the latest CVS trunk? Thanks, Ruopeng The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. |