RE: [wxVTK] Re: WX 2.6.2 Find script
Brought to you by:
malat
From: Oliver F. <o....@ac...> - 2005-11-25 06:35:49
|
I got the examples running... The problem was indeed that the library types were mixed up. If I'm using only static libraries, everything works with no worries. I've just one more question: If I build the wxImagePlaneWidget with the header file #include "vtkTestUtilities.h" included I get the following error: Compiling... wxImagePlaneWidget.cxx C:\VTK\Common\Testing\Cxx\vtkTestUtilities.h(19) : error C2011: 'vtkTestUtilities' : 'struct' type redefinition C:\VTK\Rendering\vtkTesting.h(30) : see declaration of 'vtkTestUtilities' If I just comment this line everything works fine. What is this header fore? How can I get rid of the error message? Thanks, Oli -----Original Message----- From: wxv...@li... [mailto:wxv...@li...] On Behalf Of Mathieu Malaterre Sent: Friday, 25 November 2005 5:23 AM To: Oliver Frank Cc: 'Jan Woetzel'; wxv...@li... Subject: [wxVTK] Re: WX 2.6.2 Find script Oliver, I believe this is in the README file (Q2), mixing configuration is tricky on Win32 (static and shared) Happy Thanksgiving, Mathieu Oliver Frank wrote: > Thanks guys! > > I got monolithical libraries and cmake is setting up the files with no > worries... > > I opened the generated wxVTKSample.sln with Visual Studio and tried to > comile it. Unfortunately I got the output attached and have no clue > what's going wrong... > > Any help is very appreciated! > > Cheers, > Oli > > ------ Build started: Project: wxImageViewer, Configuration: Debug > Win32 > ------ > > Compiling... > wxVTKRenderWindowInteractor.cxx > c:\wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.h(83) : > warning > C4275: non dll-interface class 'wxWindow' used as base for > dll-interface class 'wxVTKRenderWindowInteractor' > C:\wxWidgets-2.6.2\include\wx\msw\window.h(48) : see > declaration of 'wxWindow' > c:\wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.h(83) > : see declaration of 'wxVTKRenderWindowInteractor' > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(66) : > warning > C4273: 'ms_classInfo' : inconsistent dll linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(66) : error > C2491: 'wxVTKRenderWindowInteractor::ms_classInfo' : definition of > dllimport static data member not allowed > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(66) : > warning > C4273: 'wxVTKRenderWindowInteractor::GetClassInfo' : inconsistent dll > linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(66) : > warning > C4273: 'wxVTKRenderWindowInteractor::wxCreateObject' : inconsistent > dll linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(73) : > warning > C4273: 'sm_eventTable' : inconsistent dll linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(73) : error > C2491: 'wxVTKRenderWindowInteractor::sm_eventTable' : definition of > dllimport static data member not allowed > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(73) : > warning > C4273: 'wxVTKRenderWindowInteractor::GetEventTable' : inconsistent dll > linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(73) : > warning > C4273: 'sm_eventHashTable' : inconsistent dll linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(73) : error > C2491: 'wxVTKRenderWindowInteractor::sm_eventHashTable' : definition > of dllimport static data member not allowed > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(73) : > warning > C4273: 'wxVTKRenderWindowInteractor::GetEventHashTable' : inconsistent > dll linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(73) : > warning > C4273: 'sm_eventTableEntries' : inconsistent dll linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(73) : error > C2491: 'wxVTKRenderWindowInteractor::sm_eventTableEntries' : > definition of dllimport static data member not allowed > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(105) : > warning > C4273: 'wxVTKRenderWindowInteractor::wxVTKRenderWindowInteractor' : > inconsistent dll linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(108) : > warning > C4355: 'this' : used in base member initializer list > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(130) : > warning > C4273: 'wxVTKRenderWindowInteractor::wxVTKRenderWindowInteractor' : > inconsistent dll linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(133) : > warning > C4355: 'this' : used in base member initializer list > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(147) : > warning > C4273: 'wxVTKRenderWindowInteractor::~wxVTKRenderWindowInteractor' : > inconsistent dll linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(151) : > warning > C4273: 'wxVTKRenderWindowInteractor::New' : inconsistent dll linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(157) : > warning > C4273: 'wxVTKRenderWindowInteractor::Initialize' : inconsistent dll > linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(167) : > warning > C4273: 'wxVTKRenderWindowInteractor::Enable' : inconsistent dll > linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(178) : > warning > C4273: 'wxVTKRenderWindowInteractor::Disable' : inconsistent dll > linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(189) : > warning > C4273: 'wxVTKRenderWindowInteractor::Start' : inconsistent dll linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(196) : > warning > C4273: 'wxVTKRenderWindowInteractor::UpdateSize' : inconsistent dll > linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(211) : > warning > C4273: 'wxVTKRenderWindowInteractor::CreateTimer' : inconsistent dll > linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(221) : > warning > C4273: 'wxVTKRenderWindowInteractor::DestroyTimer' : inconsistent dll > linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(227) : > warning > C4273: 'wxVTKRenderWindowInteractor::OnTimer' : inconsistent dll > linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(241) : > warning > C4273: 'wxVTKRenderWindowInteractor::GetHandle' : inconsistent dll > linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(300) : > warning > C4273: 'wxVTKRenderWindowInteractor::OnPaint' : inconsistent dll > linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(318) : > warning > C4273: 'wxVTKRenderWindowInteractor::OnEraseBackground' : inconsistent > dll linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(324) : > warning > C4273: 'wxVTKRenderWindowInteractor::OnSize' : inconsistent dll > linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(327) : > error > C2039: 'OnSize' : is not a member of 'wxWindow' > C:\wxWidgets-2.6.2\include\wx\msw\window.h(48) : see > declaration of 'wxWindow' > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(346) : > warning > C4273: 'wxVTKRenderWindowInteractor::OnMotion' : inconsistent dll > linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(364) : > warning > C4273: 'wxVTKRenderWindowInteractor::OnEnter' : inconsistent dll > linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(384) : > warning > C4273: 'wxVTKRenderWindowInteractor::OnLeave' : inconsistent dll > linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(404) : > warning > C4273: 'wxVTKRenderWindowInteractor::OnKeyDown' : inconsistent dll > linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(433) : > warning > C4273: 'wxVTKRenderWindowInteractor::OnKeyUp' : inconsistent dll > linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(461) : > warning > C4273: 'wxVTKRenderWindowInteractor::OnButtonDown' : inconsistent dll > linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(517) : > warning > C4273: 'wxVTKRenderWindowInteractor::OnButtonUp' : inconsistent dll > linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(574) : > warning > C4273: 'wxVTKRenderWindowInteractor::Render' : inconsistent dll > linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(611) : > warning > C4273: 'wxVTKRenderWindowInteractor::SetRenderWhenDisabled' : > inconsistent dll linkage > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(628) : > warning > C4800: 'int' : forcing value to bool 'true' or 'false' (performance > warning) > \wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.cxx(636) : > warning > C4273: 'wxVTKRenderWindowInteractor::SetStereo' : inconsistent dll > linkage wxImageViewer.cxx > C:\wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.h(83) : > warning > C4275: non dll-interface class 'wxWindow' used as base for > dll-interface class 'wxVTKRenderWindowInteractor' > C:\wxWidgets-2.6.2\include\wx\msw\window.h(48) : see > declaration of 'wxWindow' > C:\wxWidgets-2.6.2\wxVTK\src\wxVTKRenderWindowInteractor.h(83) > : see declaration of 'wxVTKRenderWindowInteractor' > C:\VTK\Common\Testing\Cxx\vtkTestUtilities.h(19) : error C2011: > 'vtkTestUtilities' : 'struct' type redefinition > C:\VTK\Rendering\vtkTesting.h(30) : see declaration of > 'vtkTestUtilities' > Generating Code... > > Build log was saved at > "file://c:\wxWidgets-2.6.2\wxVTK\Bin\wxImageViewer.dir\Debug\BuildLog.htm" > wxImageViewer - 6 error(s), 39 warning(s) > > > > -----Original Message----- > From: Jan Woetzel [mailto:jw...@mi...] > Sent: Saturday, 19 November 2005 3:15 AM > To: Mathieu Malaterre > Cc: Oliver Frank; wxv...@li...; Jan Woetzel > Subject: WX 2.6.2 Find script > > > Mathieu, > yes, I adapted our Findscript for WX 2.6.2, see > http://www.mip.informatik.uni-kiel.de/~jw/cmake/ > > Linux works flawless relying on "wx-config". > > On Windows we still prefer the monolithic build. > You can create a monolithic WX 2.6.2 build this way: > Go to wxWidgets2.62./build/msw and call > > nmake -f makefile.vc BUILD=debug SHARED=0 USE_OPENGL=1 MONOLITHIC=1 > > See: > http://www.mip.informatik.uni-kiel.de/~jw/wx/ > > > There is initial support for non-monolithic build in the find script, > and it work here, too. > But it is a quickhack because those many "small" WX libs are listed > explicitly. > The script is not yet search for each lib or verify its result with a > try compile. > > So the easy solutions is: > 1. compile WX monolithic with nmake > 2. use my Find script. > > Works for me with Linux and Windows XP / VS2003 and static WX > libraries in > Debug+Release. > > Best, > Jan. > > > > Mathieu Malaterre wrote: > > >>Jan, >> >> By any chance did you update your FindwxWidgets ? >> Is seems there is no more a central monolithic library like >>wxmsw24.lib in 2.6.2 >> >> Thanks for your comment. >> > > > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Wxvtk-users mailing list Wxv...@li... https://lists.sourceforge.net/lists/listinfo/wxvtk-users |