ARMV7s iOS binaries missing NEON optimizations
I've successfully compiled and used the encoding library on the iOS platform, whilst running the app on an armv7 and arm64 produces very nice results. The same app does not run nearly as well on armv7s arch, since i was forced to disable optimisations in order to get it to compile.
My issue is, that why can't I compile the library for armv7s with optimisations? Am I missing somehing?
My compilation command for armv7 and arm64: make -j 4 install-static OS=ios ARCH=${MSE_ARCH} PREFIX=${MSE_BASE_DIR}/temp/build/${MSE_ARCH}
Mu compilation command for armv7s: make -j 4 install-static OS=ios ARCH=${MSE_ARCH} PREFIX=${MSE_BASE_DIR}/temp/build/${MSE_ARCH} USE_ASM=No
The errors I get whilst trying to compile are the likes of:
Undefined symbols for architecture armv7s: "_DyadicBilinearDownsamplerWidthx32_neon", referenced from:
And some warnings for: ld: warning: ignoring file codec/processing/src/arm/vaa_calc_neon.o, file was built for armv7 which is not the architecture being linked (armv7s): codec/processing/src/arm/vaa_calc_neon.o
"make clean" does not clean ".o" files under: codec/processing/src/arm/
resulting in inconsistant architectures.
Yes, unfortunately 'make clean' makes its obj list based on the parameters. So 'make OS=ios clean' will rm different files than 'make OS=msvc clean' or 'make BUILDTYPE=Debug'. This is a bug we have not fixed yet. If you do your make cleans with the same parameters as your makes you'll have a workaround.