Using ODE in your OGRE apps in Windows: very important

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66

Using ODE in your OGRE apps in Windows: very important

Post by sinbad »

For those of you who use ODE in your Windows applications with OGRE, there is a very important build change you need to make to ODE. In the ode\config\Makefile.msvc, change the last few lines to this:

Code: Select all

ifeq ($(BUILD),release)
OPT=2
C_FLAGS+=/Oy /MD
endif

ifeq ($(BUILD),debug)
C_FLAGS+=/MDd
OPT=d
endif
.. note the addition of the /MD[d]. If you don't do this, when running an ODE-enabled application using any of the D3D renderers, it will eventually blow up on an internal method, at a line that reads "_lock_str(stream)". This appears to be a problem with shared memory usage. I think it sometimes blows up GL too, but much less often.

I found this problem when testing both my own test physics apps and the new version of DIE. You have been warned!

[edit]No longer needed for the latest versions of ODE. [/edit]
Last edited by sinbad on Wed Jan 24, 2007 7:37 pm, edited 3 times in total.
Norondion
Gnoblar
Posts: 9
Joined: Sun Oct 27, 2002 2:03 pm
Location: Germany

Post by Norondion »

sinbad, can you please upload a updated ODE.lib. I can't build it myself with GNU make because make.exe seems to ignore my PATH environment variable. :(
AlphaSND
Gnoblar
Posts: 11
Joined: Sun Oct 06, 2002 11:19 pm
Location: France
x 2

Post by AlphaSND »

Would be nice to put this topic 'sticky' as it's really important.
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66

Post by sinbad »

AlphaSND: It's sticky now.

Norondion: I'm uploading a new version of the VC dependencies (0.11.0) ready for the next release anyway, you can download that soon from the SF file page
User avatar
gerds
Goblin
Posts: 260
Joined: Mon Sep 01, 2003 3:59 am
Location: London, United Kingdom
x 1

Post by gerds »

I made the above changes and rebuilt ODE in release mode.

Then my ogre app wont link any more :(
It has "about 8 multiple link problems" with MSVCRT.

After trying to get it to link for about half an hour I gave up
and changed the make file back again. Rebuilt ODE and it
fixed everything.

Let me know if you had to tweak your MSVC app setup
after rebuilding ODE to be able to link properly.

Thanks
-Gerds
User avatar
SpannerMan
Gold Sponsor
Gold Sponsor
Posts: 446
Joined: Fri May 02, 2003 10:05 am
Location: UK

Post by SpannerMan »

Im a total noob when it comes to compiling stuff from the command line with the 'make' command, so I had a little trouble compiling ODE - and this is with following the INSTALL instructions that come with ODE :?

Anyway, in case any fellow noobs out there need some tips to fortify the INSTALL instructions (compiling in windows), here they are:

1) It is suggested that you download a GNU make app 'make.exe' - put this into your root ode directory ( e.g. \ode-0.039 ).

2) Create a lib directory in this root directory ( e.g. \ode-0.039\lib ).

3) In a command prompt, after running your vcvars32.bat file, change directory to the root ode directory. From here you can run all the make commands ( e.g. make ode-lib )

Hope that helps someone. I was getting a 'cannot open file "lib/ode.lib"' link error... because I didnt create a lib directory. DOH!!
nfz
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 1263
Joined: Wed Sep 24, 2003 4:00 pm
Location: Halifax, Nova Scotia, Canada

Post by nfz »

If you get ODE from SF through cvs then it comes with a VC6 folder with all the project files built for you so you can build right in the VC IDE.
alvaro

Post by alvaro »

hello,

I have successfully compiled ode with ogre under msvc6 sp5
I remember that i have downloaded some msvc project files and instructions. And then i had to comment 3 lines on VC6 malloc.h file.
Other
Gnoblar
Posts: 5
Joined: Tue Apr 26, 2005 5:00 pm

Post by Other »

Hello!

There was no forum for ODE. May be its a reason, some people think it would be complex. I decided to create one:

http://lofing.de/simulator/modules/newbb_plus/

Hope u like it.

I mean its for specific ODE discussions.
---------------------
Irrlicht forever ;-)
User avatar
psyclonist
OGRE Expert User
OGRE Expert User
Posts: 286
Joined: Fri Nov 01, 2002 3:54 pm
Location: Berlin & Nuremberg, Germany
x 1

Post by psyclonist »

Other wrote:Hello!

There was no forum for ODE. May be its a reason, some people think it would be complex. I decided to create one:

http://lofing.de/simulator/modules/newbb_plus/

Hope u like it.

I mean its for specific ODE discussions.
You noticed that there's an ODE specific forum already?
People told you on the mailing list ;)

-> http://ode.petrucci.ch/

-psy
Other
Gnoblar
Posts: 5
Joined: Tue Apr 26, 2005 5:00 pm

Post by Other »

psyclonist wrote:
Other wrote:Hello!

You noticed that there's an ODE specific forum already?
People told you on the mailing list ;)

-> http://ode.petrucci.ch/

-psy
Yeah ;-) cool!

I just have problems to register there:

http://ode.petrucci.ch/viewtopic.php?t=180

I don't know for sure, but I think there is no administration at all,
is it? What a bummer - I wanted ask them somthing really important!
I did in "Offtopic" - but nobody answer... however

And my portal I use for my new project - MyWorld:
the same address: http://www.lofing.de/simulator
---------------------
Irrlicht forever ;-)
User avatar
monster
OGRE Community Helper
OGRE Community Helper
Posts: 1098
Joined: Mon Sep 22, 2003 2:40 am
Location: Melbourne, Australia

Post by monster »

Try the ODE mailing list, that's where most of the folks hang out;
http://q12.org/mailman/listinfo/ode
User avatar
Aklix
Goblin
Posts: 222
Joined: Mon Dec 27, 2004 5:21 am

Post by Aklix »

I noticed that an ode.lib comes with the ogre 1.0.2 sdk for VC 2003. Is this full ode that's compatible with ogre or is this a smaller version of ode that's used for simple ogre stuff?
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 7

Post by haffax »

This is a full-functional ODE-0.5 version.
team-pantheon programmer
creators of Rastullahs Lockenpracht
User avatar
Aklix
Goblin
Posts: 222
Joined: Mon Dec 27, 2004 5:21 am

Post by Aklix »

Good to know. It's awesome how you guys think ahead to "what will the end developer want."
hara04
Gnoblar
Posts: 11
Joined: Sat Jul 09, 2005 12:13 am

Post by hara04 »

Is this bug still there? OP was posted 2 years ago.
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66

Post by sinbad »

Yep. It's not a bug, it's just a feature of the default ODE build, they use a different runtime library to us, and you have to make them agree.
rdaneel
Gnoblar
Posts: 18
Joined: Thu May 25, 2006 9:54 am

Newbie question No ode\config\Makefile.msvc

Post by rdaneel »

Hello,

I have no Makefile.msvc for ode..

all i have is a user-settings file with the following:

PLATFORM=msvc-dll-cygwin
PRECISION=DOUBLE
BUILD=debug
WINDOWS16=0

The framerate we currently get is pretty awful and i was hoping to try release mode.. any help would be much appreciated..
User avatar
nikki
Old One
Posts: 2730
Joined: Sat Sep 17, 2005 10:08 am
Location: San Francisco
x 13

Post by nikki »

I found this problem when testing both my own test physics apps and the new version of DIE. You have been warned!
What's DIE?
User avatar
neocryptek
Gnome
Posts: 335
Joined: Sat Mar 01, 2003 11:21 pm
Location: Idaho, USA

Post by neocryptek »

nikki wrote:
I found this problem when testing both my own test physics apps and the new version of DIE. You have been warned!
What's DIE?
http://die.sourceforge.net/
A car deathmatch game from Wolfman8k, wow that was a long time ago.