[wxVTK] wxVTK build issues
Brought to you by:
malat
From: <Tom...@se...> - 2007-05-25 10:09:55
|
Hi all, i want to ask few questions about building wxVTK. If there is some sort of faq i have not found, please tell me. 1. when running cmake, i get complaints about missing PkgConfig. Does that mean pkg-config? Because i have that one. CMake Error: PkgConfig_DIR is not set. It must be set to the directory containing PkgConfigConfig.cmake in order to use PkgConfig. Found in the list that i should switch the comments in CMakeLists.txt, so i did, well after all there is the comment about cmake version 2.4.6 which is newer than i have. 2. But then i get build errors: /usr/bin/c++ -Wno-deprecated -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -I/usr/bin/../include/vtk-5.0 -I/usr/include/tcl8.4 -I/usr/include/python2.4 -I/usr/include/freetype2 -isystem /usr/lib/wx/include/gtk2-unicode-release-2.6 -isystem /usr/include/wx-2.6 -I/home/baf/tks/pok/wxVTK/src -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -o CMakeFiles/wxImagePlaneWidget.dir/src/wxVTKRenderWindowInteractor.o -c /home/baf/tks/pok/wxVTK/src/wxVTKRenderWindowInteractor.cxx /home/baf/tks/pok/wxVTK/src/wxVTKRenderWindowInteractor.cxx:54:81: error: gdk/gdkx.h: No such file or directory /home/baf/tks/pok/wxVTK/src/wxVTKRenderWindowInteractor.cxx:55:32: error: gdk/gdkprivate.h: No such file or directory In file included from /home/baf/tks/pok/wxVTK/src/wxVTKRenderWindowInteractor.cxx:57: /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 /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 Apparently, the gdk include directory is not on path but why shouldnt the lines CMakeLists.txt:39 and CMakeLists.txt:59 add these? I took Modules/FindGTK2.cmake and manually included it in CMakeLists.txt changing where pkg-config is looked for and several other things and got to linking. 3. Then it tries to link with 64-bit libraries which are not on my system. (I suppose this is more a cmake error, am i right?): /usr/bin/c++ -Wno-deprecated -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -I/usr/bin/../include/vtk-5.0 -I/usr/include/tcl8.4 -I/usr/include/python2.4 -I/usr/include/freetype2 -isystem /usr/lib/wx/include/gtk2-unicode-release-2.6 -isystem /usr/include/wx-2.6 -I/opt/wxVTK/src -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libpng12 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -o CMakeFiles/wxImagePlaneWidget.dir/src/wxVTKRenderWindowInteractor.o -c /opt/wxVTK/src/wxVTKRenderWindowInteractor.cxx make[2]: *** No rule to make target `/usr/lib64/libfreetype.so', needed by `bin/wxImagePlaneWidget'. Stop. When i edited all the makefiles changing /usr/lib64/lib*.so for /usr/lib/lib*.so, make did succeed and everything seems to work well. I use: cmake 2.4.5 wx-config 2.6.3 libgtk2.0 2.8.20 vtk 5.0.2 debian lenny So, finally it works but i am really curious how this is supposed to be done the right way? Is this 'normal'? Did i miss something? Thanks in advance for any suggestions. Regards, Tomas |