How to get Direct X 8 in Dev-CPP

A forum to store posts deemed exceptionally wise and useful
Vinetu
Posts: 27
Joined: Wed Apr 07, 2004 6:57 am
Location: Lithuania
Contact:

Post by Vinetu »

Please if can someone sent my dll and libs to:
Vinetu@hakeris.net
Very, very please.
"Teach yourself DISCIPLINE."

Your sincerely,
Saulius Šunauskas
l0calh05t
Posts: 68
Joined: Wed Apr 07, 2004 7:08 pm

Post by l0calh05t »

ok, here's the dll's (compiled using mingw/gcc-3.3.1)

http://www.8ung.at/splugs/dxirr.zip

and

http://www.8ung.at/splugs/dxirr-athlonxp.zip

the second one is athlon-xp optimized using the following compiler options:

-march=athlon-xp
-pipe
-fomit-frame-pointer
-mfpmath=sse,387

both are compiled with DirectX8 and DirectX9 suppport.
sorry that the server is so slow.
Raw data for raw nerves

My main PC: Athlon XP 2800+, 512MB RAM, ATI Radeon 9700 Pro 128MB, Win2k SP4
My secondary PC: Pentium III 500 Mhz, 256MB RAM, TNT2 64, Gentoo Linux
Vinetu
Posts: 27
Joined: Wed Apr 07, 2004 6:57 am
Location: Lithuania
Contact:

Post by Vinetu »

Thanks a lot! :D
"Teach yourself DISCIPLINE."

Your sincerely,
Saulius Šunauskas
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Well, after I installed WinXP DevCpp creates the dll !!! :)
But, if I run a compiled irrlicht project, I get an error because zlib.dll (or libz.dll ?) could not be found !?!?! :shock:

I folowed the tutorial exactly...
libjpeg seems to be includet to the irrlicht.dll - why not libz ???
(the parameter -lz is includet, also -ljpeg)

CU, Acki
RoBaTte

Post by RoBaTte »

I've the same problem like James.
during compilation of Irrlicht, I got the error :

'C:\PROGRA~1\DEV-CPP\BIN\DLLWRAP.EXE: Must provide at least one of -o or --dllname options'

I don't know what to do.
ZoE

Post by ZoE »

Hello everybody. I don't know if this helps but I post it anyway.
My name is ZoE and my team and me developed the DirectX90.devpak for use of the DirectX 9.0 SDK (current version 9.0c) with the Dev-Cpp environment (MinGW compiler).
Since I noticed that there is still a wrong link here I would like to update.
Here is our new location:
http://www.g-productions.net
There is the home of the DirectX90.DevPak. Why to use our devpak instead of the one provided with the udpate function of Dev-Cpp?
Because we have (hopefully) the currently most complete DevPak for use of all DirectX components with MinGW.
Thought it might help some of you.

Greets ZoE
error

yup

Post by error »

mine says, that spheremap is undeclared...
Chokito
Posts: 3
Joined: Thu Nov 04, 2004 4:32 am
Location: Belo Horizonte / Brazil

Post by Chokito »

Mine too. The error i got is:

43 C:\Dev-Cpp\irrlicht7custom\Irrlicht\CVideoDirectX8.cpp `SphereMapMatrixD3D8' undeclared (first use this function)

I'm trying to compile the .7 version of Irrlicht with the DirectX90b.DevPak package suggested at the earlier post...

Does anyone knows what's going on?
Chokito
Posts: 3
Joined: Thu Nov 04, 2004 4:32 am
Location: Belo Horizonte / Brazil

Post by Chokito »

Ok, I'm sure a newbie to Irrlicht...

The problem with the dx function were solved (_IRR_COMPILE_WITH_DIRECTX_8_ were not being set...). But even fixing this, I still get errors while trying to build the dll:

[Linker error] undefined reference to `jpeg_std_error'
[Linker error] undefined reference to `jpeg_CreateDecompress'
[Linker error] undefined reference to `jpeg_resync_to_restart'
[Linker error] undefined reference to `jpeg_read_header'
[Linker error] undefined reference to `jpeg_start_decompress'
[Linker error] undefined reference to `jpeg_read_scanlines'
[Linker error] undefined reference to `jpeg_finish_decompress'
[Linker error] undefined reference to `jpeg_destroy_decompress'
[Linker error] undefined reference to `D3DXAssembleShader@28'
[Linker error] undefined reference to `D3DXAssembleShader@28'
C:\Dev-Cpp\irrlicht7custom\Irrlicht\Makefile.win [Build Error] [Irrlicht.dll] Error 1


I double checked the path to jpeg library files and everything seems to be OK. How can I solve this?
Bsdlite

Post by Bsdlite »

Ok, I'm sure a newbie to Irrlicht...

The problem with the dx function were solved ( _IRR_COMPILE_WITH_DIRECTX_8_ were not being set...). But even fixing this, I still get errors while trying to build the dll:

[Linker error] undefined reference to `jpeg_std_error'
[Linker error] undefined reference to `jpeg_CreateDecompress'
[Linker error] undefined reference to `jpeg_resync_to_restart'
[Linker error] undefined reference to `jpeg_read_header'
[Linker error] undefined reference to `jpeg_start_decompress'
[Linker error] undefined reference to `jpeg_read_scanlines'
[Linker error] undefined reference to `jpeg_finish_decompress'
[Linker error] undefined reference to `jpeg_destroy_decompress'
[Linker error] undefined reference to `D3DXAssembleShader@28'
[Linker error] undefined reference to `D3DXAssembleShader@28'
C:\Dev-Cpp\irrlicht7custom\Irrlicht\Makefile.win [Build Error] [Irrlicht.dll] Error 1

I double checked the path to jpeg library files and everything seems to be OK. How can I solve this?
This is the same error that I get whenever I try to recompile the dll; just 100% linker errors to a library that I though (:)) I was pointing to.
Guest

Post by Guest »

Chokito wrote:Ok, I'm sure a newbie to Irrlicht...

I double checked the path to jpeg library files and everything seems to be OK. How can I solve this?
if your using the ones in the source folder, try using the ones in the main folder instead.
Guest

Post by Guest »

I'm having a problem with my build.

It seems theres a file missing.

"glxext.h" is not found is the message I get.

And then I can't compile as a few functions are undeclared... which I assume are in this header file.

If anyone could send me it, I'd be grateful.
Nikata
Posts: 5
Joined: Wed Dec 29, 2004 9:44 pm

Post by Nikata »

Sorry that was me I forgot to log in....


:oops:

And I just looked in my progect and glext.h was there. Even though Dev gave me an error message.

When I compile I get a red line in CVideoDirectX8.cpp, at the line:
" SphereMapMatrixD3D8._11 = 0.5f; SphereMapMatrixD3D8._12 = 0.0f;"
The compile log is :
Compiler: Default compiler
Building Makefile: "D:\Downloads\IRRLICHT_0_7\irrlicht-0.7\source\source\Irrlicht\Makefile.win"
Executing make...
make.exe -f "D:\Downloads\IRRLICHT_0_7\irrlicht-0.7\source\source\Irrlicht\Makefile.win" all
g++.exe -c CVideoDirectX8.cpp -o CVideoDirectX8.o -I"D:/Dev-Cpp/include/c++/3.3.1" -I"D:/Dev-Cpp/include/c++/3.3.1/mingw32" -I"D:/Dev-Cpp/include/c++/3.3.1/backward" -I"D:/Dev-Cpp/lib/gcc-lib/mingw32/3.3.1/include" -I"D:/Dev-Cpp/include" -I"include" -DIRRLICHT_EXPORTS=1 -D_IRR_COMPILE_WITH_DIRECTX_8_=1 -fexpensive-optimizations -O3

CVideoDirectX8.cpp: In constructor `
irr::video::CVideoDirectX8::CVideoDirectX8(const
irr::core::dimension2d<s32>&, HWND__*, bool, bool, irr::io::IFileSystem*,
bool, bool)':
CVideoDirectX8.cpp:43: error: `SphereMapMatrixD3D8' undeclared (first use this
function)
CVideoDirectX8.cpp:43: error: (Each undeclared identifier is reported only once
for each function it appears in.)
CVideoDirectX8.cpp:53: error: `UnitMatrixD3D8' undeclared (first use this

function)

CVideoDirectX8.cpp: In member function `void
irr::video::CVideoDirectX8::createMaterialRenderers()':
CVideoDirectX8.cpp:88: error: syntax error before `(' token
CVideoDirectX8.cpp:89: error: syntax error before `(' token
CVideoDirectX8.cpp:92: error: `CD3D8MaterialRenderer_LIGHTMAP' undeclared
(first use this function)
CVideoDirectX8.cpp:92: error: `lmr' undeclared (first use this function)
CVideoDirectX8.cpp:92: error: syntax error before `(' token
CVideoDirectX8.cpp:103: error: syntax error before `(' token
CVideoDirectX8.cpp:104: error: syntax error before `(' token
CVideoDirectX8.cpp:105: error: syntax error before `(' token

CVideoDirectX8.cpp:106: error: syntax error before `(' token
CVideoDirectX8.cpp:107: error: syntax error before `(' token
CVideoDirectX8.cpp:108: error: syntax error before `(' token

make.exe: *** [CVideoDirectX8.o] Error 1

Execution terminated
Any Ideas?

~Nikata
AmigaIrr
Posts: 94
Joined: Mon Jan 10, 2005 7:55 am
Location: France, Alsace

Post by AmigaIrr »

Can you just upload the .dll please... ?
Flatline
Posts: 49
Joined: Fri Sep 03, 2004 7:46 am
Location: England

Post by Flatline »

Do you want someone to write your game for you as well? If you can't compile the library you're probably going to struggle with an actual game.
Post Reply