Can't compile openmoko-sample2 on Ubuntu 8.10 - libgtk-x11-2.0

Angus Ainslie nytowl at openmoko.org
Thu Apr 2 00:14:17 CEST 2009


On Wed, 2009-04-01 at 14:12 -0700, Matthias Keller wrote:
> Dear all,
> 
> I'm trying to compile the sample application on my Ubuntu 8.10 box.
> 
> System: Ubuntu 8.10 i686
> Toolchain: http://downloads.openmoko.org/developer/toolchains/openmoko-i686-20090323-armv4t-linux-gnueabi-toolchain-openmoko.tar.bz2 - however, the same appeared also with a previous version
> Libtool: 1.5.26-1ubuntu1
> 
> Error message when running make:
> 
> ===
> libtool: link: warning: library `/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/lib/libdbus-glib-1.la' was moved.
> libtool: link: warning: library `/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/lib/libdbus-1.la' was moved.
> libtool: link: cannot find the library `/usr/lib/libgtk-x11-2.0.la'
> make[2]: *** [openmoko-sample] Error 1
> make[2]: Leaving directory `/home/kellmatt/openmoko-sample2/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/kellmatt/openmoko-sample2'
> make: *** [all] Error 2
> ===
> 
> However, libgtk-x11-2.0.la exists in the toolchain lib dir:
> 
> ===
> user at pc:~/openmoko-sample2$ ls /usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/lib/libgtk-x11-2.0**
> /usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/lib/libgtk-x11-2.0.la  
> /usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/lib/libgtk-x11-2.0.so.0
> /usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/lib/libgtk-x11-2.0.so  
> /usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/lib/libgtk-x11-2.0.so.0.1200.11
> ===
> 

Hi Matthias,

The library is in the right place but libtool is looking for it in the
wrong place, the host /usr/lib not the target /usr/lib. 

I have no experience with openmoko-sample2 specifically but this kind of
error is usually a erroneous LDFLAGS. I can probably be fixed in the
configure or make steps.

Angus






More information about the devel mailing list