Page 2 of 2

Re: Compose image to pdf

Posted: 2011-02-21T09:07:35-07:00
by jmituzas
Heres what it in my /usr/local/bin directory:
bdftops eps2eps gs gsdj500 gsnd lwp-dump lwp-rget pdfopt printafm ps2pdf ps2pdf14 ps2ps2 wftopfa
dumphint fixmswrd.pl gsbj gslj lprsetup.sh lwp-mirror pdf2dsc pf2afm ps2ascii ps2pdf12 ps2pdfwr pv.sh
dvipdf font2c gsdj gslp lwp-download lwp-request pdf2ps pfbtopfa ps2epsi ps2pdf13 ps2ps unix-lpr.sh

Heres what is in my /usr/local/lib directory:
ImageMagick-6.6.7 perl pkgconfig python2.5 python2.6 site_ruby


OK I have those files there and I have copied them to my lib64 directory as well

I notice this after /.configure

Code: Select all

Ghostscript fonts --with-gs-font-dir=default	/usr/share/fonts/type1/gsfonts/
Ghostscript lib   --with-gslib=yes		no
Graphviz          --with-gvc=yes		yes
JBIG              --with-jbig=yes		no
JPEG v1           --with-jpeg=yes		yes
JPEG-2000         --with-jp2=yes		yes
LCMS v1           --with-lcms=yes		yes
LCMS v2           --with-lcms2=yes		no
LQR               --with-lqr=yes		no
LZMA              --with-lzma=yes		no
Magick++          --with-magick-plus-plus=yes	yes
OpenEXR           --with-openexr=yes		yes
PERL              --with-perl=no		no
PNG               --with-png=yes		yes
RSVG              --with-rsvg=yes		yes
TIFF              --with-tiff=yes		yes
Windows fonts     --with-windows-font-dir=	none
WMF               --with-wmf=yes		yes
X11               --with-x=			yes
XML               --with-xml=yes		yes
ZLIB              --with-zlib=yes		yes
why does Ghostscript lib --with-gslib=yes no have no after it?

a look at conf.log brings back these errors (this is just a small portion of all the errors I get):

Code: Select all

configure:5020: checking how to run the C preprocessor
configure:5051: gcc -E  conftest.c
configure:5051: $? = 0
configure:5065: gcc -E  conftest.c
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory

configure:5090: result: gcc -E
configure:5110: gcc -E  conftest.c
configure:5110: $? = 0
configure:5124: gcc -E  conftest.c
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:5124: $? = 1

configure:5413: checking minix/config.h usability
configure:5413: gcc -c -g -O2  conftest.c >&5
conftest.c:52:26: error: minix/config.h: No such file or directory

configure:6530: checking for gcc option to accept ISO C99
configure:6679: gcc  -c -g -O2  conftest.c >&5
conftest.c:74: error: expected ';', ',' or ')' before 'text'
conftest.c: In function 'main':
conftest.c:128: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'newvar'
conftest.c:128: error: 'newvar' undeclared (first use in this function)
conftest.c:128: error: (Each undeclared identifier is reported only once
conftest.c:128: error: for each function it appears in.)
conftest.c:138: error: 'for' loop initial declaration used outside C99 mode
configure:6679: $? = 1

configure:8192: checking whether pthreads work with -Kthread
configure:8280: gcc -std=gnu99 -std=gnu99 -o conftest -g -O2 -Wall -Kthread   conftest.c   >&5
gcc: unrecognized option '-Kthread'
/tmp/ccaSYM7S.o: In function `main':
/home/nmcadmin/Desktop/ImageMagick-6.6.7-7/conftest.c:32: undefined reference to `pthread_create'
/home/nmcadmin/Desktop/ImageMagick-6.6.7-7/conftest.c:33: undefined reference to `pthread_join'
/home/nmcadmin/Desktop/ImageMagick-6.6.7-7/conftest.c:35: undefined reference to `__pthread_register_cancel'
/home/nmcadmin/Desktop/ImageMagick-6.6.7-7/conftest.c:36: undefined reference to `__pthread_unregister_cancel'
collect2: ld returned 1 exit status
configure:8280: $? = 1

configure:15572: checking whether a statically linked program can dlopen itself
configure:15652: gcc -std=gnu99 -std=gnu99 -o conftest  -fopenmp -g -O2 -Wall -pthread  -DHAVE_DLFCN_H  -Wl,--export-dynamic -static conftest.c -ldl   >&5
configure: In function 'fnord':
configure:15628: warning: unused variable 'i'
/tmp/ccc2kc6Q.o: In function `main':
/home/nmcadmin/Desktop/ImageMagick-6.6.7-7/configure:15631: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
configure:15655: $? = 0
/lib/: cannot read file data: Is a directory
configure:15673: result: no
configure:15712: checking whether stripping libraries is possible
configure:15717: result: yes
configure:15752: checking if libtool supports shared libraries
configure:15754: result: yes
configure:15757: checking whether to build shared libraries
configure:15778: result: yes
configure:15781: checking whether to build static libraries
configure:15785: result: yes
configure:15808: checking how to run the C++ preprocessor
configure:15835: g++ -E  conftest.cpp
configure:15835: $? = 0
configure:15849: g++ -E  conftest.cpp
conftest.cpp:32:28: error: ac_nonexistent.h: No such file or directory

configure:19841: checking for sys/dl.h
configure:19841: gcc -std=gnu99 -std=gnu99 -c  -fopenmp -g -O2 -Wall -pthread  conftest.c >&5
conftest.c:85:20: error: sys/dl.h: No such file or directory
configure:19841: $? = 1

configure:19841: checking for dld.h
configure:19841: gcc -std=gnu99 -std=gnu99 -c  -fopenmp -g -O2 -Wall -pthread  conftest.c >&5
conftest.c:85:17: error: dld.h: No such file or directory

Anyways tried on CentOS is installed with os but I don't know if any delegates were installed nothing shows up in /usr/local/bin or /usr/local/lib and upon running identify -list configure didn't see anything stating delegates.

Thanks once again,
Joe

Re: Compose image to pdf

Posted: 2011-02-21T09:54:19-07:00
by magick
Try this command:
  • cd ImageMagick-6.6.7-8
    ./configure --with-gslib

Re: Compose image to pdf

Posted: 2011-02-21T11:12:42-07:00
by jmituzas
I have tried that should have put that in there, sorry but thats when I have gotten:

Code: Select all

Ghostscript lib --with-gslib=yes	 no 
without configuring with gslib it looks like this:

Code: Select all

Ghostscript lib --with-gslib=no	 no


and my identify -list configure brings back this:

Code: Select all

Name          Value
-------------------------------------------------------------------------------
CC            gcc -std=gnu99 -std=gnu99
CFLAGS        -pthread -I/usr/include/OpenEXR -fopenmp -g -O2 -Wall -pthread
CONFIGURE     ./configure  '--with-gslib'
COPYRIGHT     Copyright (C) 1999-2011 ImageMagick Studio LLC
CPPFLAGS      -I/usr/local/include/ImageMagick
CXX           g++
CXXFLAGS      -g -O2 -pthread
DEFS          -DHAVE_CONFIG_H
DELEGATES     bzlib djvu fontconfig freetype gvc jpeg jng jp2 lcms openexr png rsvg tiff x11 xml wmf zlib
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-fontpath= --with-perl=no
EXEC-PREFIX   /usr/local
FEATURES      OpenMP 
HOST          x86_64-unknown-linux-gnu
LDFLAGS       -L/usr/local/lib 
LIB_VERSION   0x667
LIB_VERSION_NUMBER 6,6,7,7
LIBS          -lMagickCore -llcms -ltiff -lfreetype -ljasper -ljpeg -lpng -ldjvulibre -lfontconfig -lwmf -lwmflite -lXext -lXt -lSM -lICE -lX11 -lbz2 -pthread -lIlmImf -lz -lImath -lHalf -lIex -lIlmThread -lrsvg-2 -lgdk_pixbuf-2.0 -lm -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lxml2 -lgvc -lgraph -lcdt -lz -lm -lgomp -lpthread -lltdl
NAME          ImageMagick
PCFLAGS       -fopenmp
PREFIX        /usr/local
QuantumDepth  16
RELEASE_DATE  2011-02-21
VERSION       6.6.7
WEBSITE       http://www.imagemagick.org

Path: [built-in]
from there you can see

Code: Select all

CONFIGURE     ./configure  '--with-gslib'
as well

either way I can not get this to install correctly :( , and have no idea why it wont.

Re: Compose image to pdf

Posted: 2011-02-21T11:25:15-07:00
by jmituzas
Yay even though gs. isn't in the delegates...

Have just ran:


composite -compose Copy caption.png -gravity East -geometry +200-100 -density 350 test.pdf output.pdf

seems to have worked out fine, all except one little error.

The way that caption.png overlays it gives a dark grey background, anyway to remove this, and I will be good to go!

Thanks for all your help on getting this to work for me.