SUMMARY: Compile problem with gd on intel

From: U n d e r a c h i e v e r <takeme2your_at_rocketmail.com>
Date: Mon Feb 25 2002 - 13:47:09 EST
SUMMARY Compile problem with gd on intel

Thanks to Alex Stade, John D Groenveld and others.

I've learned a lot! Not least -I/usr/include is a default; don't add it
-- ditto -L/usr/lib. Runtime libraries on solaris are indicated with -R

Put simply, the problem was the the header files weren't in
/usr/local/include. So i copied them from the directory where i
compiled jpeg-6b, modified the Makefile to eliminate the needless
statements, added a -R/usr/local/lib in and the gd compile worked.

Thanks all.
(Original question posted below)

Hi

I'm unable to compile 'gd' with jpeg support on Solaris 8 on intel. I'm
guessing it is possible as there is a precompiled binary for Sparc on
Sunfreeware.

I've installed from packages : tiff-v3.4beta037, jpeg-6b, xpm-3.4k,
libpng-1.2.0 & zlib-1.1.3

I re-installed libjpeg from source just to be sure.

Left most of the Makefile alone except to add to includes:
 -I/usr/include
and to LIBDIRS
 -L/usr/lib

Fails with

In file included from gd_jpeg.c:26:
usr/local/include/jpeglib.h:24: jconfig.h: No such file or directory
/usr/local/include/jpeglib.h:26: jmorecfg.h: No such file or directory
gd_jpeg.c:27: jerror.h: No such file or directory
gd_jpeg.c:193: #error IJG JPEG library BITS_IN_JSAMPLE value must be 8
or 12
gd_jpeg.c:368: #error IJG JPEG library BITS_IN_JSAMPLE value must be 8
or 12
make: *** [gd_jpeg.o] Error 1

after 

gcc -I. -I/usr/include -I/usr/include/freetype2 -I/usr/include/X11
-I/usr/X11R6/include/X11 -I/usr/local/include  -O -DHAVE_LIBPNG
-DHAVE_LIBJPEG   -c -o gd_jpeg.o gd_jpeg.c

anyone able to give me a heads up on how to compile this?

thanks in anticipation





=====
u n d e r a c h i e v e r (and proud)
<takeme2your@rocketmail.com>
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Mon Feb 25 12:55:27 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:35 EST