Hi Luigi (Calori) and others,

There seems to be an issue with Visual Studio 8 Express 32 bit debug build.

When I ran CMakeSetup (2.4.6) it created a VS 8 solution file for
OpenSceneGraph but not for OpenThreads. I already had the existing VS 8
project files for OpenThreads, so I re-ran these to produce the
OpenThreadsWin32d_s.lib file.
Then I loaded the new OpenSceneGraph solution and since it was highlighted
built the ALL_BUILD (debug) project. 11 of the projects failed to build. The
build environment was invoked using the "Microsoft Platform SDK for Windows
Server 2003 R2" SetEnvLaunchWinXP32Debug.Cmd. The final statistics of the
build were:

43 succeeded, 11 failed, 0 skipped

Looking at just the osg build, I got osg - 48 error(s), 226 warning(s)

All of these errors/warnings are due to a build conflict between
OpenSceneGraph and OpenThreads, and I have no idea how to resolve the
problem when everyone using VS8 Express seems to get a clean build.

Suggestions? The one thing that comes to mind is reinstalling VS8 and the
PSDK, but I am just not convinced that this will actually fix anything.

One other point - where is the "Mike 3dparty dependency package" held?

Regards

PhilT

My VS8 Express includes SP1.

==========================================================================
Typical VS8 Express build errors
 -- do VS8 Standard & Professional editions suffer the same problem?
==========================================================================

2>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::~basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >(void)"
([EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@std@@[EMAIL 
PROTECTED])
already defined in OpenThreadsWin32d_s.lib(Win32Thread.obj)

==============

2>LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other
libs; use /NODEFAULTLIB:library

==============

2>dxtctool.obj : warning LNK4217: locally defined symbol
[EMAIL PROTECTED]@@[EMAIL PROTECTED]@Z (public: __thiscall
OpenThreads::Barrier::Barrier(int)) imported in function "public: __thiscall
std::_Tree<class std::_Tset_traits<class osg::ref_ptr<class
osg::Program::PerContextProgram const >,struct std::less<class
osg::ref_ptr<class osg::Program::PerContextProgram const > >,class
std::allocator<class osg::ref_ptr<class osg::Program::PerContextProgram
const > >,0> >::~_Tree<class std::_Tset_traits<class osg::ref_ptr<class
osg::Program::PerContextProgram const >,struct std::less<class
osg::ref_ptr<class osg::Program::PerContextProgram const > >,class
std::allocator<class osg::ref_ptr<class osg::Program::PerContextProgram
const > >,0> >(void)"
([EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@@
osg@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@osg@@@osg@@@std@@V?$a
[EMAIL PROTECTED]@[EMAIL PROTECTED]@osg@@@osg@@@[EMAIL PROTECTED]@@std@@@
std@@[EMAIL PROTECTED])

==============

2>TextureRectangle.obj : warning LNK4049: locally defined symbol
[EMAIL PROTECTED]@@[EMAIL PROTECTED]@Z (public: __thiscall
OpenThreads::Barrier::Barrier(int)) imported

==============



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Luigi Calori
Sent: 04 April 2007 11:14
To: osg users
Subject: Re: [osg-users] cmake and VS8


Robert Osfield wrote:
Hi philip:
I work with VS 7.1, I do like that:

1) checkout OpenThreads and OpenSceneGraph under the same parent dir
(this is  not strictly required, just common practice)
2) make a common install dir where to install OT and OSG
3) create two empy building dir for OT and OSG
4) configure (using CmakeSetup) OT with install prefix set up to common
install
5) open generated VS projects inside  OT build dir, build the  Install
target  (I suggest do it in both Debug and Release, so to build and
iinstall both)
6) download and expand Mike 3dparty  dependency package side to OT and
OSG sources
7) configure (using CmakeSetup) OSG with install prefix set up to common
install, use the Gui  to eventually  select optinal parts
(examples,wrappers)
8) open VS .sln solution in OSG build dir and build target you like.

I'm trying to set up a script to automatixe these steps, I ' ll post
when available, let me know weather this is setup could fit your needs.
I' m also trying to automatically building .bat setup to set env-var for
running examples.

Regards
                 Luigi

> Hi Philip,
>
> On 4/3/07, Philip Taylor <[EMAIL PROTECTED]> wrote:
>
>> Just setting the source code and build directories to the top level OSG
>> directory was indeed the answer. (It still failed because I have to
>> add the
>> OPENTHREADS_INCLUDE_DIR and OPENTHREADS_LIBRARY environmental
>> variables, but
>> it got well beyond the SETUP_PLUGIN problem.)
>
>
> I believe that if you have OpenThreads and OpenSceneGraph placed in
> the same directory then the CMake scripts for finding OpenThreads
> should find it.
>
> Perhaps Luigi can jump in here as he's the author of much of the
> Windows side.
>
>
> Robert.
> _______________________________________________
> osg-users mailing list
> [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/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to