by metalseb » Tue Mar 08, 2005 9:53 am
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 !