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!
Irrlicht 1.5 compiled for CodeGear™ RAD Studio 2009
-
- Posts: 19
- Joined: Mon Apr 13, 2009 5:42 pm
Irrlicht 1.5 compiled for CodeGear™ RAD Studio 2009
Last edited by Gendo Ikari on Tue Apr 14, 2009 12:43 pm, edited 1 time in total.
-
- Posts: 1638
- Joined: Mon Apr 30, 2007 3:24 am
- Location: Montreal, CANADA
- Contact:
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)
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)
-
- Posts: 19
- Joined: Mon Apr 13, 2009 5:42 pm
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.
About jpeg, in one .c file there are many EXTERNAL declaration, and linker doesnt find the functions. Maybe i need some extra dll.
-
- Posts: 19
- Joined: Mon Apr 13, 2009 5:42 pm
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
//--------------------------
// 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
-
- Posts: 19
- Joined: Mon Apr 13, 2009 5:42 pm
Re: Irrlicht 1.5 compiled for CodeGear™ RAD Studio 2009
Nice, but is there a tutorial to include newest version of Irrlicht in Rad Studio C++Builder 2009?