Skip to content

Instantly share code, notes, and snippets.

@JosePedroDias
Last active February 7, 2021 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JosePedroDias/a0e3ef5c13326200801f7b974e1b4a68 to your computer and use it in GitHub Desktop.
Save JosePedroDias/a0e3ef5c13326200801f7b974e1b4a68 to your computer and use it in GitHub Desktop.
build ODE

Build ODE in Linux

simple approach (can't choose revelant things):

sudo apt add libode-dev

otherwise use premake as explained below

Build ODE in Windows

git clone https://josepedrodias@bitbucket.org/odedevs/ode.git

with visual studio community 2019

premake4 vscode2010 --os=windows --platform=x64 --with-demos 

with cygwin

install cygwin with: https://cygwin.com/setup-x86_64.exe

you must select (tentative):

x64 versions of...
gcc
g++
gmake
thread...

use cygwin prompt and...

cd ode
cd build
./premake4 gmake --os=windows --platform=x64 --with-demos --with-libccd
cd gmake

edit ode.make, adding in line 22 (before the ifs):

DEFINES += -D__CYGWIN32__ -D__MINGW32__

then make!

make config=releasedoubledll ode

premake options (check premake4.lua):

  • TODO

configs (check Makefile):

  • debugsingledll
  • debugdoubledll
  • debugsinglelib
  • debugdoublelib
  • releasesingledll
  • releasedoubledll
  • releasesinglelib
  • releasedoublelib

targets:

  • ode
  • all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment