Hello Toni,

Finally, I have solved the problem. I have done a lot of test.
In one test I changed the file and I configured
/etc/apt/source.list with a "unstable" to "stable" and I
installed libgtk2.0-dev but libc6-dev wasn`t updated. Great!!

I tried to compile hello-world-gtk and compiled!

Then I followed with gpsdrive. I had some problems but I
solved them. I am go to sum up my problems with gpsdrive.


I run ./configure and

bject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0
checking for pcre-config... no



apt-get install libpcre3-dev
Reading Package Lists... Done

I install another packages as

apt-get install libgcrypt11 libgpg-error0 libxrandr2 libxext6

apt-get install libxcursor1

apt-get install libatk1.0-0

apt-get install libpango1.0-devç

apt-get install libxft2 libxrender1

apt-get install libfontconfig1 libfreetype6

apt-get install zlib1g

apt-get install libexpat1
apt-get install libx11-6
apt-get install libxau0 libgcc1
apt-get install libpcre3-dev
apt-get install libglib2.0-0


I try to compile but

0.so -L/usr/lib -lpcre
friends.o(.text+0x7d0): In function `friendsinit':
/home/svito/MYTARGET14/gpsdrive-2.10pre2/src/friends.c:439:
undefined reference to `crypt'



apt-get install libgcrypt*



Then I try to compile but the error


gcc -g -O2 -g -Wall -Wno-format-y2k -pipe -DXTHREADS
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/X11R6/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/libart-2.0 -I./mysql -o friendsd2 friendsd.o
-Wl,--export-dynamic  -pthread /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/libpangoxft-1.0.so
/usr/lib/libpangox- 1.0.so /usr/lib/libpango-1.0.so
/usr/lib/libgobject- 2.0.so /usr/lib/libgmodule-2.0.so -ldl
/usr/lib/libgthread- 2.0.so -lpthread /usr/lib/libglib-2.0.so
/usr/lib/libart_lgpl_2.so -lm -L/usr/lib -lpcre ../intl/libintl.a
sbox-arm-linux-gcc: ../intl/libintl.a: No such file or directory
make[2]: *** [friendsd2] Error 1
make[2]: Leaving directory `/home/svito/MYTARGET14/gpsdrive/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/svito/MYTARGET14/gpsdrive'
make: *** [all] Error 2
[sbox-MYTARGET14: ~/MYTARGET14/gpsdrive] >

Then I install

apt-get install gettext

apt-get install libintl*

apt-get install netcat


Finally I tried to compile and It compiled!!


After I had some problems in the Ipaq because gpsdrive didn`t
found libart and libcre but I solved



ipkg install libart-lgpl-2-2

ipkg install libpcre0

rcp
/scratchbox/users/svito/targets/MYTARGET14/usr/lib/libpcre.so.3.10.0
[EMAIL PROTECTED]:/usr/lib/libpcre.so.3


I think about: "You probably installed a version of libc6 (or
libc6-dev) that is
incompatible with the toolchain ..." and achieved my target.

Thank you very much for yor help Toni!!




>On Mon, May 08, 2006 at 01:33:19PM +0100, "José A.Benítez
Peláez" wrote:
>>
>> I know that I have installed a newest version of libc6. Well,
>> My final target is to compile gpsdrive and it needs gtk2.
>> First, I have tried to compile hello-world-gtk example
>> included in scratchbox but it needs gtk and libpango and
>> others libraries.  Gtk and libpango ask me to install a newest
>> version of libc6.
>You might want to build gtk and libpango against the libc6
you are
>using and install them. If there are a lot of dependencies, the
>Crocodile might be usefull in this process.
>>
>> Well, I have try to install libc6-dev
>> <...>
>>
>> [sbox-MYTARGET10:
>> /scratchbox/compilers/arm-linux-ct401-2.3/packages] > dpkg
-i libc6-dev_2.3.2-sb1_arm.deb
>> dpkg - warning: downgrading libc6-dev from 2.3.6-7 to
2.3.2-sb1.
>> dpkg: regarding libc6-dev_2.3.2-sb1_arm.deb containing
libc6-dev:
>>  linux-kernel-headers conflicts with libc6-dev (<< 2.3.2.ds1-6)
>>   libc6-dev (version 2.3.2-sb1) is to be installed.
>To survive with most dependency issues, you can install those
packages
>by running:
>[sbox-MYTARGET10:/scratchbox/compilers/arm-linux-ct401-2.3/packages]
> dpkg -i *.deb
>To quickly check that compiler can create executables and
those can be
>run, you can use:
>     gcc /scratcbox/packages/hello.c && ./a.out
>If the hello.c doesn't compile even after the libc6 package
>installation, it might be easiest to reset the target and
install them
>to the clean target.
>   sb-conf reset --force
>   sb-conf install -edF
>   dpkg -i /scratchbox/compilers/`sb-conf sh -c`/packages/*.deb
>If hello.c doesn't work even now, then there is something
wrong elsewhere.
>--
>Toni Timonen
>040-5111863,GPG 0x7984A4FD


_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to