[osg-users] Build From Source question

2010-05-21 Thread Sanat Talmaki
Hi,

I've been using osg so far from the pre-built binaries. But I decided to build 
from source and had a few queries along the way:

When I built the solution in VisualStudio 2005:
4 libraries got built (forgive any typos): osgd, osgAnimationd, osgUtild and 
OpenThreadsd.

After that I started getting a bunch of 1104 Linker errors as it could not find 
a certain .lib file. 

My question is that aren't the projects being built sequentially so that the 
libs required for one project are already built by the project before it ? (as 
it tries to search for the .lib in additional dependencies)

So is it recommended to build each project individually rather than Build 
Solution ?

Or am I doing something wrong here ?

Thanks,

Sanat

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=28136#28136





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


Re: [osg-users] Build From Source question

2010-05-21 Thread Martin Naylor
Hi,
I Guess you have run Cmake and located the necessary libs to run OSG, png,
jpeg, etc...
Usually cmake-gui will highlight these in red on the output windows if they
have problem.
Also it could be the 3rd party libs you are linking with, mixing 32bit and
64bit or different VS versions, compiler options..
But that said I have not compiled OSG with VS2005 in a while so it could be
the build, not sure how many people are still using vs2005.
Mine is vs2008 and everything is fine.
Post the linker errors.

Cheers

Martin.





-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Sanat
Talmaki
Sent: 21 May 2010 17:54
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Build From Source question

Hi,

I've been using osg so far from the pre-built binaries. But I decided to
build from source and had a few queries along the way:

When I built the solution in VisualStudio 2005:
4 libraries got built (forgive any typos): osgd, osgAnimationd, osgUtild and
OpenThreadsd.

After that I started getting a bunch of 1104 Linker errors as it could not
find a certain .lib file. 

My question is that aren't the projects being built sequentially so that the
libs required for one project are already built by the project before it ?
(as it tries to search for the .lib in additional dependencies)

So is it recommended to build each project individually rather than Build
Solution ?

Or am I doing something wrong here ?

Thanks,

Sanat

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=28136#28136





___
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] Build From Source question

2010-05-21 Thread Jean-Sébastien Guay

Hi Sanat,


After that I started getting a bunch of 1104 Linker errors as it could not find 
a certain .lib file.


An OSG lib file? If it couldn't find a certain .lib file, it means one 
of the previous projects failed to build. Look higher in the compile 
log, you should see which one failed to build and why.


In other words, the linker error is a symptom of the problem, but there 
will be compiler errors when compiling that lib that will give you the 
root cause.



My question is that aren't the projects being built sequentially so that the 
libs required for one project are already built by the project before it ? (as 
it tries to search for the .lib in additional dependencies)


Yes. CMake generates a solution and projects that will have the 
dependencies properly set.



So is it recommended to build each project individually rather than Build 
Solution ?


No, Visual Studio takes care of that. Build Solution is equivalent to 
right-clicking on the ALL_BUILD project and selecting Build.


ALL_BUILD is a special project that CMake creates that just has 
everything as a dependency. There are other special targets such as 
ZERO_CHECK which makes sure your project files are up to date with the 
CMakeLists.txt files and regenerates them if not, and INSTALL which does 
ALL_BUILD and then copies the build products to the directory you put in 
the CMAKE_INSTALL_PREFIX variable in CMake.



Or am I doing something wrong here ?


Hard to say without knowing the steps you took... You only say "I get 
this error", but didn't say what you did to get to that point, so it's 
hard for us to point out errors in that process if we don't know what 
the process was...


Perhaps looking at the OSG web site would help you start out. 
(PlatformSpecifics/VisualStudio is a good start).


http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/VisualStudio

Hope this helps,

J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   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


Re: [osg-users] Build From Source question

2010-05-23 Thread Sanat Talmaki
Hi,

So I just built each of the projects individually as visual studio was not 
building them in the required order and once one of them didn't have its 
dependencies satisfied, all the following ones would fail in Linking.

After I built the projects, the examples and plugins I built using Build 
Solution.

I'm sure there might have been a shorter way of doing this but I couldn't think 
of, so went with this effort.

Thanks

Sanat

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=28155#28155





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