OESF Portables Forum
Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => OpenZaurus/Opie/Qtopia => Topic started by: ShiroiKuma on May 12, 2006, 08:18:45 pm
-
I've been trying to run native onboard compilation on the Z, under 3.4.5.1-rc2, but can't get it to work. So I have two questions.
In the latest OOO Newsletter (http://openzaurus.org/wordpress/2006/05/08/ooo-newsletter-200605-released/) it mentions a native SDK. Where is it? I couldn't find it?
If that's a no go, could someone walk me through setting up a native development environment on the Z. I've installed a ton of packages, which I think are necessary.
Now when I try compiling a simple hello world prog, I get:/usr/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/bin/ld: cannot find /usr/lib/libc_nonshared.a inside /usr/bin/../../usr
collect2: ld returned 1 exit status
The file libc_nonshared.a is in /usr/lib/
I can't determine what the problem is. Can someone help me?
-
try
ln -s /usr /usr/
(/usr/bin/../../usr/usr/lib/libc_nonshared.a = /usr/usr/lib/libc_nonshared.a )
-
try
ln -s /usr /usr/
(/usr/bin/../../usr/usr/lib/libc_nonshared.a = /usr/usr/lib/libc_nonshared.a )
[div align=\"right\"][a href=\"index.php?act=findpost&pid=126852\"][{POST_SNAPBACK}][/a][/div]
Thanks:
In the meantime I've committed this ugly hack:Edit /usr/lib/libc.so and change to:
/* GNU ld script
Use the shared library, but some functions are only in
the static library, so try that secondarily. */
OUTPUT_FORMAT(elf32-littlearm)
/* GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED
( /lib/ld-linux.so.2 ) ) */
GROUP ( /lib/libc.so.6 /lib/libc_nonshared.a AS_NEEDED
( /lib/ld-linux.so.2 ) )
and libpthread.so
ln -s /lib/ld-linux.so.2 /usr/lib
ln -s /usr/lib/libpthread_nonshared.a /lib/
ln -s /usr/lib/libc_nonshared.a /lib/
Seems to be working so far.
Will see how it goes.