Brucey's Freeimage.. Compile error..

BlitzMax Forums/BlitzMax Beginners Area/Brucey's Freeimage.. Compile error..

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm wondering if perhaps it's a "Framework" problem...

Without using a Framework, Blitz automatically imports the Pub and BRL modules into your app. Which bloats your app size a lot more than it needs to be.

If you use Framework <some-base-module.mod>, and Import only the modules you need, your app size will end up much smaller...

It's possible that the libjpeg in FreeImage is clashing with the libjpeg in Pub, causing the app to misbehave... (trying this on Linux, the app crashes when it tries to load using the jpegLoader.)

I did *try* to use the Pub.libjpeg during development, but the two versions don't seem to be compatible, so I had to go with the freeimage one in the end to make my life easier when it came to compiling the library...

There is a nice app called Framework Assistant (search the forums!) which can "guess" the list of imports you might need for any particular app.