Can Eclipse use .so files from NDK compilation on another platform?
On a mac OS X I run ndk which generates some .so libraries which in theory
should be reusable on windows. However, when I eclipse recompile my
Android project on windows I get different apk size and it runs
differently than when the whole eclipse build is done on Mac. Only
building on the mac works. Not taking the .so files from the mac ndk
build, and reusing them in the windows build. Its either that or something
different about how macs and windows builds apk files that I don't
understand. The problem with the windows generated apk is that it has
memory over consumption not seen on the apk generated solely on osx.
So to clarify this (ON MAC OS X) works:
1) run ndk on ios generate .so files 2) OS X eclipse compile android app
and deploy on device. 3) OS X eclipse run apk on device.
the generated apk of course runs on all devices.
This (ON WINDOWS) does NOT work: 1) on windows use .so generated on ios
ndk build. 2) windows eclipse compile android apps using the .so files
generated by ndk on OS X. 3) eclipse run apk on device. The apk is of a
different byte count and although it loads, it now generates memory errors
unlike the apk developed solely on the OS X.
Thanks!
No comments:
Post a Comment