[weston] Linking native library in cross compiling.

Joaquim Duran jduran.gm at gmail.com
Mon Oct 5 09:53:07 PDT 2015


Dear all

I'm cross compiling the weston for arm and I have the problem that
when linking, it links with the native pixman library.

The most recent commit:

commit aa9747833efa6e9686ce3af0ec17afcf4efce342
Author: Giulio Camuffo <giuliocamuffo at gmail.com>
Date:   Sun Feb 1 16:18:51 2015 +0200

The command used to configure the project:

SYSROOT_DIR=/home/gem-med/Logic_BSPs/Linux_3.0/Linux_BSP/rootfs
INSTALL_DIR=/usr

CC=/opt/CodeSourcery/arm-2011.09/bin/arm-none-linux-gnueabi-gcc \
CXX=/opt/CodeSourcery/arm-2011.09/bin/arm-none-linux-gnueabi-g++ \
AR=/opt/CodeSourcery/arm-2011.09/bin/arm-none-linux-gnueabi-ar \
RANLIB=/opt/CodeSourcery/arm-2011.09/bin/arm-none-linux-gnueabi-ranlib \
./autogen.sh \
    --disable-png \
    --disable-devdocs \
    --disable-dbus \
    --disable-xwayland \
    --disable-xwayland-test \
    --disable-x11-compositor \
    --disable-drm-compositor \
    --enable-wayland-compositor \
    --disable-headless-compositor \
    --disable-rpi-compositor \
    --disable-fbdev-compositor \
    --disable-rdp-compositor \
    --disable-systemd-login \
    --disable-weston-launch \
    --disable-wcap-tools \
    --disable-clients \
    --disable-simple-clients \
    --disable-simple-egl-clients \
    --with-cairo-glesv2 \
    --build=i686-linux --host=arm-none-linux-gnueabi
--target=arm-none-linux-gnueabi \
    --prefix=$INSTALL_DIR --with-sysroot=${SYSROOT_DIR}

make
sudo make DESTDIR=${SYSROOT_DIR} install

(Also, I've configured shell variables to locate the libraries)

libshared-cairo.la:

libshared-cairo.la:dependency_libs='
-L/home/gem-med/Logic_BSPs/Linux_3.0/Linux_BSP/rootfs/usr/lib
/home/gem-med/Logic_BSPs/Linux_3.0/Linux_BSP/rootfs/usr/lib/libpixman-1.la
/home/gem-med/Logic_BSPs/Linux_3.0/Linux_BSP/rootfs/usr/lib/libcairo.la
/usr/lib/libpixman-1.la
-L/home/gem-med/Logic_BSPs/Linux_3.0/src/Graphics_SDK_4_06_00_02/gfx_rel_es5.x
-lgcc_s -lgcc -lEGL -lIMGegl -lsrv_um -lGLESv2 -ldl -lz -lrt -lm
-lpng12 -ljpeg'


The error:

  CC     shared/libshared_cairo_la-cairo-util.lo
  CC     shared/libshared_cairo_la-frame.lo
  CCLD   libshared-cairo.la
libtool: link: warning: library
`/home/gem-med/Logic_BSPs/Linux_3.0/Linux_BSP/rootfs/usr/lib/libpixman-1.la'
was moved.
libtool: link: warning: library
`/home/gem-med/Logic_BSPs/Linux_3.0/Linux_BSP/rootfs/usr/lib/libcairo.la'
was moved.
  CCLD   wayland-backend.la
libtool: link: warning: library
`/home/gem-med/Logic_BSPs/Linux_3.0/Linux_BSP/rootfs/usr/lib/libwayland-server.la'
was moved.
libtool: link: warning: library
`/home/gem-med/Logic_BSPs/Linux_3.0/Linux_BSP/rootfs/usr/lib/libwayland-client.la'
was moved.
libtool: link: warning: library
`/home/gem-med/Logic_BSPs/Linux_3.0/Linux_BSP/rootfs/usr/lib/libwayland-cursor.la'
was moved.
libtool: link: warning: library
`/home/gem-med/Logic_BSPs/Linux_3.0/Linux_BSP/rootfs/usr/lib/libpixman-1.la'
was moved.
libtool: link: warning: library
`/home/gem-med/Logic_BSPs/Linux_3.0/Linux_BSP/rootfs/usr/lib/libcairo.la'
was moved.
libtool: link: cannot find the library `/usr/lib/libpixman-1.la' or
unhandled argument `/usr/lib/libpixman-1.la'
make[1]: *** [wayland-backend.la] Error 1
make[1]: Leaving directory `/home/gem-med/Logic_BSPs/Linux_3.0/src/weston'
make: *** [all] Error 2
[sudo] password for gem-med:


Joaquim Duran


More information about the wayland-devel mailing list