6

I never used c++ for android and NDK before. When I use it for - say - image processing I want to be sure app will work on all devices with android 2.2 and higher.

When I write for iPhone, xcode compiles 2 binaries for arm7 and arm7s architectures and packs them into the same bundle.

Now I've written a sample NDK app which doesn't want to run on x86 android emulator while running well on my Nexus 7. I think it's obvious that should be the way to make it run both on arm and x86, but still can't find it. Does somebody know? Thanks!

4

2 回答 2

14

对不起,愚蠢的问题。以防万一有人关心:您只需将这个字符串添加到 Application.mk 中:

APP_ABI := all
于 2013-05-15T12:00:50.330 回答
0

我猜这可以帮助你,

示例应用程序移植指南: http: //software.intel.com/en-us/articles/using-the-android-x86-ndk-with-eclipse-and-porting-an-ndk-sample-app

于 2013-10-25T06:41:54.143 回答