Page 1 of 9

[DevC++] dll with directx 9.0c support available

Posted: Mon Mar 07, 2005 12:15 pm
by metalseb
Hi folks

Just to help people running around to find how to compile Irrlicht 0.8 with DX8&9 support for DevCpp, I recompiled Irrlicht.dll and uploaded an archive on my webspace containing :

Irrlicht.dll with both DX8 & DX9 support (as well as OPENGL though)
d3dx8d.dll
d3dx9d.dll
libIrrlicht.a
libIrrlicht.def

Get it there : http://metalseb.free.fr/Irrlicht_DX9_su ... mpiled.zip

Be sure it will stay there for a long time but if anybody interested in mirroring, please do.

This post should be changed to a sticky I think :D

Posted: Mon Mar 07, 2005 6:25 pm
by Guest
Why don't you tell us what you did?

Posted: Mon Mar 07, 2005 6:26 pm
by bal
I guess he compiled Irrlicht 0.8 with DevC++ and DirectX9.0c.

Posted: Mon Mar 07, 2005 6:53 pm
by saigumi
*scratches head* Was DX8 and DX9 not working?

All of the modes work for me.

Posted: Mon Mar 07, 2005 7:34 pm
by metalseb
saigumi wrote:*scratches head* Was DX8 and DX9 not working?
All of the modes work for me.
No, There was no DirectX support for the DevC++ version of the library. Sorry I didn't tell that in the first place ! Initial post edited :? :P

Posted: Mon Mar 07, 2005 9:32 pm
by TheRLG
bal wrote:I guess he compiled Irrlicht 0.8 with DevC++ and DirectX9.0c.

Ummm yeah...

steps-wise though?

Posted: Tue Mar 08, 2005 7:09 am
by metalseb
steps-wise though?
Well, what do you mean by this ? I'm french and I cannot understand the meaning.

Posted: Tue Mar 08, 2005 9:16 am
by Guest
Well, what do you mean by this ? I'm french and I cannot understand the meaning.
I think he wants something like this

1.)made this change to file zyx.cpp
2.)made this change to file xyz.h
3.)changed this linker setting in the compiler.
etc etc

Posted: Tue Mar 08, 2005 9:53 am
by metalseb
Okay, I understand now. Well, I just followed some steps described on a post somewhere in the FAQ forum, but anyway, here is a short summary on how I succesfully did it.

1. First of all, get the DX9 DevCpp package. Go to tools/check for updates/package and download the DirectX9 devpak. Installation is automatic after that.

2. Unzip source code of Irrlicht 0.8

3. Open up Irrlicht.dev project in devcpp

4. In project options, go to parameters tabs and enter these two lines in both "Compiler" and "C++ compiler" area, below -DIRRLICHT_EXPORTS=1

-D_IRR_COMPILE_WITH_DIRECTX_8_=1
-D_IRR_COMPILE_WITH_DIRECTX_9_=1

5. In linker area, add these two lines :

-ld3dx8d
-ld3dx9d

6. In directories tab, change libraries and include dirs to you local installed lib and include DevCpp directories

7. Open up IrrConfigConfig.h, located in IrrImpl folder of the project.

8. At the very end of the file, comment all these lines or the library will be compiled without DX9 support, only DX8 will be available.

#if _MSC_VER < 1300
#undef _IRR_COMPILE_WITH_DIRECTX_9_
#pragma message("Compiling Irrlicht with Visual Studio 6.0, support for DX9 is disabled.")
#endif

9. Execute/Rebuild all

10. You get a brand new irrlicht.dll in source code directory or whatever output directory you might have set up in project options/build options/executable output directory

11. Now just try to recompile any of the examples provided with Irrlicht 0.8 archive. Do not forget to include irrlicht.dll d3dx8d.dll d3dx9d.dll in your executable directory or in whatever directory included in your system path. I prefer the first option. d3dx8d.dll and d3dx9d.dll can be found in the DLL subdir of Devcpp location.

12. Last but not least, be sure to have the latest version of DirectX9 installed (Just to check, launch dxdiag from start menu/execute, should be 9.0c) and the latest version of you graphic card drivers.

13. Have a coffee break and enjoy !

Posted: Tue Mar 08, 2005 8:01 pm
by Soulil
merci ;)

It works for me, now i can use DIRECTX to render my scenes compiled with DevC++.

and i say hello to the Irrlicht forum users :)

Posted: Wed Mar 09, 2005 4:57 am
by Joe_Oliveri
Worked like a charm, Thank you!

Posted: Wed Mar 09, 2005 9:51 am
by gromito
ca marche c'est d'la balle merci :wink:

Posted: Wed Mar 09, 2005 12:30 pm
by Sweenie
d3dx8d.dll & d3dx9d.dll are the debug versions aren't they?
Compiling IrrLicht.dll using d3dx8.dll & d3dx9.dll should make the DirectX rendering a bit faster.

Posted: Wed Mar 09, 2005 3:51 pm
by metalseb
Thanks for pointing this out Sweenie. Didn't see that the directx9 package downloaded using "check for updates" only contains debug version of the DX libraries.

Anyway, a bit of googling later, I found another Directx devpak here :

http://www.g-productions.net/page.php?id=23

Download this new devpak somewhere and install it with the devpak manager inside DevCpp.

:twisted: :twisted: DO NOT UNINSTALL THE PREVIOUS DIRECTX PACKAGE OR THE IRRLICHT LIBRARY COMPILATION WILL FAIL. YOU HAVE BEEN WARNED ! :twisted: :twisted:

Re-open the Irrlicht sourcecode project in DevCpp. Change the static link libraries from :

-ld3dx8d
-ld3dx9d

To :

-ld3dx8
-ld3dx9

Yes, the "d" is missing now

CTRL+F11 to rebuild and you will get a brand new Irrlicht.dll in release version. Be sure also to add d3dx8.dll and d3dx9.dll in your executable directory as well. Yes, the "d" is missing there too. :D

The archive on my website has been updated though.

Enjoy !

Posted: Wed Mar 30, 2005 11:09 pm
by Guest
Has anybody confirmed that this works with irrlicht 0.9?
I'm away from my comp, so I'm not sure.