Hi, On Thu, 2009-06-18 at 20:04 +0800, Gerrit Voß wrote: > Hi, > > On Thu, 2009-06-18 at 13:20 +0200, Andreas Halm wrote: > > Hi again, > > > > > > > > > > > > ok. Short question, how do you compile OpenSG ?. Weird crashes can > > > easily be a mismatch of compile time parameters, especially crashes > > > that early. > > > > That is correct, however I am using Visual Studio 2008 and I think you can't > > do much wrong anymore here as Single-Threaded libraries are long gone. I am > > building Multithreaded DLL Debug and the compile time parameters are: > > /Od /I <stripped a lot of include paths here> /D "WIN32" /D "_WINDOWS" /D > > "_DEBUG" /D "_OSG_HAVE_CONFIGURED_H_" /D "OSG_BUILD_DLL" /D "OSG_DEBUG" /D > > "OSG_WITH_GLUT" /D "OSG_WITH_GIF" /D "OSG_WITH_TIF" /D "OSG_WITH_JPG" /D > > "GLEW_STATIC" /D "GALE_NO_AUTO_LINK" /D "_EMBEDDED_MANIFEST" /D > > "_CRT_SECURE_NO_WARNINGS" /D "_AFXDLL" /D "_MBCS" /Gm /EHsc /RTC1 /MDd > > /Yu"stdafx.h" /Fp"../../intermediate\RibbonGUI/Debug.pch" > > /Fo"../../intermediate\RibbonGUI/Debug/" > > /Fd"../../intermediate\RibbonGUI/Debug/" /W3 /nologo /c /ZI /TP > > /errorReport:prompt > > Now as I look at it, I see that all the defines are from the 1.8 build, but > > I have no idea what needs to be defined there. > > ok, I'll try to dump what the cmake generated projects use as a > reference. In general all of the OSG_WITH_* stuff is now inside > OSGConfigured.h so that doesn't have to be carried around anymore. >
ok for a debug (/0d /MD) project the cmake generated solutions compiles with the following settings: cl /Od <some include paths here> /D "WIN32" /D "_WINDOWS" /D "_WIN32_WINNT=0x0400" /D "WINVER=0x0400" /D "OSG_DEBUG" /D "BOOST_ALL_DYN_LINK" /D "CMAKE_INTDIR=\"Debug\"" /D "SMC_COMPILESMCSTRUCTURELIB" /D "_WINDLL" /D"_MBCS" /FD /EHsc /MD /Fo"SMCStructure.dir\Debug" /Fd"P:/user/gerrit/Projects/foobar.build/bin/Debug/SMCStructure.pdb" /W1 /c /Zi /TP /Zm1000 The one's I don't see in your command line are BOOST_ALL_DYN_LINK and the definition of the minimum Windows version. Additionally you have _CRT_SECURE_NO_WARNINGS, which should not be a problem and GLEW_STATIC which might be problematic, depending which runtime settings (should be /MD too) were used to compile this lib. kind regards, gerrit ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
