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 19:56
Subject:
Re: Question on porting perl 5.16 to Android (no /bin/sh)
Message ID:
5227906B.3070007@candelatech.com
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.

Any idea what I'm doing wrong?  I'm suspicious that perl's Configure would have
no idea what to do with my $DEVICE?


export ANDROID_NDK=$HOME/android/android-ndk-r9
export ANDROID_SDK=$HOME/android/android-sdk-linux
export ANDROID_TOOLCHAIN=$HOME/my-android-toolchain-8
export PATH="$ANDROID_SDK/platform-tools:$ANDROID_NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin:$PATH"

# Turn on USB debugging in developer-options on phone, then:
adb devices
export DEVICE=04dba74c5cde4be7

export TARGETDIR=/data/data/candela.lanforge/local/
adb -s $DEVICE shell "echo sh -c '\"mkdir -p $TARGETDIR\"' | su --"
adb -s $DEVICE pull /system/lib /tmp/tmpandroidlib
./Configure -des -Dusedevel -DDEBUGGING -Dusecrosscompile -Dcc=arm-linux-androideabi-gcc -Dtargethost=$DEVICE -Dsysroot=$ANDROID_TOOLCHAIN/sysroot 
-Dtargetdir=$TARGETDIR


[greearb@ben-dt2 perl-cross-ugmeir]$ ./Configure -des -Dusedevel -DDEBUGGING -Dusecrosscompile -Dcc=arm-linux-androideabi-gcc -Dtargethost=$DEVICE 
-Dsysroot=$ANDROID_TOOLCHAIN/sysroot -Dtargetdir=$TARGETDIR
First let's make sure your kit is complete.  Checking...
Would you like to see the instructions? [n]
Locating common programs...
Checking compatibility between /usr/bin/echo and builtin echo (if any)...
Symbolic links are supported.
Checking how to test for symbolic links...
You can test for symbolic links with 'test -h'.
Guessing incpth 
'/home/greearb/android/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/include 
/home/greearb/android/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/include-fixed'.
Guessing libpth 
'/home/greearb/android/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/include-fixed'.
Using targetarch arm-linux-androideabi.
Using incpth '/home/greearb/android/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/include 
/home/greearb/android/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/include-fixed'.
Using libpth 
'/home/greearb/android/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.8/include-fixed'.
Usrinc not defined.
Using targethost 04dba74c5cde4be7.
Cannot continue, aborting.


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