[wxVTK] RE: WX 2.6.2 Find script
Brought to you by:
malat
From: Oliver F. <o....@ac...> - 2005-11-24 05:12:39
|
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. > -- Dipl.-Ing. Jan Woetzel -------------------------------------------------- University of Kiel Institute of Computer Science and Applied Mathematics Hermann-Rodewald-Str. 3 [room 310] 24098 Kiel/Germany -------------------------------------------------- Phone +49-431-880-4477 Fax +49-431-880-4054 Mob. +49-179-2937346 -------------------------------------------------- Url www.mip.informatik.uni-kiel.de/~jw Email jw...@mi... |