[SOLVED] compiling engine prroblems

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
MrPotatoes
Posts: 38
Joined: Mon Nov 07, 2005 5:55 am

[SOLVED] compiling engine prroblems

Post by MrPotatoes »

i'm having some issues compiling the engine itself and getting something out of it. first my specs

i am using code::blocks the newest version.
i am using windws XP SP2 home
i am using DirectX9 (feb)
i downloaded the toolkit i found somewhere. i can't remember where, sorry. it was too much work using the full studio as they integrated the toolkit into there.

i installed (but i don't need) the MS SDK. i plan to make this on linux as well. i plan to only use OpenGL.

i opened up code::blocks and then opened the \source\irrlicht\irrlicht.cpb file.

i compiled and got an error so i fixed an include in the CD3D8ShaderMaterialRenderer.h. it was complaining. i changed line 13 to be d3dx9core.h. there is no d3dx9core.h in DX9.

the errors i am getting the compiler is going into the DirectX folders. one problem i am getting is this:
file: \Include\d3dx9math
line: 787
message: error C2143: syntax error : missing ',' before '*'
it goes like this 200 lines down. there are plenty of these. is there a way to just remove al of directx from the source tree easilly? ig there was a config file instead.

i'm thinking that i setup my libraries incorrectly somewhere.

does anyone have any idea of what it could be? or need anymore information?
Last edited by MrPotatoes on Sun Mar 25, 2007 5:51 pm, edited 1 time in total.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

If you plan to only use OpenGL, then you don't need to install the DirectX stuff. You just need to comment out the appropriate lines in irrCompileConfig.h and Irrlicht will be built without DirectX 8 or 9 drivers.

Travis
kburkhart84
Posts: 277
Joined: Thu Dec 15, 2005 6:11 pm

Post by kburkhart84 »

vitek wrote:If you plan to only use OpenGL, then you don't need to install the DirectX stuff. You just need to comment out the appropriate lines in irrCompileConfig.h and Irrlicht will be built without DirectX 8 or 9 drivers.

Travis
This is the way to do it. I use windows Vista and have the same DXSDK. Irrlicht compiles fine out of the box for me. I usually take out the software drivers, and when I have a final version, I'll probably comment out either DX9 or OGL, depending on which works better for more systems, and DX8 for me is already out always. Not because it doesn't work, but because I don't need it.
MrPotatoes
Posts: 38
Joined: Mon Nov 07, 2005 5:55 am

Post by MrPotatoes »

great, it gets past those other errors (which i would like to know what was happening there) and now i get to an area where it's geting the dreaded linker errors.

i commented out line 45 && 46 in irrCompileConfig.h.
they were this:
#define _IRR_COMPILE_WITH_DIRECT3D_8_
#define _IRR_COMPILE_WITH_DIRECT3D_9_

this is the linker error i get:
file: CIrrDeviceWin32.obj
error LNK2019: unresolved external symbol __imp__DestroyWindow@4 referanced in function "public: virtual voice __thiscall irr::CIrrDeviceWin32 etc etc.

it goes on from there

any ideas as to what is going on here? i much appreciate the help
MrPotatoes
Posts: 38
Joined: Mon Nov 07, 2005 5:55 am

Post by MrPotatoes »

ok, i figured out the issue. i did not have the libs put in there. i didn't link in these:
kernel32.lib
user32.lib
gdi32.lib
winspool.lib
comdlg32.lib
advapi32.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
it's all settled now. thank you for the help
Post Reply