NDK R10 32 bit builds

782 views
Skip to first unread message

LXS5461

unread,
Jul 30, 2014, 11:13:24 AM7/30/14
to andro...@googlegroups.com
Hi all,

I am trying to use android-ndk64-r10-windows-x86 to build 32 bit android binaries on my windows machine.
The NDK command I use is - 
android-ndk64-r10-windows-x86\android-ndk-r10\ndk-build.cmd NDK_DEBUG=1 APP_PLATFORM=android-L -j8 NDK_TOOLCHAIN_VERSION=4.9 NDK_TOOLCHAIN=arm-linux-androideabi-4.9 APP_ABI=armeabi-v7a TARGET_BOARD_PLATFORM=<> TARGET_PRODUCT=<> PLATFORM_SDK_VERSION=L

However, when I build it, make errors out,
copy /b/y "C:\AndroidNDK\android-ndk64-r10-windows-x86\android-ndk-r10\prebuilt\android-arm\gdbserver\gdbserver" "libs\armeabi-v7a\gdbserver" > NUL
make.exe: *** [libs/armeabi-v7a/gdbserver] Error 1
make.exe: *** Waiting for unfinished jobs....

I see that, in AndroidNDK64-R10, prebuilt\android-arm\gdbserver\gdbserver is missing.
If I copy it from old NDK to prebuilt\android-arm\gdbserver, I seems to compile fine.  Is this a bug or something else is going on here?

Thanks for your inputs.

LXS5461

unread,
Aug 8, 2014, 10:27:21 AM8/8/14
to andro...@googlegroups.com
Any suggestions please ? 

Thanks!

Philippe Simons

unread,
Aug 8, 2014, 10:44:43 AM8/8/14
to android-ndk
ndk64 are meant to build 64bit binaries...
use ndk32 if you want to build 32bit binaries


--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-ndk.
For more options, visit https://groups.google.com/d/optout.

LXS5461

unread,
Aug 11, 2014, 11:17:46 AM8/11/14
to andro...@googlegroups.com
Thanks Simons! It works fine with ndk32. Appreciate your help.

Rick

unread,
Sep 26, 2014, 1:54:39 AM9/26/14
to andro...@googlegroups.com
Hello Phillippe,

Can you explain me what is the difference in the 32-bit armeabi binaries compiled using ndk32 and ndk64?
Because in my project when I compile binary using ndk32, it runs fine; but when I compile 32-bit binary using ndk64, it says it can not load/find library.
Please note that compilation succedded but it could not load the library at run time.
Thanks for your help.
Reply all
Reply to author
Forward
0 new messages