irr 1.7.1, compile without _IRR_COMPILE_WITH_BZIP2_, linker

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
MasterD
Posts: 153
Joined: Sun Feb 15, 2004 4:17 pm
Location: Lübeck, Germany
Contact:

irr 1.7.1, compile without _IRR_COMPILE_WITH_BZIP2_, linker

Post by MasterD »

It seems that it is not possible to compile irrlicht without BZIP2 support, but maybe I'm missing something.

I stepped through the config and read "requires a certain amount of memory for decompression and adds several files to the library" and thought "oh well, lets just disable this"... So, I do not really rely on compiling without bzip2. I just wanted to let you know.

In the 1.7.1 irrCompileConfig.h I deleted the _IRR_COMPILE_WITH_BZIP2_ define and with VS 2008 Pro I get the following linker errors:

Code: Select all

1>Linking...
1>huffman.obj : error LNK2001: unresolved external symbol _bz_internal_error
1>blocksort.obj : error LNK2001: unresolved external symbol _bz_internal_error
1>bzcompress.obj : error LNK2001: unresolved external symbol _bz_internal_error
1>bzlib.obj : error LNK2001: unresolved external symbol _bz_internal_error
1>decompress.obj : error LNK2001: unresolved external symbol _bz_internal_error
1>..\..\bin\Win32-visualstudio\Irrlicht.dll : fatal error LNK1120: 1 unresolved externals
(note: compiling WITHOUT Direct3D8, OpenGL, Software, Burning Video and X11, although I don't think it's affecting this. After enabling _IRR_COMPILE_WITH_BZIP2_ it compiles just fine. And, before you ask, I need to modify the engine [cube maps FTW!])

EDIT: I haven't looked into the BZIP2 details, so I don't know, if this is a good idea to do so, but defining bz_internal_error in CZipReader.cpp all the time (without #ifdef) is working.
YASS - Yet another Space Shooter
under Devolpment, see http://yass-engine.de
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

I think this was already fixed in SVN by CuteAlien, but I'll check it.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Yes, sounds like the problem I had. Try using latest svn, it should work there.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply