Compiling the Engine

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
Robomaniac
Posts: 602
Joined: Sat Aug 23, 2003 2:03 am
Location: Pottstown, PA
Contact:

Compiling the Engine

Post by Robomaniac »

I'm trying to recompile the engine and I'm getting the following errors. I changed my directories and linked to the right files

Code: Select all

CSurfaceLoaderJPG.o(.text+0x271):CSurfaceLoaderJPG.cpp: undefined reference to `jpeg_std_error'
CSurfaceLoaderJPG.o(.text+0x290):CSurfaceLoaderJPG.cpp: undefined reference to `jpeg_CreateDecompress'
CSurfaceLoaderJPG.o(.text+0x2eb):CSurfaceLoaderJPG.cpp: undefined reference to `jpeg_resync_to_restart'
CSurfaceLoaderJPG.o(.text+0x306):CSurfaceLoaderJPG.cpp: undefined reference to `jpeg_read_header'
CSurfaceLoaderJPG.o(.text+0x318):CSurfaceLoaderJPG.cpp: undefined reference to `jpeg_start_decompress'
CSurfaceLoaderJPG.o(.text+0x442):CSurfaceLoaderJPG.cpp: undefined reference to `jpeg_read_scanlines'
CSurfaceLoaderJPG.o(.text+0x47a):CSurfaceLoaderJPG.cpp: undefined reference to `jpeg_finish_decompress'
CSurfaceLoaderJPG.o(.text+0x48c):CSurfaceLoaderJPG.cpp: undefined reference to `jpeg_destroy_decompress'
Thanks in advance

--The Robomaniac
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

Post by keless »

IrrLicht uses JpegLib and some other supplimentary libraries. You'll probably have to have their headers and .lib/.a to be able to compile.
a screen cap is worth 0x100000 DWORDS
Robomaniac
Posts: 602
Joined: Sat Aug 23, 2003 2:03 am
Location: Pottstown, PA
Contact:

Post by Robomaniac »

Do i need the libjped headers at all?
qwe
Posts: 112
Joined: Sun Dec 28, 2003 12:54 am
Location: Oregon, USA

Post by qwe »

I believe you do, they provide jpeg loading support to the engine, which is pretty integral to the system.

on another note, the Irrlicht.dll that comes procompiled weighs in at 640k(or 604k, for 0.4). When I compile the MSVC project in the source directory, the dll bloats to over 2 megs, nearly 4 times that of the precompiled.

What's going on here?
DarkVisions
Posts: 4
Joined: Sat Nov 15, 2003 12:40 pm

Post by DarkVisions »

on another note, the Irrlicht.dll that comes procompiled weighs in at 640k(or 604k, for 0.4). When I compile the MSVC project in the source directory, the dll bloats to over 2 megs, nearly 4 times that of the precompiled.

What's going on here?
You've got the active configuration set as Debug. If you change it to release, you'll see a drop in the DLL size. (It'll also be in the release folder :wink: )

Anthony/Hammon
SuryIIID

Post by SuryIIID »

Well i'm not familiar with MSVC IDE yet but how about compiling the engine in release mode ?
Build->Set Active Configuration->Win32 Release
SuryIIID

Post by SuryIIID »

Oops DarkVisions was fast :)
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

Post by keless »

also, I think if you're using DevCPP, its binaries are a little bit bigger.

for instance, I compiled my tiny tetris project in both MSVC and DevCpp:

"Release" mode in MSVC creates a binary of 56kb
"OptimizeMore" mode in DevCPP creates a binary of 152kb

If I use "BestOptimization" in DevCPP, the binary has problems.
a screen cap is worth 0x100000 DWORDS
qwe
Posts: 112
Joined: Sun Dec 28, 2003 12:54 am
Location: Oregon, USA

Post by qwe »

supposedly MSVC creates the most optimized win32 binaries, and why not? the same company made both the compiler and the OS :D

off-topic: who makes devcpp?
Post Reply