Example Run problems on Linux

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
zip
Posts: 6
Joined: Mon Jun 27, 2005 9:58 pm

Example Run problems on Linux

Post by zip »

When I try to run any of the examples that load data files they fail to load, due to unreadable headers or unrecognized file format.
Example03 for example runs fine since it does not load any models/textures.

Here is the result when I try to run Example1

Code: Select all

zip@tartarus:~/Desktop/irrlicht-0.10.0/examples/01.HelloWorld$ ./example
Irrlicht Engine version 0.10.0
Linux
Creating X window...
OpenGL Renderer.
OpenGL driver version is 1.2 or better.
Multittexturing active.
Not a PNG file: wrong header
: #DefaultFont
Could not load texture: #DefaultFont
Error: Could not load built-in Font.
MD2 Loader: Wrong file header: ../../media/sydney.md2
Could not load mesh, file format seems to be unsupported: ../../media/sydney.md2
NexusInteractive
Posts: 33
Joined: Sun Jun 26, 2005 4:41 pm

Post by NexusInteractive »

I've never used any 3d on linux, but maybe you can't use md2 on linux. perhaps it is a "windows only" format.

But then again, I don't really know. :)
zip
Posts: 6
Joined: Mon Jun 27, 2005 9:58 pm

Post by zip »

MD2 is the Quake 2 model format, it is widely used on multiple platforms.
hybrid

Post by hybrid »

What system architecture are you using? Irrlicht does not support big endian systems right now, it could be a problem related to that topic, or related.
hybrid

Post by hybrid »

What system architecture are you using? Irrlicht does not support big endian systems right now, it could be a problem related to that topic, or some compiler/linker problem. Did you get any warnings?
kAd
Posts: 45
Joined: Fri Jun 10, 2005 8:46 pm

Post by kAd »

are you sure you have rights on those files ? if not try to do a chmod 755 on them

I'm using Irrlicht with linux, and all examples works well
[ Enzys http://enzys.online.fr ] : Un MMORPG français en dev (^_^)Y
Guest

Post by Guest »

Check whether the files are actually in
~/Desktop/irrlicht-0.10.0/media

(~ is your home directory)

I don't know about that default font. If it's supposed to be built-in, I don't know what a PNG loader has to do with it.
NexusInteractive
Posts: 33
Joined: Sun Jun 26, 2005 4:41 pm

Post by NexusInteractive »

MD2 is the Quake 2 model format, it is widely used on multiple platforms.
Oh sorry. I thought Q2 was a windows only game...
zip
Posts: 6
Joined: Mon Jun 27, 2005 9:58 pm

Post by zip »

Nexus: It isn't, but it wouldn't matter since the code to load MD2s is built into Irrlicht.
I have already checked permissions and that the file is indeed where it should be("Unsupported file format", not "File not found").
I'm running a PPC which is big endian so... short of buying a PC, what can I do?
*hovers over NeoEngine download link*
NexusInteractive
Posts: 33
Joined: Sun Jun 26, 2005 4:41 pm

Post by NexusInteractive »

I see. Thanks for explaining that. :D

I'm still new to this. lol.
Mike

Post by Mike »

Change Irrlicht to support big endian?
hybrid

Post by hybrid »

Yes, most file loaders (image and mesh) need byte swap functions to be built in. I have a first rip off patch from IrrlichtNX, but I never tried to apply it yet. If someone wants to try I could send it on request. Be aware of much work todo, though.
Post Reply