cairo/Gtk X compile problem.
- From: "harshavardhanreddy mandeepala" <hvreddy1110 gmail com>
- To: gtk-list gnome org
- Subject: cairo/Gtk X compile problem.
- Date: Mon, 4 Sep 2006 18:37:56 +0530
Hi All,
I am trying to cross compile cairo-1.1.6 for ARM11before cross compiling Gtk.
I already compiled Xcompiled,
XFree86-4.6.
But when i cross compile cairo-1.1.6 it is giving following error.
if arm-none-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I. -I..
-D_GNU_SOURCE -I. -I../pixman/src -I../src -I../src
-I/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/arm-none-linux-gnueabi/local/X11R6/include
-I/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/arm-none-linux-gnueabi/local/include/libpng12
-I/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/arm-none-linux-gnueabi/local/include/fontconfig
-I/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/arm-none-linux-gnueabi/local/include/freetype2
-I/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/arm-none-linux-gnueabi/local/include/libxml2
-Wall -Wpointer-arith
-Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -fno-strict-aliasing -g -O2 -MT
imagediff.o -MD -MP -MF ".deps/imagediff.Tpo" -c -o imagediff.o
imagediff.c; \
then mv -f ".deps/imagediff.Tpo" ".deps/imagediff.Po"; else rm -f ".deps/imagediff.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link
arm-none-linux-gnueabi-gcc -g -O2 -o imagediff
imagediff.o
libcairotest.la ../src/libcairo.la
-lpthread \
-lm
-L/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/arm-none-linux-gnueabi/local/lib
-lpng12
-L/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/arm-none-linux-gnueabi/local/lib/libfontconfig.so
-L/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/arm-none-linux-gnueabi/local/lib
-lxml2 -lz -lm
arm-none-linux-gnueabi-gcc -g -O2 -o .libs/imagediff imagediff.o
./.libs/libcairotest.a
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/arm-none-linux-gnueabi/lib/libstdc++.so
-L/usr/src/redhat/BUILD/crosstool/build/arm-none-linux-gnueabi/gcc-4.1.1-glibc-2.4-nptl-2/build-gcc/arm-none-linux-gnueabi/libstdc++-v3/src
-L/usr/src/redhat/BUILD/crosstool/build/arm-none-linux-gnueabi/gcc-4.1.1-glibc-2.4-nptl-2/build-gcc/arm-none-linux-gnueabi/libstdc++-v3/src/.libs
-L/usr/src/redhat/BUILD/crosstool/build/arm-none-linux-gnueabi/gcc-4.1.1-glibc-2.4-nptl-2/build-gcc/./gcc
-L/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/arm-none-linux-gnueabi/bin
-L/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/arm-none-linux-gnueabi/lib
../src/.libs/libcairo.so -lpthread
-L/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/arm-none-linux-gnueabi/local/lib
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/arm-none-linux-gnueabi/local/lib/libpng12.so
-L/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/arm-none-linux-gnueabi/local/lib/libfontconfig.so
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/arm-none-linux-gnueabi/local/lib/libxml2.so
-lz -lm -Wl,--rpath
-Wl,/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/arm-none-linux-gnueabi/lib
-Wl,--rpath
-Wl,/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/arm-none-linux-gnueabi/local/lib
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.1/../../../../arm-none-linux-gnueabi/bin/ld:
skipping incompatible
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/arm-none-linux-gnueabi/lib/libz.so
when searching for -lz
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.1/../../../../arm-none-linux-gnueabi/bin/ld:
warning: libXrender.so.1, needed by ../src/.libs/libcairo.so, not found
(try using -rpath or -rpath-link)
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.1/../../../../arm-none-linux-gnueabi/bin/ld:
warning: libX11.so.6, needed by ../src/.libs/libcairo.so, not found
(try using -rpath or -rpath-link)
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.1/../../../../arm-none-linux-gnueabi/bin/ld:
warning: libXext.so.6, needed by ../src/.libs/libcairo.so, not found
(try using -rpath or -rpath-link)
./.libs/libcairotest.a(cairo-test.o): In function `cleanup_xlib':
/home/harsha/Desktop/SRCLibs/ALLGTK_NEW/cairo-1.1.6/test/cairo-test.c:1106: undefined reference to `XFreePixmap'
/home/harsha/Desktop/SRCLibs/ALLGTK_NEW/cairo-1.1.6/test/cairo-test.c:1107: undefined reference to `XCloseDisplay'
./.libs/libcairotest.a(cairo-test.o): In function `create_xlib_surface':
/home/harsha/Desktop/SRCLibs/ALLGTK_NEW/cairo-1.1.6/test/cairo-test.c:1059: undefined reference to `XOpenDisplay'
/home/harsha/Desktop/SRCLibs/ALLGTK_NEW/cairo-1.1.6/test/cairo-test.c:1065: undefined reference to `XSynchronize'
/home/harsha/Desktop/SRCLibs/ALLGTK_NEW/cairo-1.1.6/test/cairo-test.c:1077: undefined reference to `XRenderFindStandardFormat'
/home/harsha/Desktop/SRCLibs/ALLGTK_NEW/cairo-1.1.6/test/cairo-test.c:1091: undefined reference to `XCreatePixmap'
/home/harsha/Desktop/SRCLibs/ALLGTK_NEW/cairo-1.1.6/test/cairo-test.c:1080: undefined reference to `XRenderFindStandardFormat'
/home/harsha/Desktop/SRCLibs/ALLGTK_NEW/cairo-1.1.6/test/cairo-test.c:1061: undefined reference to `XDisplayName'
../src/.libs/libcairo.so: undefined reference to `FcPatternAddInteger'
../src/.libs/libcairo.so: undefined reference to `FcPatternAddBool'
../src/.libs/libcairo.so: undefined reference to `FcPatternGetBool'
../src/.libs/libcairo.so: undefined reference to `XSetClipRectangles'
../src/.libs/libcairo.so: undefined reference to `FcNameConstant'
../src/.libs/libcairo.so: undefined reference to `XRenderQueryExtension'
../src/.libs/libcairo.so: undefined reference to `XRenderFreePicture'
../src/.libs/libcairo.so: undefined reference to `XFreeGC'
../src/.libs/libcairo.so: undefined reference to `XCopyArea'
../src/.libs/libcairo.so: undefined reference to `XSetClipMask'
../src/.libs/libcairo.so: undefined reference to `XRenderCompositeText32'
../src/.libs/libcairo.so: undefined reference to `XRenderFillRectangle'
../src/.libs/libcairo.so: undefined reference to `XRenderSetPictureFilter'
../src/.libs/libcairo.so: undefined reference to `FcPatternGetString'
../src/.libs/libcairo.so: undefined reference to `FcPatternGetInteger'
../src/.libs/libcairo.so: undefined reference to `XMaxRequestSize'
../src/.libs/libcairo.so: undefined reference to `XGetImage'
../src/.libs/libcairo.so: undefined reference to `XRenderCompositeText16'
../src/.libs/libcairo.so: undefined reference to `XRenderComposite'
../src/.libs/libcairo.so: undefined reference to `XRenderFindVisualFormat'
../src/.libs/libcairo.so: undefined reference to `FcPatternCreate'
../src/.libs/libcairo.so: undefined reference to `FcPatternAddString'
../src/.libs/libcairo.so: undefined reference to `FcPatternGet'
../src/.libs/libcairo.so: undefined reference to `XRenderSetPictureClipRectangles'
../src/.libs/libcairo.so: undefined reference to `XRenderSetPictureTransform'
../src/.libs/libcairo.so: undefined reference to `XRenderCreateGlyphSet'
../src/.libs/libcairo.so: undefined reference to `XRenderFreeGlyphs'
../src/.libs/libcairo.so: undefined reference to `XRenderFillRectangles'
../src/.libs/libcairo.so: undefined reference to `XSetErrorHandler'
../src/.libs/libcairo.so: undefined reference to `FcConfigSubstitute'
../src/.libs/libcairo.so: undefined reference to `FcPatternDestroy'
../src/.libs/libcairo.so: undefined reference to `XAddExtension'
../src/.libs/libcairo.so: undefined reference to `XRenderQuerySubpixelOrder'
../src/.libs/libcairo.so: undefined reference to `XRenderAddGlyphs'
../src/.libs/libcairo.so: undefined reference to `XSetTSOrigin'
../src/.libs/libcairo.so: undefined reference to `XRenderCompositeTrapezoids'
../src/.libs/libcairo.so: undefined reference to `XESetCloseDisplay'
../src/.libs/libcairo.so: undefined reference to `XRenderChangePicture'
../src/.libs/libcairo.so: undefined reference to `FcPatternGetMatrix'
../src/.libs/libcairo.so: undefined reference to `XInitImage'
../src/.libs/libcairo.so: undefined reference to `XGetDefault'
../src/.libs/libcairo.so: undefined reference to `XSetTile'
../src/.libs/libcairo.so: undefined reference to `XRenderCompositeText8'
../src/.libs/libcairo.so: undefined reference to `XScreenNumberOfScreen'
../src/.libs/libcairo.so: undefined reference to `XRenderQueryVersion'
../src/.libs/libcairo.so: undefined reference to `XRenderCreatePicture'
../src/.libs/libcairo.so: undefined reference to `XFillRectangle'
../src/.libs/libcairo.so: undefined reference to `XRenderFreeGlyphSet'
../src/.libs/libcairo.so: undefined reference to `FcFontMatch'
../src/.libs/libcairo.so: undefined reference to `XPutImage'
../src/.libs/libcairo.so: undefined reference to `XSetFillStyle'
../src/.libs/libcairo.so: undefined reference to `XCreateGC'
../src/.libs/libcairo.so: undefined reference to `FcDefaultSubstitute'
collect2: ld returned 1 exit status
make[2]: *** [imagediff] Error 1
make[2]: Leaving directory `/home/harsha/Desktop/SRCLibs/ALLGTK_NEW/cairo-1.1.6/test'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/harsha/Desktop/SRCLibs/ALLGTK_NEW/cairo-1.1.6'
make: *** [all] Error 2
But all libXrandr.so,libX11.so,...are there in
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/arm-none-linux-gnueabi/local/X11R6/lib
Which i specified in makefile also.
In make file also I modified in CAIRO_LIBS ,CAIRO_CFLAGS...
Any idea why it is not taking the libXrandr.so from the specified path.
Thanks in advance.
Regards,
Harsha
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]