Step-By-Step Guide To Installing ODE From CVS
From EQUIS Lab Wiki
How to Install the Open Dynamics Engine SDK and Static Libraries
by Kevin Kassil, February 2006
Obtain a recent snapshot of the CVS UNSTABLE branch. If you are not a CVS wiz, one dated 10 February 2006 is available on Sourceforge[1].
Extract the ODE source to a temporary build directory. First we must configure the project for Visual Studio, with the following compile-time options:
- single-precision floating-point arithmetic,
- trimesh support with OPCODE, and
- cylinder collisions.
To do this, run the following BAT file:
VC6/configure-single-trimesh-dcylinder2.bat
Open the VS workspace file "VC6/ode.dsw".
Add three files to the "ode" project under its "Source files" filter. To do this from the Project menu, click "Add Existing Item". Select these three source files:
ode/src/ collision_cylinder_box.cpp collision_cylinder_sphere.cpp collision_cylinder_trimesh.cpp
Perform a batch build, selecting both "Debug" and Release" configurations for each of the OPCODE and ODE projects. When this completes, you will have four static libraries in the lib directory:
OPCODE.lib OPCODE_D.lib ode.lib oded.lib
The two with the D suffix have debugging information; copy them to %LIAV%/Dependencies/lib/Debug. The others should go in %LIAV%/Dependencies/lib/Release.
In MS Visual Studio 2005, open the CAXConcept project properties with Alt-F7. Perform the following actions for both the "Release" and "Debug" configurations.
In the tree on the left, navigate to "Configuration Properties" / "Linker" / "Input". Beside "Additional Dependencies, click the little "..." button. In the list that appears, add the ODE and OPCODE libraries.
On my system, the debug libraries are as follows:
ALUT.lib OpenAL32.lib devil.lib SDL.lib pthreadVC2.lib OgreMain.lib Plugin_OctreeSceneManager.lib ode.lib OPCODE.lib
Similarly, my release libraries are as follows:
ALUT.lib OpenAL32.lib devil.lib SDL.lib pthreadVC2.lib OgreMain_d.lib Plugin_OctreeSceneManager.lib oded.lib OPCODE_D.lib
Finally, copy ODE's include/ode directory to a central place on your system where you keep header files, for example, C:/Kevin/include/ode. Then, add this place (e.g. C:/Kevin/include) to the LIAV project as follows.
From the project properties page (as above), go to "Configuration Properties" / "C/C++" / "General". Beside "Additional Include Directories", click the little "..." button. In the list that appears, add the "include" directory. (Do not add the "include/ODE" directory specifically.)