compile time 'bug' in CImageLoaderJPG

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
corban
Posts: 35
Joined: Fri Nov 14, 2003 10:36 am
Contact:

compile time 'bug' in CImageLoaderJPG

Post by corban »

hi there,

i can only compile irrlicht .6 (mingw/devc++) when changing the definition (and the impl) of this function:

Code: Select all

	static u8 fill_input_buffer (j_decompress_ptr cinfo);
to this:

Code: Select all

	static int fill_input_buffer (j_decompress_ptr cinfo);
note: though i use the version of jpeglib that comes with irrlicht, i installed it 'globally' on my mingw system, but that shouldn't matter (?)

cu
warui
Posts: 232
Joined: Wed Apr 14, 2004 12:06 pm
Location: Lodz, Poland
Contact:

Post by warui »

Everything compiles fine for me (also migw/devc++) and i also use jpeglib provided with irrlicht.
What yu mean by "i installed it 'globally' on my mingw system" ?
Tomasz Nowakowski
Openoko - www.openoko.pl
corban
Posts: 35
Joined: Fri Nov 14, 2003 10:36 am
Contact:

Post by corban »

warui wrote:What yu mean by "i installed it 'globally' on my mingw system" ?
i use my mingw/ msys system with many applications and thus have it seperately installed from devc++. and by 'globally' i mean: i went into the irrlicht/jpeg dir and typed ./configure, make, make install using the msys shell and copied the headers to msys/local/include/jpeg, same with zlib and directx (ok, directx i just copied from the devpack, i think you'll be playing duke nukem forever ere you compile dx with gcc ;) )

and yes, i have setup all devc++ paths correctly ;)

cu
warui
Posts: 232
Joined: Wed Apr 14, 2004 12:06 pm
Location: Lodz, Poland
Contact:

Post by warui »

And what error do you get when you compile with u8 ?
Tomasz Nowakowski
Openoko - www.openoko.pl
corban
Posts: 35
Joined: Fri Nov 14, 2003 10:36 am
Contact:

Post by corban »

Code: Select all

CImageLoaderJPG.cpp: In member function `virtual irr::video::IImage* 
   irr::video::CImageLoaderJPG::loadImage(irr::io::IReadFile*)':
CImageLoaderJPG.cpp:134: invalid conversion from `u8 

   (*)(jpeg_decompress_struct*)' to `boolean (*)(jpeg_decompress_struct*)'

make.exe: *** [CImageLoaderJPG.o] Error 1
Post Reply