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

A forum to store posts deemed exceptionally wise and useful
Post Reply
metalseb
Posts: 15
Joined: Tue Mar 01, 2005 8:50 am
Location: Lille - France
Contact:

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

Post 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
Last edited by metalseb on Mon Mar 07, 2005 7:35 pm, edited 2 times in total.
Guest

Post by Guest »

Why don't you tell us what you did?
bal
Posts: 829
Joined: Fri Jun 18, 2004 5:19 pm
Location: Geluwe, Belgium

Post by bal »

I guess he compiled Irrlicht 0.8 with DevC++ and DirectX9.0c.
General Tools List
General FAQ
System: AMD Barton 2600+, 512MB, 9600XT 256MB, WinXP + FC3
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

*scratches head* Was DX8 and DX9 not working?

All of the modes work for me.
Crud, how do I do this again?
metalseb
Posts: 15
Joined: Tue Mar 01, 2005 8:50 am
Location: Lille - France
Contact:

Post 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
TheRLG
Posts: 372
Joined: Thu Oct 07, 2004 11:20 pm

Post by TheRLG »

bal wrote:I guess he compiled Irrlicht 0.8 with DevC++ and DirectX9.0c.

Ummm yeah...

steps-wise though?
metalseb
Posts: 15
Joined: Tue Mar 01, 2005 8:50 am
Location: Lille - France
Contact:

Post by metalseb »

steps-wise though?
Well, what do you mean by this ? I'm french and I cannot understand the meaning.
Guest

Post 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
metalseb
Posts: 15
Joined: Tue Mar 01, 2005 8:50 am
Location: Lille - France
Contact:

Post 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 !
Soulil
Posts: 6
Joined: Tue Mar 08, 2005 7:52 pm

Post 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 :)
Joe_Oliveri
Posts: 448
Joined: Tue Oct 05, 2004 3:24 am
Location: Boston, MA

Post by Joe_Oliveri »

Worked like a charm, Thank you!
Irrlicht Moderator || Game Designer
Learn the basics at </dream.in.code>
gromito
Posts: 15
Joined: Tue Feb 08, 2005 3:59 pm
Location: Clermont ferrand, FRANCE

Post by gromito »

ca marche c'est d'la balle merci :wink:
Sweenie
Posts: 3
Joined: Wed Mar 09, 2005 12:05 pm
Location: Sweden

Post 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.
metalseb
Posts: 15
Joined: Tue Mar 01, 2005 8:50 am
Location: Lille - France
Contact:

Post 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 !
Guest

Post by Guest »

Has anybody confirmed that this works with irrlicht 0.9?
I'm away from my comp, so I'm not sure.
Post Reply