DirectX9c in DevC -in 10 EZ steps

A forum to store posts deemed exceptionally wise and useful
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

Sorry man, I have newer runed to problems like that and I can't help you (I am not that great in programing myself)

As for dll I saw that you already solwed it on beginers forum...
Pink Floyd
Posts: 32
Joined: Fri Jan 21, 2005 9:32 pm
Location: Genoa (Italy)

Post by Pink Floyd »

Never mind, I finally got the dll :D
me me me

Post by me me me »

There is much easier way to do this.... :p....worked for me right away..should i bother posting? 8)
Guest

Post by Guest »

me me me wrote:There is much easier way to do this.... :p....worked for me right away..should i bother posting? 8)
Yes
TheRLG
Posts: 372
Joined: Thu Oct 07, 2004 11:20 pm

Post by TheRLG »

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:

Code: Select all

-DIRRLICHT_EXPORTS=1
-D_IRR_COMPILE_WITH_DIRECTX_8_=1
-D_IRR_COMPILE_WITH_DIRECTX_9_=1
3. Make Linker Read:

Code: Select all

--no-export-all-symbols --add-stdcall-alias -lgdi32 -lglu32 -lopengl32
-ld3dx8d
-ld3dx9d
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...
Guest

Post by Guest »

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:

Code: Select all

-DIRRLICHT_EXPORTS=1
-D_IRR_COMPILE_WITH_DIRECTX_8_=1
-D_IRR_COMPILE_WITH_DIRECTX_9_=1
3. Make Linker Read:

Code: Select all

--no-export-all-symbols --add-stdcall-alias -lgdi32 -lglu32 -lopengl32
-ld3dx8d
-ld3dx9d
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...
Thank you I followed the instructions to the T,
but sadly the following error is emitted at the very end :(

F:\Irrlicht\Makefile.win [Build Error] [Irrlicht.dll] Error 255

any thoughts?
TheRLG
Posts: 372
Joined: Thu Oct 07, 2004 11:20 pm

Post by TheRLG »

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?
Guest

Post by Guest »

RabidLockerGnome 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?
Ok, tried it from the start again, but I again got

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

Post by TheRLG »

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.
genesisrage
Posts: 93
Joined: Tue Feb 08, 2005 12:19 pm

Post by genesisrage »

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
Guest

Post by Guest »

make sure u have the directx dll's in ur app folder.
genesisrage
Posts: 93
Joined: Tue Feb 08, 2005 12:19 pm

Post by genesisrage »

yup they are there, plus in my windows/system32 folder (just in case)

but it would be really nice if i didnt need to send additional directx files with a program if they already have directx
Guest

Post by Guest »

any luck with it yet?
genesisrage
Posts: 93
Joined: Tue Feb 08, 2005 12:19 pm

Post by genesisrage »

still nothing, is this a know issue type of thing... that may be fixed in later versions of Irrlicht?

or are we alone on this thing?
it says it supports DirectX and DevC++... guess that it doesnt imply that they work at the same time :cry:
RabidLockerGnome unlogged

Post by RabidLockerGnome unlogged »

it worked for me, and other ppl have used different ways of getting it to work. do u know which error u are getting?

I'd like to nail this thing down so that I can maybe post a tutorial.
Post Reply