[gs-devel] Help! compile error on ghostscript.
Daniel.Li
daniel_li at usish.com
Wed Feb 11 18:42:51 PST 2009
On Thu, 2009-02-12 at 09:49 +0800, Daniel.Li wrote:
> Thanks Ralph,
> I have used following configure
> $ ./configure --disable-gtk --disable-fontconfig --with-x=no
> --includedir=/home/daniel/pilot/buildroot/build_arm/staging_dir/include/
> --libdir=/home/daniel/pilot/buildroot/build_arm/staging_dir/lib/
> --prefix=/home/daniel/ghostscript-8.64/test/
>
> I browsed the lib path to make sure that I have cups.
> $ ls /home/daniel/pilot/buildroot/build_arm/staging_dir/lib/ |grep
> libcups
> libcupsimage.so
> libcupsimage.so.2
> libcups.so
> libcups.so.2
>
> But still get following error, well, it seems that ld can't find the
> lib. How can I fix the issue. A hint is appreciated, thanks.
>
>
> [daniel at samba-100 ghostscript-8.64]$ make
> ./obj/echogs -w ./obj/ldt.tr -n - gcc -o ./bin/gs
> ./obj/echogs -a ./obj/ldt.tr -n -s ./obj/gsromfs1.o ./obj/gs.o -s
> cat ./obj/ld.tr >>./obj/ldt.tr
> ./obj/echogs -a ./obj/ldt.tr -s - -ldl -lm -lstdc++ -lpthread -lm
> if [ x != x ]; then LD_RUN_PATH=; export LD_RUN_PATH; fi; \
> XCFLAGS= XINCLUDE= XLDFLAGS= XLIBDIRS= XLIBS= \
> FEATURE_DEVS= DEVICE_DEVS= DEVICE_DEVS1= DEVICE_DEVS2= DEVICE_DEVS3= \
> DEVICE_DEVS4= DEVICE_DEVS5= DEVICE_DEVS6= DEVICE_DEVS7= DEVICE_DEVS8= \
> DEVICE_DEVS9= DEVICE_DEVS10= DEVICE_DEVS11= DEVICE_DEVS12= \
> DEVICE_DEVS13= DEVICE_DEVS14= DEVICE_DEVS15= DEVICE_DEVS16= \
> DEVICE_DEVS17= DEVICE_DEVS18= DEVICE_DEVS19= DEVICE_DEVS20= \
> DEVICE_DEVS_EXTRA= \
> /bin/sh <./obj/ldt.tr
> ./obj/gdevcups.o(.text+0x2aca): In function `cups_print_pages':
> gdevcups.c: undefined reference to `cupsRasterWriteHeader2'
> collect2: ld returned 1 exit status
> make: *** [bin/gs] Error 1
>
>
> Daniel Li
> 2009.02.12
Sorry, I paste the wrong log, correct see below.
arm-none-linux-gnueabi-gcc -DHAVE_MKSTEMP -DHAVE_HYPOT -DHAVE_FILE64
-DHAVE_MKSTEMP64 -O2 -Wall -Wstrict-prototypes -Wundef
-Wmissing-declarations -Wmissing-prototypes -Wwrite-strings
-Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin
-fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long long"
-I./obj -I./base -o ./obj/gsromfs1.o -c ./obj/gsromfs1.c
./obj/echogs -w ./obj/ldt.tr -n - arm-none-linux-gnueabi-gcc
-o ./bin/gs
./obj/echogs -a ./obj/ldt.tr -n -s ./obj/gsromfs1.o ./obj/gs.o -s
cat ./obj/ld.tr >>./obj/ldt.tr
./obj/echogs -a ./obj/ldt.tr -s - -ldl -lm -lstdc++ -lpthread -lm
if [ x != x ]; then LD_RUN_PATH=; export LD_RUN_PATH; fi; \
XCFLAGS= XINCLUDE= XLDFLAGS= XLIBDIRS= XLIBS= \
FEATURE_DEVS= DEVICE_DEVS= DEVICE_DEVS1= DEVICE_DEVS2= DEVICE_DEVS3= \
DEVICE_DEVS4= DEVICE_DEVS5= DEVICE_DEVS6= DEVICE_DEVS7= DEVICE_DEVS8= \
DEVICE_DEVS9= DEVICE_DEVS10= DEVICE_DEVS11= DEVICE_DEVS12= \
DEVICE_DEVS13= DEVICE_DEVS14= DEVICE_DEVS15= DEVICE_DEVS16= \
DEVICE_DEVS17= DEVICE_DEVS18= DEVICE_DEVS19= DEVICE_DEVS20= \
DEVICE_DEVS_EXTRA= \
/bin/sh <./obj/ldt.tr
/opt/arm-none-linux-gnueabi/bin/../lib/gcc/arm-none-linux-gnueabi/3.4.4/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lcupsimage
collect2: ld returned 1 exit status
make: *** [bin/gs] Error 1
Daniel
More information about the gs-devel
mailing list