[osg-users] Building sln for VS 9 with CMAKE results in wrong Paths

2008-06-10 Thread Ariasgore

Hello,

I am trying to build OSG from source, so I followed the explanations 
http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/VisualStudio


Now I got the sln File, opened it, tried to build and ended with sth like 
150 LNK Errors.


I use the standard folder configuration, so that all lib files should be 
placed in lib.
Unfortunately each project links against dependencies in a similar way like 
this-


$(NOINHERIT) kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib 
ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib  ..\..\lib\osgGAd 
..\..\lib\osgUtild ..\..\lib\osgd ..\..\lib\OpenThreadsd glu32.lib 
opengl32.lib


And I get lots of Linker Errors, since I have no idea why cmake (or whoever) 
created a CDUP twice.
Rewriting everything from ..\..\lib\osg to osg (removing the ..\..) 
works but is there another way to do this not spending the whole afternoon 
rewriting those files? :)


Thanks
Samuel 


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Building sln for VS 9 with CMAKE results in wrong Paths

2008-06-10 Thread Vincent Bourdier
Hello

I had the problem, and I solve it using other version or Cmake

Cmake 2.4 for osg2.4
Cmake 2.6 for osg2.5.1

(with VS2005... don't know with VS9)

2008/6/10 Ariasgore [EMAIL PROTECTED]:

 Hello,

 I am trying to build OSG from source, so I followed the explanations
 http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/VisualStudio

 Now I got the sln File, opened it, tried to build and ended with sth like
 150 LNK Errors.

 I use the standard folder configuration, so that all lib files should be
 placed in lib.
 Unfortunately each project links against dependencies in a similar way like
 this-

 $(NOINHERIT) kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib
 ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib  ..\..\lib\osgGAd
 ..\..\lib\osgUtild ..\..\lib\osgd ..\..\lib\OpenThreadsd glu32.lib
 opengl32.lib

 And I get lots of Linker Errors, since I have no idea why cmake (or
 whoever) created a CDUP twice.
 Rewriting everything from ..\..\lib\osg to osg (removing the ..\..)
 works but is there another way to do this not spending the whole afternoon
 rewriting those files? :)

 Thanks
 Samuel
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Building sln for VS 9 with CMAKE results in wrong Paths

2008-06-10 Thread Jean-Sébastien Guay

Hello Samuel,

Unfortunately each project links against dependencies in a similar way 
like this-


$(NOINHERIT) kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib 
ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib  
..\..\lib\osgGAd ..\..\lib\osgUtild ..\..\lib\osgd 
..\..\lib\OpenThreadsd glu32.lib opengl32.lib


I suspect you're using CMake 2.6 with OSG 2.4? The CMake files were not 
compatible with CMake 2.6 at that time. We had to make changes that did 
not land in time for the OSG 2.4 release.


You have two options:
- Get CMake 2.4.x (2.4.8 I guess is the last release of the 2.4 line) 
with OSG 2.4

- Get OSG from SVN or the recent 2.5.2 developer release with CMake 2.6.

Then delete your generated project files and regenerate them.

Hope this helps,

J-S
--
__
Jean-Sebastien Guay[EMAIL PROTECTED]
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org