JPEG Libs

Ian Porter ian.porter3 at ntlworld.com
Fri Jan 24 18:23:45 GMT 2003


Hi thanks for the replies,

I have got libjpeg.la installed in the /usr/lib directory

[ian at localhost ian]$ locate libjpeg.la
/usr/lib/libjpeg.la

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 ?

Cheers
Ian

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.
> > http://www.gametutorials.com/
> > 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 
`jpeg_start_decompress(jpeg_decompress_struct*)' 
Image.o(.text+0x86d): undefined reference to 
`jpeg_read_scanlines(jpeg_decompress_struct*, unsigned char**, unsigned)' 
Image.o(.text+0x898): undefined reference to 
`jpeg_finish_decompress(jpeg_decompress_struct*)' 
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 
`jpeg_destroy_decompress(jpeg_decompress_struct*)' 
collect2: ld returned 1 exit status 
make: *** [BSP] Error 1 
*** failed *** 


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



More information about the KDevelop mailing list