Ian Porter ian.porter3 at
Fri Jan 24 18:23:45 UTC 2003

Hi thanks for the replies,

I have got installed in the /usr/lib directory

[ian at localhost ian]$ locate

And I have added the line into the make file 
$(TARGET):	Main.o Init.o Camera.o Quake3Bsp.o Image.o
	$(CC) -o $(TARGET) Main.o Init.o Camera.o Quake3Bsp.o Image.o `sdl-config 
--libs` -L/usr/X11R6/lib -lGL -lGLU -lm -L/usr/lib -ljpeg 

But I still get the error (at the bottom of the email, same as before)

Or have I done this wrong ?


On Thursday 23 Jan 2003 9:00 pm, you wrote:
> > Hi all
> >
> > I am going thought the tutorial for game programming on the web site.
> >
> > I have got a error with compiling the last of the tutorials which uses
> > the jpeg library, the error is below.
> I think you must install or add path to libjpeg.a. In my case (slackware 9)
> it's in /usr/lib/ - which is in the path. Try locating it: if you don't
> have it - install libjpeg. If you do try adding "-L/path/to/libjpeg" to you
> Makefile here:
> > 	$(CC) -o $(TARGET) Main.o Init.o Camera.o Quake3Bsp.o Image.o
> > `sdl-config --libs` -L/usr/X11R6/lib -lGL -lGLU -lm -ljpeg

Image.o: In function `DecodeJPG(jpeg_decompress_struct*, tImage*)': 
Image.o(.text+0x782): undefined reference to 
`jpeg_read_header(jpeg_decompress_struct*, int)' 
Image.o(.text+0x790): undefined reference to 
Image.o(.text+0x86d): undefined reference to 
`jpeg_read_scanlines(jpeg_decompress_struct*, unsigned char**, unsigned)' 
Image.o(.text+0x898): undefined reference to 
Image.o: In function `LoadJPG(char const*)': 
Image.o(.text+0x903): undefined reference to `jpeg_std_error(jpeg_error_mgr*)' 
Image.o(.text+0x922): undefined reference to 
`jpeg_CreateDecompress(jpeg_decompress_struct*, int, unsigned)' 
Image.o(.text+0x93a): undefined reference to 
`jpeg_stdio_src(jpeg_decompress_struct*, _IO_FILE*)' 
Image.o(.text+0x977): undefined reference to 
collect2: ld returned 1 exit status 
make: *** [BSP] Error 1 
*** failed *** 

to unsubscribe from this list send an email to kdevelop-request at with the following body:
unsubscribe ťyour-email-addressŤ

More information about the KDevelop mailing list