HelloWorld_Android doesn't build
Posted: Fri May 19, 2017 12:26 am
The Irrlicht library builds fine using ndk-build. In <my-repo>/source/Irrlicht/Android/obj/local/ the following directories are created:
arm64-v8a
armebi
armeabi-v7a
mips
mips64
x86
x86_64
In each of these directories is the libIrrlicht.a file (among other things).
In <my-repo>/lib/Android/ is a version of the libIrrlicht.a file. By comparing the size of this lib file with the ones mentioned above it seems to be the same one from either the armeabi-v7a or mips directory.
Now for my problem. When I attempt step 4 under section BUILDING Irrlicht & your App of the readme.txt file in <my-repo>/examples/01.HelloWorld_Android/ I get the following error:
It seems like it is trying to build for every target platform, but using the wrong version of libIrrlicht.a. Do I need to edit Android.mk or Application.mk or something?
arm64-v8a
armebi
armeabi-v7a
mips
mips64
x86
x86_64
In each of these directories is the libIrrlicht.a file (among other things).
In <my-repo>/lib/Android/ is a version of the libIrrlicht.a file. By comparing the size of this lib file with the ones mentioned above it seems to be the same one from either the armeabi-v7a or mips directory.
Now for my problem. When I attempt step 4 under section BUILDING Irrlicht & your App of the readme.txt file in <my-repo>/examples/01.HelloWorld_Android/ I get the following error:
Code: Select all
jni/../jni/../../../lib/Android/libIrrlicht.a: error adding symbols: File in wrong format
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [obj/local/arm64-v8a/libHelloWorldMobile.so] Error 1