develooper Front page | perl.perl5.porters | Postings from September 2013

Re: Question on porting perl 5.16 to Android (no /bin/sh)

Thread Previous | Thread Next
From:
Ben Greear
Date:
September 4, 2013 20:49
Subject:
Re: Question on porting perl 5.16 to Android (no /bin/sh)
Message ID:
52279CD7.5040209@candelatech.com
On 09/04/2013 01:00 PM, Brian Fraser wrote:
> On Wed, Sep 4, 2013 at 4:56 PM, Ben Greear <greearb@candelatech.com <mailto:greearb@candelatech.com>> wrote:
>
>     I tried to condense your original email instructions down to specifics for my machine,
>     but I'm having no luck.  I'm using ugmeir's perl repo as you suggested...I did not choose
>     any particular branch, I just cloned it from github.
>
>
> I'm Hugmeir, so :)
> You want the configure-for-cross branch, not the main one. I think that might be the issue.

Ahh, good to know.  And I fixed the spelling in my directory name :)

It does a lot more now, but still has some issues.  I'll go poke
at the run-adb-shell, I suspect it may be mis-behaving on my system...


/usr/bin/cat: output.stdout: No such file or directory
/usr/bin/cat: output.stderr: No such file or directory
/usr/bin/cat: output.status: No such file or directory
rm: cannot remove `output.stdout': No such file or directory
rm: cannot remove `output.stderr': No such file or directory
rm: cannot remove `output.status': No such file or directory
I've tried to compile and run the following simple program:

#include <stdio.h>
int main() { printf("Ok\n"); return(0); }

I used the command:

	arm-linux-androideabi-gcc -o try -O -g --sysroot=/home/greearb/my-android-toolchain-8/sysroot -DDEBUGGING -I/usr/local/include 
--sysroot=/home/greearb/my-android-toolchain-8/sysroot try.c -ldl -lm -lc
	/home/greearb/android/perl-cross-hugmeir/Cross/run-adb-shell ./try

and I got the following output:

/usr/bin/cat: output.stdout: No such file or directory
/usr/bin/cat: output.stderr: No such file or directory
/usr/bin/cat: output.status: No such file or directory
rm: cannot remove `output.stdout': No such file or directory
rm: cannot remove `output.stderr': No such file or directory
rm: cannot remove `output.status': No such file or directory

The program compiled OK, but produced no output.
Any additional ld flags (NOT including libraries)? [y]
Ok.  Stopping Configure.
[greearb@ben-dt2 perl-cross-hugmeir]$

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About