Irrlicht 1.5 compiled for CodeGear™ RAD Studio 2009

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Gendo Ikari
Posts: 19
Joined: Mon Apr 13, 2009 5:42 pm

Irrlicht 1.5 compiled for CodeGear™ RAD Studio 2009

Post by Gendo Ikari »

I've downloaded and compiled Irrlicht 1.5 for/with CodeGear RAD Studio 2009 (C++ Builder 2009).
I've worked with code in order to make C++ Builder compile Irrlicht, and i achieve to build the library.
However i've found many problems to link the library with D3D8, D3D9, and with jpeg support. At the moment, the compiled dll DOES NOT CONTAIN directx support and jpeg support.
I need help about this point. I've read all stuff about C++ Builder in this forum and using google. I still need help about this point.
Is there anybody who has the aknowledge to help me to compile Irrlicht with C++ Builder?

EDIT:
I've managed to compile the DLL with DirectX9 driver. I've updated the files.

Please, help me also to test compiled library, finding bugs.

Irrlicht 1.5 source that i used for compilation.
Sha1: CABD6618636015DEA6B0138339517E025E840E8E

cppbIrrlicht archive
Sha1: DAFC3032F67D305C4382FA6AB27F50F69EC7DFE9

Download here!
Last edited by Gendo Ikari on Tue Apr 14, 2009 12:43 pm, edited 1 time in total.
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Post by christianclavet »

I don't know why the JPG library won't compile along with the IRRlicht one, but for the DIRECTX you'll need the DIRECTX SDK.

Check into the project files for a file named IRRCOMPILECONFIG that put the defines or what is being compiled into the library.

If you are on VISTA the DIRECTX 8.0 won't be present. (or work anyway)
Gendo Ikari
Posts: 19
Joined: Mon Apr 13, 2009 5:42 pm

Post by Gendo Ikari »

I had downloaded the last Directx SDK, and i had the intention to compile Irrlicht with DirectX 9, but many errors raised compiling Directx 9 SDK code. I'll try soon and i'll post everything.
About jpeg, in one .c file there are many EXTERNAL declaration, and linker doesnt find the functions. Maybe i need some extra dll.
Gendo Ikari
Posts: 19
Joined: Mon Apr 13, 2009 5:42 pm

Post by Gendo Ikari »

d3dx9math.inl

//--------------------------
// 2D Vector
//--------------------------

D3DXINLINE FLOAT D3DXVec2Length
( CONST D3DXVECTOR2 *pV )
{
#ifdef D3DX_DEBUG
if(!pV)
return 0.0f;
#endif

#ifdef __cplusplus
return sqrtf(pV->x * pV->x + pV->y * pV->y);
#else
return (FLOAT) sqrt(pV->x * pV->x + pV->y * pV->y);
#endif
}

[BCC32 Error] d3dx9math.inl(1588): E2451 Undefined symbol 'f32'

If i add this line at the top of file:
#ifndef f32
#define f32 float

happens this:

D3DXINLINE
D3DXMATRIX::D3DXMATRIX( FLOAT f11, FLOAT f12, FLOAT f13, FLOAT f14,
FLOAT f21, FLOAT f22, FLOAT f23, FLOAT f24,
FLOAT f31, FLOAT f32, FLOAT f33, FLOAT f34,
FLOAT f41, FLOAT f42, FLOAT f43, FLOAT f44 )


[BCC32 Error] d3dx9math.inl(777): E2176 Too many types in declaration
Gendo Ikari
Posts: 19
Joined: Mon Apr 13, 2009 5:42 pm

Post by Gendo Ikari »

I've played with #define f32 float and #undef f32, and i've compiled the library WITH directx 9.

I've the debug dll and the release dll. But when i compile an example with release dll, i still see the console windows. Is it normal?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yes, unless you disable it.
Gendo Ikari
Posts: 19
Joined: Mon Apr 13, 2009 5:42 pm

Post by Gendo Ikari »

Oh great! I feared the worse :D
Katsumi
Posts: 10
Joined: Fri Feb 27, 2009 9:26 am

Re: Irrlicht 1.5 compiled for CodeGear™ RAD Studio 2009

Post by Katsumi »

Nice, but is there a tutorial to include newest version of Irrlicht in Rad Studio C++Builder 2009?
Post Reply