darkkeeper
2006-02-28
Hello,
I have trouble compiling the ReplicantBody source. I tried to follow the documentation but I couldn't even find the "setup_env.bat" in the downloaded source. Thus, I get errors that Cal3D and OSG are missing.
____________________
Compiling...
Notify.cpp
../include\rvrutils\Notify.h(10) : fatal error C1083: Cannot open include file: 'osg/ref_ptr': No such file or directory
Build log was saved at "file://f:\Programme\ReplicantBody\VisualStudio\vrutils_release\BuildLog.htm"
vrutils - 1 error(s), 0 warning(s)
------ Build started: Project: ConfigScript, Configuration: Release Win32 ------
Linking...
LINK : fatal error LNK1181: cannot open input file 'rvrutils.lib'
Build log was saved at "file://f:\Programme\ReplicantBody\VisualStudio\ConfigScript_release\BuildLog.htm"
ConfigScript - 1 error(s), 0 warning(s)
------ Build started: Project: ReplicantBody, Configuration: Release Win32 ------
Compiling...
SubMeshDrawable.cpp
../include\rbody\osg\SubMeshDrawable.h(5) : fatal error C1083: Cannot open include file: 'osg/Drawable': No such file or directory
ReplicantBodyMgr.cpp
../include\rbody\osg\ReplicantBodyMgr.h(12) : fatal error C1083: Cannot open include file: 'osg/Referenced': No such file or directory
OsgBodyCallback.cpp
../include\rbody\osg\OsgBodyCallback.h(6) : fatal error C1083: Cannot open include file: 'osg/Notify': No such file or directory
OsgBody.cpp
../include\rbody\Body.h(15) : fatal error C1083: Cannot open include file: 'cal3d/cal3d.h': No such file or directory
GeometryContainer.cpp
../include\rbody\osg\GeometryContainer.h(20) : fatal error C1083: Cannot open include file: 'osg/ref_ptr': No such file or directory
NamedCoreBodies.cpp
../include\rbody\CoreBody.h(17) : fatal error C1083: Cannot open include file: 'cal3d/cal3d.h': No such file or directory
CoreBody.cpp
../include\rbody\CoreBody.h(17) : fatal error C1083: Cannot open include file: 'cal3d/cal3d.h': No such file or directory
Body.cpp
../include\rbody\Body.h(15) : fatal error C1083: Cannot open include file: 'cal3d/cal3d.h': No such file or directory
AnimationHandler.cpp
../include\rbody\AnimationHandler.h(8) : fatal error C1083: Cannot open include file: 'cal3d/cal3d.h': No such file or directory
AnimationActivityHandler.cpp
../include\rbody\AnimationHandler.h(8) : fatal error C1083: Cannot open include file: 'cal3d/cal3d.h': No such file or directory
AnimationActionHandler.cpp
../include\rbody\AnimationHandler.h(8) : fatal error C1083: Cannot open include file: 'cal3d/cal3d.h': No such file or directory
ActRequestArg.cpp
../include\rbody\ActRequestArg.h(6) : fatal error C1083: Cannot open include file: 'osg/Vec3': No such file or directory
Build log was saved at "file://f:\Programme\ReplicantBody\VisualStudio\ReplicantBody_release\BuildLog.htm"
ReplicantBody - 12 error(s), 0 warning(s)
---------------------- Done ----------------------
Build: 0 succeeded, 3 failed, 0 skipped
___________________
Where can I set the paths, so RBody will compile?
I use Visual Studio 7.1
darkkeeper
2006-02-28
Okay I've fixed the errors. Everything compiles fine now.
Maybe it will help some Visual Studio beginners, like me:
____________________________
Go to your project properties->
under C/C++ ->General ->Additional Include Directories-> add the Cal3D & OSG source folders
under Linker->General->Additional Library Directories-> add the Cal3D & OSG lib folders
do this for each project contained in the ReplicantBody solution.
_______________
Is there a way to set this globally for the entire solution instead of doing this for each project? I couldn't find any appropriate settings in the solution properties.
Thank you.
Now I can finally begin to put my characters into Delta3D :)
Anders Backman
2006-04-07
Yes there is,
use the set INCLUDE=c:\tools\OpenSceneGraph\include;otherpath;nextpath;%INCLUDE%
for include files and
set LIB=c:\tools\OpenSceneGraph\lib;otherpath;%LIB%
Then start VisualStudio .NET with:
devenv /useenv
The /useenv will use the LIB and INCLUDE environmentvariables when building.
Just make sure you execute the vcvars32.bat that lies in the "c:\program files\Microsoft Visual Studio .NET 2003\VC7\bin\ (as installed by default)