Help - Search - Members - Calendar
Full Version: Native Onboard Development / Sdk
OESF Forums > Distros, Development, and Model Specific Forums > Everything Development > OpenZaurus/Opie/Qtopia
ShiroiKuma
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 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:
CODE
/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?
pgas
try
QUOTE
ln -s /usr /usr/


(/usr/bin/../../usr/usr/lib/libc_nonshared.a = /usr/usr/lib/libc_nonshared.a )
ShiroiKuma
QUOTE(pgas @ May 13 2006, 06:37 AM)
try
QUOTE
ln -s /usr /usr/


(/usr/bin/../../usr/usr/lib/libc_nonshared.a = /usr/usr/lib/libc_nonshared.a )
*


Thanks:

In the meantime I've committed this ugly hack:
CODE
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.