Page 1 of 1
2 errors at compiling the movement tutorial
Posted: Wed Dec 17, 2003 5:56 pm
by VeneX
When I want to compile the Movement tutorial with VC++ 6, there are 2 errors:
Compiling...
main.cpp
E:\Irrlicht 0.4\examples\4.Movement\main.cpp(85) : error C2039: 'DT_DIRECTX8' : is not a member of 'video'
E:\Irrlicht 0.4\examples\4.Movement\main.cpp(85) : error C2065: 'DT_DIRECTX8' : undeclared identifier
Error executing cl.exe.
Movement.exe - 2 error(s), 0 warning(s)
Do somebody knows what is wrong (I have Irrlicht 0.4.2
Posted: Wed Dec 17, 2003 6:03 pm
by Boogle
0.4.2 introduced more standardized enumeration naming conventions. All enumerations now start with 'E' so you must change DT_DIRECTX8 to EDT_DIRECTX8.
Posted: Wed Dec 17, 2003 6:09 pm
by VeneX
thanx!
But..
There is another problem:
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/movement.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Posted: Wed Dec 17, 2003 6:25 pm
by wornaki
See if you have got all { and } in the right position. I never had that type of error.
Posted: Wed Dec 17, 2003 6:36 pm
by VeneX

Wrong folder, indeed. But, compiling works now. When I want to start it there is an typical send/don't send error message of windows xp....
Posted: Fri Dec 19, 2003 10:51 am
by Guest
But, with 0.4.2 I can compile the tutorials but can't run them. When I compile the techdemo, I can run him, I get the window of chosing the driver enz. But the background is missing (fairy is there) and when I click on play it crashes...
(sorry I think this English is not very good

)
Posted: Fri Dec 19, 2003 10:55 am
by VeneX
sorry the guest is me
Posted: Fri Dec 19, 2003 6:43 pm
by knightoflight
Hi Venex,
i see the same error:
The movement example dont work with 0.4.2.
If i delete the &receiver from the createDevice-command the example works (but then im missing the receiver ;-)
For example, in the SpecialFX-example everything works, the only difference is that there is the device not GLOBAL.
is there a bug ?
Posted: Sat Dec 20, 2003 11:46 am
by VeneX
It has to be fixed, Version 0.5 is too far away.
Posted: Sun Dec 21, 2003 2:02 pm
by unrealfragmaster
I cant run the movement examplw with 0.4.2 either. It compiles fine, but crashes when I try to run it.
Posted: Sun Dec 21, 2003 6:55 pm
by Boogle
Add this code to the very top of your receiver's OnEvent method:
Code: Select all
if(event.EventType == irr::EET_LOG_TEXT_EVENT)
{
return true;
}
Some logging events are sent before the device is fully created and so in the original code the
device object has not yet been assigned.
Posted: Sun Dec 21, 2003 9:21 pm
by unrealfragmaster
Thanks for that Boogle
Posted: Sun Dec 21, 2003 9:29 pm
by FleshCrawler
Anonymous wrote:But, with 0.4.2 I can compile the tutorials but can't run them. When I compile the techdemo, I can run him, I get the window of chosing the driver enz. But the background is missing (fairy is there) and when I click on play it crashes...
(sorry I think this English is not very good

)
With the Techdemo Menu Background missing is indeed a bug,
i recompiled the whole engine on a Console app.
and it shows me the following ->
Compressed BMPs are currently not supported.
Could not load texture: bg.bmp
as you see i even tried renaming it, changing it to another directories, but bg.jpg works fine, and about the Crashing thing, i dont know, i notice it also but i took everything out of the techdemo to adjust it for myself, i now only got a crash on statusText->setText(tmp); so it might be that the problem is there within the techdemo
@ Niko: i think this is now somewhere a bug within the engine

Posted: Mon Dec 22, 2003 7:28 am
by niko
FleshCrawler wrote:
Compressed BMPs are currently not supported.
Could not load texture: bg.bmp
No, not a bug. The .bmp is a RLE compressed bmp, and I temporarily disabled support for this. Just load them into a image editor, and save it as uncompressed bmp, then it should work.
Posted: Mon Dec 22, 2003 8:34 am
by FleshCrawler
ahh, ok

so thats the solution to one problem
