RE: [wxVTK] WX 2.6.2 Find script
Brought to you by:
malat
From: Oliver F. <o....@ac...> - 2005-11-25 06:24:29
|
Thanks, that helped me... The standard configuration built the vtk libraries as shared dll's... Oli -----Original Message----- From: wxv...@li... [mailto:wxv...@li...] On Behalf Of Nigel Nunn Sent: Friday, 25 November 2005 12:03 PM To: wxv...@li... Cc: o....@ac... Subject: RE: [wxVTK] WX 2.6.2 Find script Hi Oliver, "inconsistent dll linkage" usually implies that some libs have been built as "dynamic link libraries" (thus run-time linking), while others have been built for static (compile-time linking). The other common problem is having some libs built for one threading model while the executable is built for another. Are you familiar with setting VC++ project "Properties"? To check, right-click each project in the "Solution Explorer" panel, then select [Properties]. In the tabbed dialog, choose [C/C+] [Code generation] -- Runtime Library Make sure all projects have consistent settings (for both debug and release builds). good luck! Nigel -----Original Message----- From: wxv...@li... [mailto:wxv...@li...]On Behalf Of Oliver Frank Sent: Thursday, 24 November 2005 4:12 PM To: 'Jan Woetzel'; 'Mathieu Malaterre' Cc: wxv...@li... Subject: [wxVTK] RE: WX 2.6.2 Find script 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' [snip] -----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. |