[vtkusers] Question re: wxWindows/VTK

Brian Arnold brian at math.unm.edu
Fri Jun 27 16:14:41 EDT 2003


After installing cmake and using that to build what I needed, here's the 
errors I get.

Information:
OS: Win2K
VTK: 4.2
wxWindows: 2.4.1
Compiler: MSVC++ 6.0 Service Pack 4
Minor tweak: I added the proper path to the wx files in the project, as 
those weren't added in the C++ or link tabs, and I also told it to use 
WXUSINGDLL, as without that I got two more warnings - seems that we're 
trying to use a DLL, so I added that directive in - it wouldn't know 
otherwise.

Errors:
Compiling...
Sample.cpp
wxVTKRenderWindowInteractor.cxx
C:\Workspace\wxVTK\wxVTK\src\wxVTKRenderWindowInteractor.cxx(37) : 
warning C4273: 'public: static class wxClassInfo 
wxVTKRenderWindowInteractor::sm_classwxVTKRenderWindowInteractor' : 
inconsistent dll linkage.  dllexport assumed.
C:\Workspace\wxVTK\wxVTK\src\wxVTKRenderWindowInteractor.cxx(37) : error 
C2491: 
'wxVTKRenderWindowInteractor::sm_classwxVTKRenderWindowInteractor' : 
definition of dllimport static data member not allowed
...

As you can see, the sample portion compiles just fine (no errors), but 
when building the wxVTKRenderWindowInteractor, it spit up three errors 
(one above, two very similar, three lines down associated with the 
BEGIN_EVENT_TABLE macro), and 33 warnings (one above, all complaining of 
inconsistent dll linkage, and dllexport assumed.

Any help would be awesome - thanks. :)

Mathieu Malaterre wrote:

> Brian,
> 
>     Did you tried wxVTKRenderWindowInteractor ? You'll find it here:
> 
> http://www.creatis.insa-lyon.fr/~malaterre/wxVTK/
> 
>     If you have problems compiling it, please report the whole message. 
> (Don't forget to specify OS, vtk version, wx version ...)
> 
> thanks,
> mathieu
> 
> Brian Arnold wrote:
> 
>> Hello all,
>>
>> I've been perusing the web and the archives for information regarding 
>> this with little luck, so maybe I'm just searching for the wrong 
>> phrases.  Hopefully someone here can help me out.
>>
>> I'm looking for a way to use VTK within the wxWindows interface.  What 
>> bits I've found on the web seem okay, but I can't get them to compile 
>> (using MSVC 6).  I've gotten the MFC-based VTK samples working 
>> alright, but I'm trying to re-write an application from MFC to wxWin, 
>> and it uses VTK incredibly heavily.  Any assistance would be greatly 
>> appreciated.
>>
>> ~Brian
>>
>> _______________________________________________
>> This is the private VTK discussion list. Please keep messages 
>> on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
> 
> 





More information about the vtkusers mailing list