Thread: Re: [wxVTK] Re: [vtkusers] VTK and wxWindows
Brought to you by:
malat
From: Mathieu M. <mat...@ki...> - 2005-11-18 15:15:57
|
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. Mathieu Ps: Oliver, please CC the ML as this might be usefull for other users, thanks. Oliver Frank wrote: > Mathieu, > > Thanks a lot for your help! > > Ok, I found some files: > > wxbase26d.lib > wxbase26d_net.lib > wxbase26d_odbc.lib > wxbase26d_xml.lib > wxexpatd.lib > wxjpegd.lib > wxmsw26d_adv.lib > wxmsw26d_core.lib > wxmsw26d_dbgrid.lib > wxmsw26d_gl.lib > wxmsw26d_html.lib > wxmsw26d_media.lib > wxmsw26d_qa.lib > wxmsw26d_xrc.lib > wxpngd.lib > wxregexd.lib > wxtiffd.lib > wxzlibd.lib > > (only the static debug versions...) > > Which one is the static library to include? (WXWINDOWS_STATIC_DEBUG_LIBRARY > in cmake) > > Cheers, > Ollie > > -----Original Message----- > From: wxv...@li... > [mailto:wxv...@li...] On Behalf Of Mathieu > Malaterre > Sent: Friday, 18 November 2005 1:35 AM > To: Oliver Frank > Cc: wxv...@li... > Subject: [wxVTK] Re: [vtkusers] VTK and wxWindows > > Oliver, > > Ok I am getting a bit rusty with wxWidgets installation on Windows. > But you should have the library somewhere on your system. Then when cmake > complain you need to browse until you find them. The name of the lib should > look like this: > > wx26*.lib > > (I believe they now put the full version of the lib in the name). > > Mathieu > Ps: I don't have a windows box right now. hopefully another wxVTK user is > more windows friendly than I am :) > > Oliver Frank wrote: > >>Mathieu, >> >>Thank you. I've posted it there already. >>I've opened the msw build project that comes with the wxWidgets-2.6.2 >>windows distribution and compiled it with Visual .Net 7 2003? >> >>In wx/msw/setup.h is an option wxUSE_GLCANVAS which I changed to 1 but >>didn't make any difference... Do I have to install any OpenGl stuff first? >>Sorry I'm new to OpenGl, VTK, wxWindows... >> >>Regards, >>Oliver >> >>-----Original Message----- >>From: Mathieu Malaterre [mailto:mat...@ki...] >>Sent: Thursday, 17 November 2005 2:17 AM >>To: Oliver Frank >>Cc: vtk...@vt... >>Subject: Re: [vtkusers] VTK and wxWindows >> >>Oliver, >> >> Could we follow the discussion on wxVTK ML ? >> -> http://sourceforge.net/projects/wxvtk >> >> In particular how did you built wxWidgets ? >> >>Thanks >>Mathieu >> >>Oliver Frank wrote: >> >> >>>Dear all, >>> >>>I'm trying to use VTK with wxWindows. I found a package wxVTK which is >>>meant to support that. I'm struggling with cmake issues... >>> >>>In the root CMakeLists.txt is an entry like the following >>> >>>#--------------------------------------------------------------------- >>>-------- >>>SET(WXWINDOWS_USE_GL 1) >>>#When http://www.cmake.org/pipermail/cmake/2003-September/004263.html >>>#will be solved VTK + wxWindows would hopefully fully collaborate ! >>>FIND_PACKAGE(wxWindows) >>>#INCLUDE(${wxVTKSample_SOURCE_DIR}/Modules/FindwxWindows.cmake) >>>IF ( CMAKE_WX_CAN_COMPILE ) >>> >>>When using the line FIND_PACKAGE(wxWindows) i get the following error >>>(using Visual Studio .NET 7 2003): >>>CMake Error: No static wxWindows lib found, but >> >>WXWINDOWS_USE_SHARED_LIBS=. >> >> >>>When using the FindwxWindows.cmake with >>>INCLUDE(${wxVTKSample_SOURCE_DIR}/Modules/FindwxWindows.cmake) >>>I get a similar error... It can't set the WXWINDOWS_STATIC_LIBRARY >>> >>>Apparently cmake is not able to detect the wx libraries either way... >>> >>>So I started to look for them manually on my system (Windows XP) (hint >> >>>from the FindwxWindows.cmake file about the names i have to look for: >> >>>wx, wxmsw, wxd, wxmswd, wx23_2, wx22_9, wxmsw240, wx23_2d, wx22_9d, >>>wxmsw240d) but can't find them... I guess I must have done anything >>>wrong when compiled wxWindows? >>> >>>Any help is very appreciated, >>>Thank, >>>Oli >>> >>> >>> >>> >>> >>>---------------------------------------------------------------------- >>>-- >>> >>>_______________________________________________ >>>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 >> >> >> >> >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam for All > Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click > _______________________________________________ > Wxvtk-users mailing list > Wxv...@li... > https://lists.sourceforge.net/lists/listinfo/wxvtk-users > > > |
From: Jan W. <jw...@mi...> - 2005-11-18 16:15:20
|
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... |
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... |
From: Mathieu M. <mat...@ki...> - 2005-11-24 18:24:12
|
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. >> > > > |
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 |