Apparently, both Config files apparently are build indeed by CMake but aren't
located at the right place (into Mypath/OpenScenegraph-build/include instead of
Mypath/include). Don't remember if I had to relocate them manually with 2.6.1.
About the warnings when linking my end-user applicationI don't know yet.
I'm recompiling the osg distribution with these Config files set at the right
place. I'll see if it removes them when linking with my application (they're
don't prevent it from compiling, but they're a pain you know for you to see
your own warnings and potential errors).
Thanks for the clue !
Christophe
----- Original Message -----
From: Frauciel Luc
To: OpenSceneGraph Users
Sent: Thursday, February 19, 2009 10:22 AM
Subject: Re: [osg-users] OSG 2.8.0 compilation
>2) I got errors coming from include of missing files : osg/Config and
OpenThreads/Config. I'm not pretty familiar with these but while looking at
their content inside my OpenSceneGraph 2.6.1 distribution it seems that they
are normally generated by CMake.
Since 2.7.something I guess, there are some platform specific includes
(osg/Config OpenThreads/Config) that you have to include to compile OSG
applications.
You have to set OSG_GEN_INCLUDE_DIR to Mypath/OpenScenegraph-build/include
By setting env variable OSGDIR to osg source directory and OSG_DIR to osg
build directory, CMake scripts should find everything.
Luc
Luc FRAUCIEL - BRGM
Unité Calcul, 3D et réalité virtuelle
Service Systèmes et Technologies de l'Information
3, av C. Guillemin BP 36009 - 45060 Orléans Cedex 2, France
Tél. 02 38 64 35 65
Fax 02 38 64 39 70
----------------------------------------------------------------------------
De : [email protected]
[mailto:[email protected]] De la part de
Christophe.medard
Envoyé : mercredi 18 février 2009 19:10
À : [email protected]
Objet : [osg-users] OSG 2.8.0 compilation
Hi All,
While planning to test my end-user application with OpenSceneGraph 2.8.0,
after having compiled the latter from the source download I have the following
issues during compilation/linking I didn't have with 2.6.1 :
1) The linking beats the record of warning numbers (approximately 4000
warnings), all being the same :
warning C4251 : [osgClass]::[_osgmember] : class 'osg::ref_ptr<T>' needs to
have dll-interface to be used by clients of [osgClass]
2) I got errors coming from include of missing files : osg/Config and
OpenThreads/Config. I'm not pretty familiar with these but while looking at
their content inside my OpenSceneGraph 2.6.1 distribution it seems that they
are normally generated by CMake.
Does anyone else have these problems ??
I'm building on WindowsXP using Visual Studio 2005.
Best,
Christophe.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org