openh264 icon indicating copy to clipboard operation
openh264 copied to clipboard

ARMV7s iOS binaries missing NEON optimizations

Open agah-pt opened this issue 12 years ago • 2 comments

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

agah-pt avatar May 08 '14 13:05 agah-pt

"make clean" does not clean ".o" files under: codec/processing/src/arm/

resulting in inconsistant architectures.

agah-pt avatar May 09 '14 10:05 agah-pt

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.

ethanhugg avatar May 09 '14 16:05 ethanhugg