2 errors at compiling the movement tutorial

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
VeneX
Posts: 228
Joined: Sun Nov 30, 2003 3:32 pm
Location: The Netherlands
Contact:

2 errors at compiling the movement tutorial

Post 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
Visit my website @ www.venex.be
Plethora project will be added to the site
AMD AthlonXP 2600+, 512MB DDR, Radeon M10 (mobile 9600) PRO 64MB, WinXP
Boogle
Posts: 162
Joined: Fri Nov 21, 2003 3:16 pm
Location: Toronto, Canada

Post 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.
VeneX
Posts: 228
Joined: Sun Nov 30, 2003 3:32 pm
Location: The Netherlands
Contact:

Post 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.
Visit my website @ www.venex.be
Plethora project will be added to the site
AMD AthlonXP 2600+, 512MB DDR, Radeon M10 (mobile 9600) PRO 64MB, WinXP
wornaki
Posts: 54
Joined: Sat Aug 23, 2003 1:18 am
Location: Argentina, South America

Post by wornaki »

See if you have got all { and } in the right position. I never had that type of error.
VeneX
Posts: 228
Joined: Sun Nov 30, 2003 3:32 pm
Location: The Netherlands
Contact:

Post by VeneX »

:oops: 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....
Visit my website @ www.venex.be
Plethora project will be added to the site
AMD AthlonXP 2600+, 512MB DDR, Radeon M10 (mobile 9600) PRO 64MB, WinXP
Guest

Post 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 :( )
VeneX
Posts: 228
Joined: Sun Nov 30, 2003 3:32 pm
Location: The Netherlands
Contact:

Post by VeneX »

sorry the guest is me
Visit my website @ www.venex.be
Plethora project will be added to the site
AMD AthlonXP 2600+, 512MB DDR, Radeon M10 (mobile 9600) PRO 64MB, WinXP
knightoflight
Posts: 199
Joined: Sun Aug 24, 2003 5:47 pm
Location: Germany

Post 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 ?
VeneX
Posts: 228
Joined: Sun Nov 30, 2003 3:32 pm
Location: The Netherlands
Contact:

Post by VeneX »

It has to be fixed, Version 0.5 is too far away.
Visit my website @ www.venex.be
Plethora project will be added to the site
AMD AthlonXP 2600+, 512MB DDR, Radeon M10 (mobile 9600) PRO 64MB, WinXP
unrealfragmaster
Posts: 31
Joined: Mon Dec 15, 2003 5:49 pm
Location: Ireland
Contact:

Post by unrealfragmaster »

I cant run the movement examplw with 0.4.2 either. It compiles fine, but crashes when I try to run it.
http://www.gameplayzone.com/forum
Join the gameplayzone forums today!
http://www.gameplayzone.com
All the latest gaming news and advancements
Boogle
Posts: 162
Joined: Fri Nov 21, 2003 3:16 pm
Location: Toronto, Canada

Post 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.
unrealfragmaster
Posts: 31
Joined: Mon Dec 15, 2003 5:49 pm
Location: Ireland
Contact:

Post by unrealfragmaster »

Thanks for that Boogle
http://www.gameplayzone.com/forum
Join the gameplayzone forums today!
http://www.gameplayzone.com
All the latest gaming news and advancements
FleshCrawler
Posts: 108
Joined: Fri Aug 22, 2003 1:04 pm
Location: Kerkrade, Netherlands
Contact:

Post 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 :)
I've been absent for really long, but i'm ready to reign my terror on you once again, mwuahahahahaha
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post 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.
FleshCrawler
Posts: 108
Joined: Fri Aug 22, 2003 1:04 pm
Location: Kerkrade, Netherlands
Contact:

Post by FleshCrawler »

ahh, ok :) so thats the solution to one problem :)
I've been absent for really long, but i'm ready to reign my terror on you once again, mwuahahahahaha
Post Reply