OgreOde Compilation problem

RND

23-04-2009 15:22:43

Hello everyone,

I am trying to compile OgreOde following by the steps provided by OgreOde Wiki and Ode Wiki.
http://www.ogre3d.org/wiki/index.php/Compile_OgreOde
http://opende.sourceforge.net/wiki/inde ... ll_and_Use)

I built ode with DebugDoubleDLL, DebugDoubleLib, ReleaseDoubleDLL and ReleaseDoubleLib.

I linked DebugDoubleLib to the OgreOde_Core's library dependancies as the wiki said. And then an error message come out-
LINK : fatal error LNK1104: cannot open file 'ode_double.lib'

I have check the path of the additional library depandancies, project depandency.
Can anyone solve this problem? :)

Here's my environment:
OgreSDK version 1.6.1 from ogre3d.org
OgreOde downloaded from SVN these few days
Ode version 0.11 from ode.org
VisualStudio 2005 SP1 (not express)

Chernetcov

23-04-2009 21:15:11

I had similar error, but I worked with ode_singled.
I did n't penetrate into problem, simply set Working Directory in project properties, copied into this directory all necessary *.dll-files and set this folder in Linker->Additional Library Directories

RND

25-04-2009 20:03:51

That means I should put the .lib file needed(e.g. ode_double.lib) into a folder, and then set the working directory of the project to the path of that folder?

toum

26-04-2009 11:37:24

I have similar problem... I'm trying to compile OgreODE dlls debug and release...

What i use:

- Visual C++ express 2005 + SP1
- ODE 0.11.
- Last OgreOde on sourceforge trunk (downloaded on 04/25/2009).

What i have done:

1 - First
- Copy OgreOde (from trunk) to $(OGRE_HOME)/ogreaddons/ogreaddons/ogreode
- Copy ODE 0.11 to $(OGRE_HOME)/ogreaddons/ogreaddons/ogreode/ode
- Copy ODE 0.11 includes to $(OGRE_HOME)/includes/ode. To allow ogre to have the last ode includes.

2 -Second
- Open ogreode\scripts\VC8\OgreOde_Core_SDK.vcproj
- Trying to compile...

Note:
Others includes directory
..\..\include
$(ODE_HOME)\include
$(OGRE_HOME)\include


Others lib dependency directory
"$(ODE_HOME)\lib\debugsinglelib\"
"$(OGRE_HOME)\lib\"


My errors:

LINK : fatal error LNK1104: cannot open file 'ode_singled.lib'
1>Project : warning PRJ0018 : The following environment variables are missingĀ :
1>$(ODE_HOME)


Note: I added new environment variables in my windows XP: ODE_HOME >> C:\OgreSDK\ogreaddons\ogreode\ode (I didn't restart my computer)

It seems that i didn't compile ode no? If yes i don't understand how to compile "ode_singled.lib" and i suppose "ode_single.lib" (release).

Could someone place me in the right road?

Thanks for support !

Toum

dermont

26-04-2009 15:16:42

removed - double post

dermont

26-04-2009 15:17:26

@toum

http://opende.sourceforge.net/wiki/inde ... ll_and_Use)

Something like:
- Open Visual Studio 2005 Command Prompt
- cd ode-0.11/build
- premake4 vs2005
- open ode-0.11/build/vs2005 ode solution, select Batch->Build, select your configurations and Build

If the ODE_HOME environment variables is still giving you problems simply manually set your
path includes/libs.

toum

26-04-2009 20:20:17

@toum

http://opende.sourceforge.net/wiki/inde ... ll_and_Use)

Something like:
- Open Visual Studio 2005 Command Prompt
- cd ode-0.11/build
- premake4 vs2005
- open ode-0.11/build/vs2005 ode solution, select Batch->Build, select your configurations and Build

If the ODE_HOME environment variables is still giving you problems simply manually set your
path includes/libs.


You are god man!!!

Thanks a lot !!!

Now i have OgreOde_Core_d.dll and OgreOde_Core.dll. I suppose i paste the into OGRE_HOME\bin\Debug and OGRE_HOME\bin\Release.
Modify my Plugin.cfg to add Plugin=OgreOde_Core_d.dll
Yes, no?

What should i do to use ogreOde physics into my own project?

1 - Link OgreOde_Core_d.lib and OgreOde_Core.lib to my project?
2 - Link OGRE_HOME\includes\ode (where the content of this ode is includes of ode 0.11) ?
3 - Link OGRE_HOME\includes\ogreaddons\ogreode\include?

Thanks for your support !!!

Toum

dermont

26-04-2009 21:53:50


Now i have OgreOde_Core_d.dll and OgreOde_Core.dll.


If you have built the OgreOde visual studio solution, you should have 3 dlls/libs (and similar for debug).

lib\Release\OgreOde_Core
loader\lib\Release\OgreOde_Loader
prefab\lib\Release\OgreOde_Prefab


I suppose i paste the into OGRE_HOME\bin\Debug and OGRE_HOME\bin\Release.


You copy your dll's to wherever you are going to run them from. If you've built ode as Release/DebugSingleDLL you will have to copy across the ode dll as well. You may have to update your resources.cfg to point to the OgreOde media dir,e.g:

[OgreOde]
FileSystem=G:\OGRE\ogrev1.6.2\ogreode\demos\Media



Modify my Plugin.cfg to add Plugin=OgreOde_Core_d.dll

It's not a plugin, no need.


What should i do to use ogreOde physics into my own project?

Look at the GranTurismOgre and SimpleScenes demos.