Re: [wxVTK] Undefined reference using CygWin+VTK+wxWidgets+wxVTK
Brought to you by:
malat
From: Nigel N. <nN...@au...> - 2006-08-03 16:38:54
|
Hi Jonas, I guess you are using a recent CVS version of wxVTKR.W.I., e.g. Module: $RCSfile: wxVTKRenderWindowInteractor.cxx,v $ Language: C++ Date: $Date: 2005/10/18 03:37:00 $ Version: $Revision: 1.22 $ With so many variations of cmake, Vtk, wx and wxVtk, please let us know if you solved your problem (and if so, what steps you took). On the other hand, since wxVTK only adds a single class to a user's project, I simply add the [.cxx,.h] files to my Vtk-based modules and side-step the various potential cmake complexities... > It all compiles but when linking Sample.exe I get a lot of > 'undefined reference' (one of them is 'undefined reference > to 'wxClassInfo::Register()''). If you are interested in a more manual approach, you might start with a simple and robust wxApp, with all settings consistent with your environment; then add the two files, wxVTKRenderWindowInteractor.h wxVTKRenderWindowInteractor.cxx and paste in some of the Sample code. I started this way; things evolved quickly into a fantastic wx+Vtk simulation environment. Nigel ----------------------------------------------------------------------------= ---------=0A= This message is intended for the addressee named and may contain confidentia= l and privileged information. If you are not the intended recipient please= note that any form of distribution, copying or use of this communication or= the information in it is strictly prohibited and may be unlawful. If you r= eceive this message in error, please delete it and notify the sender.=0A= Keep up to date with what's happening in Australian sport.=0A= Visit http://www.ausport.gov.au=0A= ----------------------------------------------------------------------------= --------- |