I spend so much time, i can't believe it when it first render a vrml !
Anyway, Joan and Gordon were right, it was all about mixing debug and release version, and I needed to check my VS project file ...
Finally, it was build with Coin3D library and the Inventor plugin fin in the osgsrc/, and it load well VRML 2.0 file or VRML 1.0 file. Some error for file but the visualisation is correct ...
So now, maybe I can send the vcproj file, or directly the plugin, because it was not so easy to build and it may help someone in the future...
Here are the compiler's options:
#################
/O2 /I "C:\Program Files\Coin3d\include" /I "../../../include" /I "../../../../OpenThreads/include" /I "../../../../Producer/include" /I "../../../../3rdParty/include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "_WINDLL" /D "_MBCS" /FD /EHsc /MD /GR /YX"stdafx.h" /Fp".\Release/inventor.pch" /Fo".\Release/" /Fd".\Release/" /W3 /nologo /c /DCOIN_NOT_DLL
#################
Linker's option :
#################
/OUT:"../../../bin/osgdb_iv.dll" /INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\Program Files\Coin3D\lib" /LIBPATH:"../../../lib" /LIBPATH:"../../../../OpenThreads/lib/win32" /LIBPATH:"../../../../Producer/lib" /LIBPATH:"../../../../3rdParty/lib" /DLL /NODEFAULTLIB:"libc.lib libcmt.lib libcd.lib libcmtd.lib msvcrtd.lib" /IMPLIB:".\../../../lib/osgdb_wrl.lib" /MACHINE:X86 OpenThreadsWin32.lib coin2.lib simage1.lib sowin1.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib osgDB.lib osg.lib osgUtil.lib
#################
Thank for your help !
Simon
On 5/19/06, Gordon Tomlinson <[EMAIL PROTECTED]
> wrote:
This can be found on the project properties/settingsUnder C/C++ / Code Generation. Runtime LibraryAnd should be set to"Multi-threaded- Debug DLL (/MDd)" for debug"Multi-threaded- DLL (/MD)" for releaseAlso see this thread on "Care with Mixing Debug and Release Libs" http://www.3drealtimesimulation.com/3dsceneBB/viewtopic.php?t=52Best Regards
Gordon
__________________________________________________________
Gordon Tomlinson
Email : [EMAIL PROTECTED]
YIM/AIM : Gordon3dBrit
MSN IM : [EMAIL PROTECTED]
__________________________________________________________
"Self defence is not a function of learning tricks
but is a function of how quickly and intensely one
can arouse one's instinct for survival"
- Master Tambo Tetsura-----Original Message-----On 5/19/06, Simon ESNEAULT < [EMAIL PROTECTED]> wrote:
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Robert Osfield
Sent: Friday, May 19, 2006 3:55 AM
To: osg users
Subject: Re: [osg-users] VRML 2.0 file loader / WindowsMaybe jOan is right and i need to check my project file, but I don't exactly know the mutli-treads on single threads stuff. I've try different option, but without result, built ok, but crash after, as ever
Without debugging on your machine I can't say why you have a crash, the most likely is a build conflict. Bascially VisualStudio is really flacky when it comes to mixing different types of dll's. They all need to be built with the same options, in the case of the OSG is as a multi-threaded dll. I can't recal where the option lies as I haven't used VS for four years, just have a wander around VS options.
Robert.
_______________________________________________
osg-users mailing list
osg[EMAIL PROTECTED]
http://openscenegraph.net/mailman/listinfo/ osg-users
http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
