DirectX9c in DevC -in 10 EZ steps
-
- Posts: 32
- Joined: Fri Jan 21, 2005 9:32 pm
- Location: Genoa (Italy)
Recompiling Irrlicht 0.7 with DirectX
Extract source.zip to folder of your choice
## Getting the DevPack ##
Tools...Check for Updates/Packages
1. Select PlanetMirror.com, hit "Check for Updates"
2. Locate and select "DirectX9 DevPack"
3. Hit Download Selected
4. Follow Install Wizard once downloaded
## Setting up the Project ##
1. Open Irrlicht.dev from source folder in Dev-C++...
Project...Project Options...Paramaters
2. Make C++ Compiler read:
3. Make Linker Read:
4. Add Library or Object (Linker Section)
Locate and add "jpeglib/libjpeg.a" and "zlib/libz.a" not from the source folder, but from regular irrlicht folder.
Project Options...Directories
5. (Library Directories) Hit "Delete Invalid". Locate and add "jpeglib" and "zlib" from source folder.
6. (Include Directories) Hit "Delete Invalid". Locate and add "include" from REGULAR irrlicht folder, not source.
## Compiling ##
1. Compile...Rebuild All...
Extract source.zip to folder of your choice
## Getting the DevPack ##
Tools...Check for Updates/Packages
1. Select PlanetMirror.com, hit "Check for Updates"
2. Locate and select "DirectX9 DevPack"
3. Hit Download Selected
4. Follow Install Wizard once downloaded
## Setting up the Project ##
1. Open Irrlicht.dev from source folder in Dev-C++...
Project...Project Options...Paramaters
2. Make C++ Compiler read:
Code: Select all
-DIRRLICHT_EXPORTS=1
-D_IRR_COMPILE_WITH_DIRECTX_8_=1
-D_IRR_COMPILE_WITH_DIRECTX_9_=1
Code: Select all
--no-export-all-symbols --add-stdcall-alias -lgdi32 -lglu32 -lopengl32
-ld3dx8d
-ld3dx9d
Locate and add "jpeglib/libjpeg.a" and "zlib/libz.a" not from the source folder, but from regular irrlicht folder.
Project Options...Directories
5. (Library Directories) Hit "Delete Invalid". Locate and add "jpeglib" and "zlib" from source folder.
6. (Include Directories) Hit "Delete Invalid". Locate and add "include" from REGULAR irrlicht folder, not source.
## Compiling ##
1. Compile...Rebuild All...
Thank you I followed the instructions to the T,RabidLockerGnome wrote:Recompiling Irrlicht 0.7 with DirectX
Extract source.zip to folder of your choice
## Getting the DevPack ##
Tools...Check for Updates/Packages
1. Select PlanetMirror.com, hit "Check for Updates"
2. Locate and select "DirectX9 DevPack"
3. Hit Download Selected
4. Follow Install Wizard once downloaded
## Setting up the Project ##
1. Open Irrlicht.dev from source folder in Dev-C++...
Project...Project Options...Paramaters
2. Make C++ Compiler read:3. Make Linker Read:Code: Select all
-DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -D_IRR_COMPILE_WITH_DIRECTX_9_=1
4. Add Library or Object (Linker Section)Code: Select all
--no-export-all-symbols --add-stdcall-alias -lgdi32 -lglu32 -lopengl32 -ld3dx8d -ld3dx9d
Locate and add "jpeglib/libjpeg.a" and "zlib/libz.a" not from the source folder, but from regular irrlicht folder.
Project Options...Directories
5. (Library Directories) Hit "Delete Invalid". Locate and add "jpeglib" and "zlib" from source folder.
6. (Include Directories) Hit "Delete Invalid". Locate and add "include" from REGULAR irrlicht folder, not source.
## Compiling ##
1. Compile...Rebuild All...
but sadly the following error is emitted at the very end
F:\Irrlicht\Makefile.win [Build Error] [Irrlicht.dll] Error 255
any thoughts?
Okay, not to fret, I think I had the same error....Figuring out what the problem is right now,. Good news, you're probably one step away from compiling it.
EDIT I just re-extracted and followed my own instructions, not a single error. Make sure you're using the exact directories and files I've indicated, for example, not using the "include" folder in the source folder, but from the regular irrlicht folder. Could anyone else try this and see what they get?
EDIT I just re-extracted and followed my own instructions, not a single error. Make sure you're using the exact directories and files I've indicated, for example, not using the "include" folder in the source folder, but from the regular irrlicht folder. Could anyone else try this and see what they get?
Ok, tried it from the start again, but I again gotRabidLockerGnome wrote:Okay, not to fret, I think I had the same error....Figuring out what the problem is right now,. Good news, you're probably one step away from compiling it.
EDIT I just re-extracted and followed my own instructions, not a single error. Make sure you're using the exact directories and files I've indicated, for example, not using the "include" folder in the source folder, but from the regular irrlicht folder. Could anyone else try this and see what they get?
F:\Irrlicht\Makefile.win [Build Error] [Irrlicht.dll] Error 255
Just for completeness I will go over all the steps, maybe I'm just missing something.
1.)I selected PlanetMirror.com and checked for updates
2.)I downloaded DirectX9 DevPack which according to package manager as the following discription "DirectX 9 SDK. Original by Gorobei and Zero Valintine. Updated by Grembo (grembo@swiftdsl.com.au)."
1.)I opened Irrlicht.dev which is located in F:\irrlicht\
2.)the three boxes in my parameters read as follows
Compiler:
-DIRRLICHT_EXPORTS=1
C++ Compiler:
-DIRRLICHT_EXPORTS=1
-D_IRR_COMPILE_WITH_DIRECTX_8_=1
-D_IRR_COMPILE_WITH_DIRECTX_9_=1
Linker:
--no-export-all-symbols --add-stdcall-alias -lgdi32 -lglu32 -lopengl32
-ld3dx8d
-ld3dx9d
../irrlicht-0.7/lib/DevCpp/libz.a
../irrlicht-0.7/lib/DevCpp/libjpeg.a
"libz.a" and "libjpeg.a" are in my normal/non-source irrlicht directory
3.) in my Library directory I have the following
f:\irrlicht\jpeglib
f:\irrlicht\zlib
4.)In my Include directory I have
f:\irrlicht-0.7\include
5.)I then rebuild the whole project
Some other info that might be useful I'm running Dev C++ 4.9.9.0
and I'm on a Win2k box(I seem to have read that Win2k caused some problems?)
Thanks for you help.
I'm not sure about the Win2k problem, see i remember getting that error when i was figuring it out, and im on XP. it was fixed when i linked to the non-source include directory i believe, but there could be something else. everything u posted looks exactly like mine, kinda stumped as to why it wont compile, if u'd like u can zip ur project up and email it to rabidlockergnome@hotmail.com, and ill change the linkage to get it to work on mine. hmmm a lil stumped.
-
- Posts: 93
- Joined: Tue Feb 08, 2005 12:19 pm
any new info on this stuff, ive tried to get this to work, but without any luck.
the project ive been testing is just the simple "hello world" one, but changing the SOFTWARE. on DIRECTX9/8 it give an error when running (not compiling).
or is there something obvious im missing?
[edit]
the error the console window is giving says that directx has not been loaded int the dll... ive gone through the steps above recompiling the dll... still didnt work, but forgot to write down the error, will run it again soon
Was not able to create Direct3D9 device
Was not able to create DirectX9 device
Could not create DirectX9 driver
the project ive been testing is just the simple "hello world" one, but changing the SOFTWARE. on DIRECTX9/8 it give an error when running (not compiling).
or is there something obvious im missing?
[edit]
the error the console window is giving says that directx has not been loaded int the dll... ive gone through the steps above recompiling the dll... still didnt work, but forgot to write down the error, will run it again soon
Was not able to create Direct3D9 device
Was not able to create DirectX9 device
Could not create DirectX9 driver
-
- Posts: 93
- Joined: Tue Feb 08, 2005 12:19 pm
-
- Posts: 93
- Joined: Tue Feb 08, 2005 12:19 pm