Operating System - HP-UX
1836772 Members
2168 Online
110109 Solutions
New Discussion

Re: ImageMagick configure failed to find jpeglib.h

 
SOLVED
Go to solution
Jerry Shen_1
Occasional Advisor

ImageMagick configure failed to find jpeglib.h

When I tried to configure and make ImageMagick 6.0.0 on HP-UX 11.0, configure could not find jpeglib.h file and could not load jpeg library to link by ld. Same thing happened for tiff support of ImageMagick.

Please help.

swlist on the system:
=============================================
#
# Bundle(s):
#

A6386A B.11.00.12 HyperFabric2 9000/[78]00
B3699AA_TRY C.03.35.00 Trial HP GlancePlus/UX Pak for s700 11.0
B3899BA B.11.02.04 HP C/ANSI C Developer's Bundle for HP-UX 11.00 (S700)
B3907DB B.11.01.42 HP Fortran 90 Compiler and associated products (S700)
B3911DB C.03.33 HP aC++ Compiler (S700)
B4965AA_TRY C.03.35.00 Trial HP MeasureWare Server Agent for s700 11.0
B5007AA C.03.10.00 HP PerfView Analyzer for s700 11.00
B5007AA_TRY C.03.10.00 Trial HP PerfView for s700 11.00
B5304AA 1a FirstSpace version 1
B5357AAA B.11.00.02 HP MPower//Web for Series 700 - English
B5725AA B.3.4.115 HP-UX Installation Utilities (Ignite-UX)
B6060BA B.11.00.07 HP-MPI for HP-UX 11.00
B6192AA B.11.00.10 DCE/9000 Programming & Administration Tools Media and Manuals
B6268AA B.11.00.05 Graphics and Technical Computing Software
B6733AA B.11.00.10 DCE/9000 Kernel Threads Support
B7580AA B.11.00.09 HP-UX Visualize Conference Run Time Environment
B8342AA B.11.00.05 Netscape Communicator 4.75
B8724AA A.01.06 CIFS/9000 Client
B8725AA A.01.07 CIFS/9000 Server
EasySetupPatches B.11.00.010901 Patches installed during Easy-Setup (see description)
HPUXEng64RT B.11.00 English HP-UX 64-bit Runtime Environment
OnlineDiag B.11.00.18.09 HPUX 11.0 Support Tools Bundle, Sep 2001
OpensrcTools B.11.00.2000-03-01 Open Source Tools
QPK1100 B.11.00.54.7 Quality Pack for HP-UX 11.00, September 2001
UnlimUserLic B.11.00.02 HP-UX Unlimited-User License
XSWGR1100 B.11.00.47.08 General Release Patches, November 1999 (ACE)
XSWHWCR1100 B.11.00.54.6 HP-UX Hardware Enablement and Critical Patches, September 2001
perl B.5.6.1.C Perl Programming Language
#
# Product(s) not contained in a Bundle:
#

DATA-PROTECTOR A.05.00 HP OpenView Storage Data Protector
OMNIBACK-II A.04.00 HP OpenView OmniBack II
=============================================


The command line that I used to configure ImageMagick:
=============================================
pongrhp2/shenj : /home/shenj/support/hp-ux/ImageMagick/src/ImageMagick-6.0.0] 35 *% ./configure --prefix="/home/shenj/support/hp-ux/ImageMagi
ck/prod" --with-jpeg=yes --with-jp2=yes --with-png=yes --with-tiff=yes
=============================================


The output of configure shows as following:
=============================================
ImageMagick is configured as follows. Please verify that this configuration
matches your expectations.

Host system type : hppa2.0w-hp-hpux11.00

Option Value
-------------------------------------------------------------------------
Shared libraries --enable-shared=yes yes
Static libraries --enable-static=yes yes
Module support --with-modules=no no
GNU ld --with-gnu-ld=no no
LZW support --enable-lzw=yes yes
Quantum depth --with-quantum-depth=16 16

Delegate Configuration:
BZLIB --with-bzlib=yes no
DPS --with-dps=yes no
FlashPIX --with-fpx=yes no
FreeType 2.0 --with-ttf=yes no
Ghostscript None gs (unknown)
Ghostscript fonts --with-gs-font-dir=default none
Ghostscript lib --with-gslib=no no
Graphviz --with-dot=yes no
JBIG --with-jbig=yes no
JPEG v1 --with-jpeg=yes no
JPEG-2000 --with-jp2=yes no
LCMS --with-lcms=yes no
Magick++ --with-magick-plus-plus=yes yes
PERL --with-perl=yes /usr/local/bin/perl
PNG --with-png=yes no
TIFF --with-tiff=yes no
Windows fonts --with-windows-font-dir= none
WMF --with-wmf=yes no
X11 --with-x= yes
XML --with-xml=yes no
ZLIB --with-zlib=yes no

X11 Configuration:
X_CFLAGS =
X_PRE_LIBS = -lSM -lICE
X_LIBS =
X_EXTRA_LIBS =

Options used to compile and link:
PREFIX = /home/shenj/support/hp-ux/ImageMagick/prod
EXEC-PREFIX = /home/shenj/support/hp-ux/ImageMagick/prod
VERSION = 6.0.0
CC = cc
CFLAGS = -g -Wp,-H30000 -D_REENTRANT
CPPFLAGS =
DEFS = -DHAVE_CONFIG_H
LDFLAGS = -L/home/shenj/support/hp-ux/ImageMagick/prod/lib
LIBS = -lMagick -lXext -lSM -lICE -lX11 -lpthread -lm -lpthread
CXX = aCC
CXXFLAGS = -AA -D_REENTRANT
=============================================


Checked the config.log file,
=======================================================
10129 configure:38702: checking jpeglib.h usability
10130 configure:38714: cc -c -g -Wp,-H30000 -D_REENTRANT conftest.c >&5
10131 cpp: "conftest.c", line 155: error 4036: Can't open include file 'jpeglib.h'.
10132 configure:38720: $? = 1
10133 configure: failed program was:
10134 | /* confdefs.h. */
....
10288 | #include
....
10416 configure:38783: result: no
10417 configure:38818: checking for jpeglib.h
10418 configure:38825: result: no
10419 configure:38836: checking for jpeg_read_header in -ljpeg
10420 configure:38866: cc -o conftest -g -Wp,-H30000 -D_REENTRANT conftest.c -ljpeg -lXext -lXt -lSM -lICE -lX11 -lm -lpthread >&5
10421 /usr/ccs/bin/ld: Can't find library: "jpeg"
.....
=============================================
4 REPLIES 4
susan gregory_1
Valued Contributor

Re: ImageMagick configure failed to find jpeglib.h

Hi!
I must confess, I know nothing about ImageMagick, but I did find a jpeglib.h and a libjpeg.sl listed at the HP edu shareware site under the jpeg-6b package contents for hpux 11.00:

http://hpux.cs.utah.edu/hppd/hpux/X11/Graphics/jpeg-6b/

Hope that helps!
Mark Grant
Honored Contributor
Solution

Re: ImageMagick configure failed to find jpeglib.h

Susan may not have any experience of ImageMagik but I have (once spent 36 hours non-stop trying to compile it in the dark old days) and she is absolutely right.

You need to download/build all the libraries it needs.

Do you definately need to build it yourself? Here is a link to a page with HPUX packages you can install with swinstall which also has links to it's dependent packages.

http://hpux.connect.org.uk/hppd/hpux/X11/Viewers/ImageMagick-5.5.7/
Never preceed any demonstration with anything more predictive than "watch this"
Jerry Shen_1
Occasional Advisor

Re: ImageMagick configure failed to find jpeglib.h

Thanks, Mark and Susan.

I am on the way of install tiff library and jpeg library by suilding from source and try to build ImageMagick again.

If the depot works fine, I absolutely don't want to build from source codes.
Jerry Shen_1
Occasional Advisor

Re: ImageMagick configure failed to find jpeglib.h

Just an update on this issue: after install 13 products as hp-ux depot, it finally works. :) Thanks for the help.

Jerry