Hi,

I have built a helloworld application using NDK. It works fine in
emulator and target.

If I load it to Debian system (armv5te), it would execute:

./helloworld
-bash: ./helloworld: No such file or directory

file helloworld
helloworld: ELF 32-bit LSB executable, ARM, version 1 (SYSV),
dynamically linked (uses shared libs), not stripped

I have put Android libraries into a local directory and set
LD_LIBRARY_PATH accordingly:

ldd helloworld
        libc.so => /root/projects/lib/libc.so (0x40001000)
        libstdc++.so => /root/projects/lib/libstdc++.so (0x40049000)
        libm.so => /root/projects/lib/libm.so (0x4004b000)
        libdl.so => /root/projects/lib/libdl.so (0x4006d000)

Using strace:

strace ./helloworld
execve("./helloworld", ["./helloworld"], [/* 16 vars */]) = -1 ENOENT
(No such file or directory)
dup(2)                                  = 3
fcntl64(3, F_GETFL)                     = 0x20002 (flags O_RDWR|
O_LARGEFILE)
fstat64(3, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4001e000
_llseek(3, 0, 0xbec38918, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: No such file or di"..., 40strace: exec: No
such file or directory
) = 40
close(3)                                = 0
munmap(0x4001e000, 4096)                = 0
exit_group(1)                           = ?

Thanks.

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to