OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Native Onboard Development / Sdk
ShiroiKuma
post May 12 2006, 04:18 PM
Post #1





Group: Members
Posts: 902
Joined: 22-May 04
Member No.: 3,385



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?
Go to the top of the page
 
+Quote Post
pgas
post May 12 2006, 09:37 PM
Post #2





Group: Members
Posts: 1,099
Joined: 17-December 03
From: Athens, Greece
Member No.: 1,210



try
QUOTE
ln -s /usr /usr/


(/usr/bin/../../usr/usr/lib/libc_nonshared.a = /usr/usr/lib/libc_nonshared.a )
Go to the top of the page
 
+Quote Post
ShiroiKuma
post May 12 2006, 10:01 PM
Post #3





Group: Members
Posts: 902
Joined: 22-May 04
Member No.: 3,385



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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 28th August 2014 - 05:28 PM