JPEG Libs

Simon Ejsing simon at esoft.dk
Thu Jan 23 20:43:56 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

	Hi,

	My guess is you either havn't got the library or it's not in your 
LD_LIBRARY_PATH path...

On Thursday 23 January 2003 21:11, 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.
>
> g++ -o BSP  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
>
> This is the makefile
> CC			= g++
>
> TARGET		= BSP
>
> $(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 -ljpeg
>
> Main.o:		Main.cpp main.h Camera.h
> 	$(CC) -c `sdl-config --cflags` Main.cpp
>
> Init.o:		Init.cpp main.h image.h
> 	$(CC) -c `sdl-config --cflags` Init.cpp
>
> Camera.o :  Camera.cpp main.h Camera.h
> 	$(CC) -c `sdl-config --cflags` Camera.cpp
>
> Quake3Bsp.o :  Quake3Bsp.cpp main.h Camera.h
> 	$(CC) -c `sdl-config --cflags` Quake3Bsp.cpp
>
> Image.o :   Image.cpp image.h
> 	$(CC) -c `sdl-config --cflags` Image.cpp
>
> clean:
> 	rm -f $(TARGET) Main.o Init.o Camera.o Quake3Bsp.o Image.o core
>
> Any advice would be nice.  I have done a search on the web and some one
> says about having to recompile the jpeg sources with g++.  How would I do
> this ?
>
> Btw I am using Mandrake v9.0
>
> Cheers
> Ian
>
>
>
> -
> to unsubscribe from this list send an email to
> kdevelop-request at kdevelop.org with the following body: unsubscribe
> your-email-address

- -- 
Simon Ejsing, Systemudvikler
esoft ApS, http://www.esoft.dk
Kongensgade 66-68, DK-5000 Odense C.
Tlf: 70 222 466, Fax: 63 122 466
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+MFQP0ZtqfKNZvaARApaTAJ47F35IRYYsNG8vysiMrDkp+6I0pwCfXDLX
SvRpN0PyCemkN5fTdXGFo1U=
=Wu3q
-----END PGP SIGNATURE-----


-
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