irrlicht 1.7.3 and mingw gcc 4.7.0

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
Argawaen
Posts: 2
Joined: Thu Jul 26, 2012 10:50 am

irrlicht 1.7.3 and mingw gcc 4.7.0

Post by Argawaen »

hello,

I have a problem with irrlicht1.7.3 compiled with windows-mingw gcc-4.7.0 suite:
I got a lot of warning during the sharedlib compilation but nothing fatal => I have a libirrlicht.a and a irrlicht.dll...
Some of the warnings are for lost precision during conversion, but nothing in the 'file loaders'

then I have built the first 01.HelloWorld example.
but the result is not good: no text displaid in the top-left cornet and blank texture...

during execution, I got this output in the console:

Code: Select all

Irrlicht Engine version 1.7.3
Microsoft Windows 7 Professional Edition Service Pack 1 (Build 7601)
Compression mode not supported.
Error: Could not load built-in Font. Did you compile without the BMP loader?
Loaded mesh: ../../media/sydney.md2
Compression mode not supported.
Compression mode not supported.
Could not load texture: ../../media/sydney.bmp
Resizing window (640 480)
But I have compile with BMP loader!!!
so I have try to make the CImageLoaderBMP::loadImage more verbose and make it print the content of the header, for the first one it gives me:

Code: Select all

ID=               19778
filesize=         0
Reserved=         4849664
BitmapDataOffset= 2621440
BitmapHeaderSize= 8388608
Width=            8388608
Height=           65536
Planes=           4
BPP=              0
Compression=      536870912
BitmapDataSize=   191037440
PixelPerMeterX=   191037440
PixelPerMeterY=   327680
Colors=           327680
ImportantColors=  0
the compression value is much bigger than 2 so I got the message 'Compression mode not supported.'
also, the 'filesize id allways 0 --------> very strange....

my conclusion: the file is not readden correctly!!! but I don't know how to solve it!

thanks for your help.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: irrlicht 1.7.3 and mingw gcc 4.7.0

Post by hybrid »

It's probably the problem with changed bitfield packing in mingw 4.7. Maybe try an older version of mingw or use SVN/trunk version of Irrlicht. Unfortunately, mingw team completely broke their latest release. IIRC, you can set some parameter to fix this, but it seemed still not really trustworthy. Have a search in the forum for ming 4.7 and check those threads.
Argawaen
Posts: 2
Joined: Thu Jul 26, 2012 10:50 am

Re: irrlicht 1.7.3 and mingw gcc 4.7.0

Post by Argawaen »

Ok, I have seen the post!!! excuse me for posting something already solved!!!
compiling irrlicht 1.7.3 with the option '-mno-ms-bitfields' solve the problem (now the values readden in the header are what I expect!!)

I have some runtime problem with the irrklang dll, I will test if it also solve the bug!!

thanks for the quick answer!!!
Post Reply