https://bugs.kde.org/show_bug.cgi?id=417175

Raju Ponnagani <shivaraju173ponnag...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |shivaraju173ponnagani@gmail
                   |                            |.com

--- Comment #1 from Raju Ponnagani <shivaraju173ponnag...@gmail.com> ---
Hello Nikitha,

   I cross-compiled the Valgrind and worked for me. Follow the below steps it
will work.

steps:-
1.For arm64 (aarch64) you need the android-ndk-r10c NDK, from
        http://dl.google.com/android/ndk/android-ndk-r10c-linux-x86_64.bin

2.Install the NDK somewhere in Host machine.  Doesn't matter where.  Then:
        ./android-ndk-r10c-linux-x86_64.bin

3.set the environment (AR, LD and CC) in valgrind dir.
        export NDKROOT=/path/to/android-ndk-r<version>
        export
AR=$NDKROOT/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-ar
 
        export
LD=$NDKROOT/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-ld
        export
CC=$NDKROOT/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-gcc

4.Execute it in valgrind dir.
        ./autogen.sh

5.
        CPPFLAGS="--sysroot=$NDKROOT/platforms/android-21/arch-arm64" \
           CFLAGS="--sysroot=$NDKROOT/platforms/android-21/arch-arm64" \
           ./configure --prefix=/data/local/Inst \
           --host=aarch64-unknown-linux --target=aarch64-unknown-linux \
           --with-tmpdir=/sdcard


# At the end of the configure run, a few lines of details
# are printed.  Make sure that you see these two lines:
# For ARM64 (AArch64):
#          Platform variant: android
#     Primary -DVGPV string: -DVGPV_arm64_linux_android=1
#

make -j4 install DESTDIR=`pwd`/Inst

adb push Inst /data/local

$/data/local/Inst/bin/valgrind

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to