<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7653.38">
<TITLE>Need your help: Problem in building the sample application</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi all,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I am trying to set up the development environment on my PC by following the instructions of WIKI.</FONT>

<BR><FONT SIZE=2 FACE="Arial">My OS: is ubuntu-8.04.1-desktop-i386.iso</FONT>

<BR><FONT SIZE=2 FACE="Arial">I downloaded and installed the toolchain of openmoko-i686-arm-linux-gnueabi-toolchain.tar.bz2 (Sept. 19 2008)</FONT>

<BR><FONT SIZE=2 FACE="Arial">And then, I created the build configuration for openmoko-sample2.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Everything is OK by far.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">But when I execute<B> make,</B> I get the following error:</FONT>
</P>

<P><FONT FACE="Simsun">fakeren@fakeren-desktop:~/openmoko-sample2/src$ make<BR>
/bin/bash ../libtool</FONT><SPAN LANG="en-us"> <FONT FACE="Arial">--tag=CC   --mode=link ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t</FONT></SPAN><SPAN LANG="zh-cn"><FONT FACE="Simsun"> -mtune=arm920t -std=gnu99 -Wall -pedantic -std=c99 -I/usr/include/libmokoui2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/gconf/2 -I/usr/include/dbus-1.0</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Arial">-I/usr/lib/dbus-1.0/include  </FONT></SPAN><SPAN LANG="zh-cn"><FONT FACE="Simsun"> -isystem/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/include</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Arial">-fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os </FONT></SPAN><SPAN LANG="zh-cn"><FONT FACE="Simsun"> -L/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/lib -Wl,-rpath-link,/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/lib -Wl,-O1 -o openmoko-sample sample-main.o -lmokoui2 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgmo! dule-2.0 -ldl</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Arial">-lgconf-2 -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0  </FONT></SPAN><SPAN LANG="zh-cn"><FONT FACE="Simsun"><BR>
libtool: link: warning: library `/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/lib/libdbus-glib-1.la' was moved.<BR>
libtool: link: warning: library `/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/lib/libdbus-1.la' was moved.<BR>
libtool: link: warning: library `/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/lib/libdbus-glib-1.la' was moved.<BR>
libtool: link: warning: library `/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/lib/libdbus-1.la' was moved.<BR>
ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t -std=gnu99 -Wall -pedantic -std=c99 -I/usr/include/libmokoui2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/gconf/2 -I/usr/include! /dbus-1.0 -I/usr/lib/dbus-1.0/include -isystem/usr/local/openmoko/arm/ arm-angstrom-linux-gnueabi/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -Wl,-rpath-link -Wl,/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/lib -Wl,-O1 -o</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Arial">openmoko-sample sample-main.o </FONT></SPAN><SPAN LANG="zh-cn"><FONT FACE="Simsun"> -L/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/lib /usr/lib/libmokoui2.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangocairo-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libcairo.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libgconf-2.so /usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/lib/libdbus-glib-1.so /usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/lib/libdbus-1.so</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Arial">/usr/lib/libgobject-2.0.so /usr/lib/libglib-2.0.so   -Wl,--rpath</FONT></SPAN><SPAN LANG="zh-cn"><FONT FACE="Simsun"> -Wl,/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/lib -Wl,--rpath -Wl,/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/lib<BR>
</FONT></SPAN><SPAN LANG="zh-cn"><B><FONT FACE="Simsun">/usr/lib/libmokoui2.so: could not read symbols: File in wrong format<BR>
</FONT></B><FONT FACE="Simsun">collect! 2: ld returned 1 exit status<BR>
make: *** [openmoko-sample] Error 1<BR>
</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT FACE="Arial">BTW: I installed packages by</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Simsun">sudo apt-get install gcc g++ autoconf automake binutils libtool libglib2.0-dev</FONT></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Simsun"></FONT> <FONT SIZE=2 FACE="Simsun">ccache libxrender-dev intltool libmokoui2-dev libgconf2-dev mtools fakeroot alien check</FONT></SPAN></P>
<BR>

<P><SPAN LANG="en-us"><FONT FACE="Simsun">Regards</FONT></SPAN><SPAN LANG="zh-cn"></SPAN>
</P>

</BODY>
</HTML>