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

A forum to store posts deemed exceptionally wise and useful
noreg
Posts: 158
Joined: Fri Jun 23, 2006 6:01 pm
Location: continental europe

Post by noreg »

I'm using the devpak from spintz site and tried it with devcpp and codeblocks (pointing to the devpak from devcpp) using MINGW. It compiles fine but i get a linker error : cannot find -ld3dx8. I tried it with and without the linker options, i tried Ackis tools, i tried different devpaks.

And now Hybrid tells me that he gives up. That takes all my hope to get Dx compiled under mingw. Is there ANYBODY who did get it compiled?

Guess the precompiled dll's have not been done with mingw.
garrittg
Posts: 117
Joined: Wed Apr 20, 2005 6:17 pm
Location: Iowa, USA
Contact:

Post by garrittg »

greetings noreg :) did my MingW/codeblocks build from a couple posts back not work for you?

http://www.gprogs.com/irrlicht.mod/IrrDX_v1_2.zip
noreg
Posts: 158
Joined: Fri Jun 23, 2006 6:01 pm
Location: continental europe

Post by noreg »

Hi Garret, thanks for your work and the fast answer. It worked out of the box for dx8, so does my own compilation. For dx9 it did probably work, if you added d3dx9_31.dll in the same folder.
Without it, it lacks of support for high level shaders :( Can you tell us, how you did it?
garrittg
Posts: 117
Joined: Wed Apr 20, 2005 6:17 pm
Location: Iowa, USA
Contact:

Post by garrittg »

im using codeblocks, although once you convert the .lib to a .a file from the DX9 SDK you should be able to use DevCPP just as easily. for DX9 i used the instructions provided by FrostLord on pg 5 of the posts.

for DX81 there are only two ways i know of to get it working. the first used to be the DevPak for DevCPP which i havent been able to get to work since Irrlicht v1.0. the second is using the Clootie DX81 wrap DLL. to get this to work you will need the header files from the DX81 SDK (google for the DX81 SDK) and the .a/.dll distribution from here:

http://www.gprogs.com/irrlicht.mod/DX_81_a_files.zip

in addition to the DX9 instructions from FrostLord, you will need to:

- add -D_IRR_COMPILE_WITH_DIRECT3D_8_ to your linker settings

- add the INCLUDE folder of the DX81 SDK to your compiler directories or directly copy the files in your INCLUDE folder (as you prefer) and add libd3dx81ab.a to your linker options

NOTE: you will need to distribute D3DX81ab.dll with your application.

i think it is important to note that the conversion of the DX9 lib file that FrostLord describes is not possible with the DX81 SDK for some reason. the REIMP program just wont work on it. for that matter, ive only been able to use REIMP on the newest release (OCT/2006) of the DX9 SDK so something has changed in the DX9 LIB files.

good luck :)
garrittg
Posts: 117
Joined: Wed Apr 20, 2005 6:17 pm
Location: Iowa, USA
Contact:

Post by garrittg »

here is a precompiled DX9/DX8 compatible v1.3 Irrlicht.dll and libIrrlicht.a.

http://www.gprogs.com/irrlicht.mod/IrrDX_v1_3.zip

please see prior post on how it was built (same as the v1.2 i release). this one is a bit different in that it is UPX'd for size. i tested with all demos using all drivers and it seemed to work fine. if you have any problems with it crashing right away please let me know.
sadjoker
Posts: 1
Joined: Sun Dec 17, 2006 1:07 pm

Post by sadjoker »

thank you dude :)
garrittg
Posts: 117
Joined: Wed Apr 20, 2005 6:17 pm
Location: Iowa, USA
Contact:

Post by garrittg »

here is a precompiled DX9/DX8 compatible v1.3.1 Irrlicht.dll and libIrrlicht.a.

http://www.gprogs.com/irrlicht.mod/IrrDX_v1_3_1.zip

please see prior post on how it was built (same as the v1.3 release).
klikmaster
Posts: 40
Joined: Mon Sep 11, 2006 1:06 pm

Post by klikmaster »

Thanks a lot garrittg, really needed this! 8)

Is there a good tutorial for compiling Irrlicht in devc++ because I really ought to know how, and I can't find any decent tuts.
~IRRLICHT ROX MY SOX~
garrittg
Posts: 117
Joined: Wed Apr 20, 2005 6:17 pm
Location: Iowa, USA
Contact:

Post by garrittg »

here is a precompiled DX9/DX8 compatible v1.4 Irrlicht.dll and libIrrlicht.a. please note this is untested at this point.

http://www.gprogs.com/irrlicht.mod/IrrDX_v1_4.zip
renegadeandy
Posts: 122
Joined: Sun May 25, 2008 11:14 pm
Location: Scotland
Contact:

Post by renegadeandy »

god im special :oops:

works now - using DIRECT3D9 a strange star like shape is in the middle of my screen tho! odd!
spearfire
Posts: 11
Joined: Sat Apr 12, 2008 10:26 am

Post by spearfire »

garrittg wrote:here is a precompiled DX9/DX8 compatible v1.4 Irrlicht.dll and libIrrlicht.a. please note this is untested at this point.

http://www.gprogs.com/irrlicht.mod/IrrDX_v1_4.zip

THANK you very much!!!
it works but there are some graphical issues and some parts of my models has disapeard

i tried to compile it irrlicht 1.4 with direct x 9 support for 3 day's with devc++ but no good at all :(

i hope you or some else can optimize the code

THank you very much it was a great help for me!!! :D :D :D :D :D
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

It's probably a DX based error, not an error with the DLL, there's often differences in the way DX and OGL render things so you can't expect to switch between them and not see differences.

Post in the beginners forum with your problems and someone might be able to help :)
Image Image Image
xsinick
Posts: 18
Joined: Fri Aug 10, 2007 12:05 am

Post by xsinick »

oops Not so . Your dll for 1.31 was perfect but this dx one for 1.4 has errors in the writing of alphas or zwriting or something cause modes look messed up.

you should fix this soon or your 1.4 efforts may go to waste .

good job bro.
garrittg
Posts: 117
Joined: Wed Apr 20, 2005 6:17 pm
Location: Iowa, USA
Contact:

Post by garrittg »

here is a precompiled DX9/DX8 compatible v1.4.1 Irrlicht.dll and libIrrlicht.a. this was compiled using the newest CodeBlocks and MingW 5.1.3. the DLL ended up a bit bigger than normal, but i made sure NDEBUG was set so i guess this is the new size. it is UPXd.

http://www.gprogs.com/irrlicht.mod/IrrDX_v1_4_1.zip
torleif
Posts: 188
Joined: Mon Jun 30, 2008 4:53 am

Post by torleif »

fantastic work! :D
Post Reply