[DevC++] dll with directx 9.0c support available
[DevC++] dll with directx 9.0c support available
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
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
Last edited by metalseb on Mon Mar 07, 2005 7:35 pm, edited 2 times in total.
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 !
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 !
-
- Posts: 448
- Joined: Tue Oct 05, 2004 3:24 am
- Location: Boston, MA
Worked like a charm, Thank you!
Irrlicht Moderator || Game Designer
Learn the basics at </dream.in.code>
Learn the basics at </dream.in.code>
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.
DO NOT UNINSTALL THE PREVIOUS DIRECTX PACKAGE OR THE IRRLICHT LIBRARY COMPILATION WILL FAIL. YOU HAVE BEEN WARNED !
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.
The archive on my website has been updated though.
Enjoy !
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.
DO NOT UNINSTALL THE PREVIOUS DIRECTX PACKAGE OR THE IRRLICHT LIBRARY COMPILATION WILL FAIL. YOU HAVE BEEN WARNED !
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.
The archive on my website has been updated though.
Enjoy !