[vtkusers] VTK and wxWindows

Oliver Frank o.frank at acfr.usyd.edu.au
Tue Nov 15 22:13:33 EST 2005


Dear all,
 
I'm trying to use VTK with wxWindows. I found a package wxVTK which is meant
to support that. I'm struggling with cmake issues...
 
In the root CMakeLists.txt is an entry like the following
 
#---------------------------------------------------------------------------
--
SET(WXWINDOWS_USE_GL 1) 
#When http://www.cmake.org/pipermail/cmake/2003-September/004263.html
#will be solved VTK + wxWindows would hopefully fully collaborate  !
FIND_PACKAGE(wxWindows)
#INCLUDE(${wxVTKSample_SOURCE_DIR}/Modules/FindwxWindows.cmake)
IF ( CMAKE_WX_CAN_COMPILE )

 
When using the line FIND_PACKAGE(wxWindows) i get the following error (using
Visual Studio .NET 7 2003):
CMake Error: No static wxWindows lib found, but WXWINDOWS_USE_SHARED_LIBS=.
 
When using the FindwxWindows.cmake with 
INCLUDE(${wxVTKSample_SOURCE_DIR}/Modules/FindwxWindows.cmake)
I get a similar error... It can't set the WXWINDOWS_STATIC_LIBRARY

Apparently cmake is not able to detect the wx libraries either way...
 
So I started to look for them manually on my system (Windows XP) (hint from
the FindwxWindows.cmake file about the names i have to look for: wx, wxmsw,
wxd, wxmswd, wx23_2, wx22_9, wxmsw240, wx23_2d, wx22_9d, wxmsw240d) but
can't find them... I guess I must have done anything wrong when compiled
wxWindows?
 
Any help is very appreciated,
Thank,
Oli
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20051116/09ce9cf3/attachment.htm>


More information about the vtkusers mailing list