[wxVTK] [Fwd: Re: [vtkusers] wxVTK for Windows]
Brought to you by:
malat
From: Mathieu M. <mat...@ki...> - 2005-10-06 13:42:01
|
If you download wxVTK from the website, it comes with a README. Do you read Q2 ? Q2. Linkage has to be consistent. The class has been succesfully built with these four cases: VTK static VTK dynamic wxWindows static 1 3 wxWindows dynamic 2 4 Just open the file: wxVTKRenderWindowInteractor.h, find the line: class VTK_RENDERING_EXPORT wxVTKRenderWindowInteractor : public wxWindow, public vtkRenderWindowInteractor ^^^^^^^^^^^^^^^^^^^^ And change it accordingly 1. VTK_RENDERING_EXPORT is ok 2. VTK_RENDERING_EXPORT is ok 3. WXDLLEXPORT is ok 4. remove WXDLLEXPORT / VTK_RENDERING_EXPORT Mathieu -------- Original Message -------- Subject: Re: [vtkusers] wxVTK for Windows Date: Thu, 6 Oct 2005 14:04:57 +0200 (CEST) > If you send an email there, please send the error log you are getting. Sorry about that. I've got same error with wxWindows 2.4.2. Thx Yoan --------------------Configuration: Sample - Win32 Debug-------------------- Compiling... wxVTKRenderWindowInteractor.cxx C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.h(83) : warning C4275: non dll-interface class 'wxWindow' used as base for dll-interface class 'wxVTKRenderWindowInteractor' c:\wxWindows-2.4.2\include\wx/msw/window.h(53) : see declaration of 'wxWindow' C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(66) : warning C4273: 'public: static class wxClassInfo wxVTKRenderWindowInteractor::sm_classwxVTKRenderWindowInteractor' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(66) : error C2491: 'wxVTKRenderWindowInteractor::sm_classwxVTKRenderWindowInteractor' : definition of dllimport static data member not allowed C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(73) : warning C4273: 'GetEventTable' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(73) : warning C4273: 'protected: static struct wxEventTable const wxVTKRenderWindowInteractor::sm_eventTable' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(73) : error C2491: 'wxVTKRenderWindowInteractor::sm_eventTable' : definition of dllimport static data member not allowed C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(73) : warning C4273: 'private: static struct wxEventTableEntry const * const wxVTKRenderWindowInteractor::sm_eventTableEntries' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(73) : error C2491: 'wxVTKRenderWindowInteractor::sm_eventTableEntries' : definition of dllimport static data member not allowed C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(105) : warning C4273: 'wxVTKRenderWindowInteractor::wxVTKRenderWindowInteractor' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(108) : warning C4355: 'this' : used in base member initializer list C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(130) : warning C4273: 'wxVTKRenderWindowInteractor::wxVTKRenderWindowInteractor' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(133) : warning C4355: 'this' : used in base member initializer list C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(147) : warning C4273: 'wxVTKRenderWindowInteractor::~wxVTKRenderWindowInteractor' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(151) : warning C4273: 'New' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(157) : warning C4273: 'Initialize' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(167) : warning C4273: 'Enable' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(178) : warning C4273: 'Disable' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(189) : warning C4273: 'Start' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(196) : warning C4273: 'UpdateSize' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(211) : warning C4273: 'CreateTimer' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(221) : warning C4273: 'DestroyTimer' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(227) : warning C4273: 'OnTimer' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(241) : warning C4273: 'GetHandle' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(300) : warning C4273: 'OnPaint' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(318) : warning C4273: 'OnEraseBackground' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(324) : warning C4273: 'OnSize' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(327) : error C2039: 'OnSize' : is not a member of 'wxWindow' c:wxWindows-2.4.2\include\wx/msw/window.h(53) : see declaration of 'wxWindow' C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(346) : warning C4273: 'OnMotion' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(364) : warning C4273: 'OnEnter' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(384) : warning C4273: 'OnLeave' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(404) : warning C4273: 'OnKeyDown' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(433) : warning C4273: 'OnKeyUp' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(461) : warning C4273: 'OnButtonDown' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(517) : warning C4273: 'OnButtonUp' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(574) : warning C4273: 'Render' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(611) : warning C4273: 'SetRenderWhenDisabled' : inconsistent dll linkage. dllexport assumed. C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(628) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) C:\wxVTK-0.8\wxVTK\src\wxVTKRenderWindowInteractor.cxx(636) : warning C4273: 'SetStereo' : inconsistent dll linkage. dllexport assumed. Error executing cl.exe. ALL_BUILD - 4 error(s), 34 warning(s) _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers |