Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nnpack cross-compilation error for android #42

Closed
knsong opened this issue Dec 23, 2016 · 1 comment
Closed

nnpack cross-compilation error for android #42

knsong opened this issue Dec 23, 2016 · 1 comment

Comments

@knsong
Copy link

knsong commented Dec 23, 2016

hi, when I compile nnpack for android on Ubuntu 14.04 using android-ndk-r11b, there are always errors such as:

In file included from jni/../jni/../src/psimd/2d-fourier-8x8.c:3:
/usr/include/complex.h:35:19: error: token is not a valid binary operator in a preprocessor subexpression
#if __GNUC_PREREQ (2, 7) && !__GNUC_PREREQ (2, 97)

I directly compiled nnpack without any modifications of jni/Android.mk, Application.mk using command NDK_ROOT/ndk_build in NNPACK folder.
I've googled it much but still can't find out what the problem is. Can you give me some hint? Thanks in advance!

@knsong
Copy link
Author

knsong commented Dec 23, 2016

Finally modified Application.mk from APP_PLATFORM := android-14 to APP_PLATFORM := android-21 solved the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant