Closed mdjp closed 1 year ago
Thumb mode is not supported. Does it work when setting -DANDROID_FORCE_ARM_BUILD=ON
?
Yes, that works fine. thanks for the quick response!
Glad it works. Seems we forgot to mention this in the build instructions on the wiki pages.
When trying to build for Android on an M2 mac I get the following errors at the build stage. Have you come across this before?
(configured with : cmake -S mpeghdec -B build_android -DCMAKE_TOOLCHAIN_FILE=/Users/mattp/Library/Android/sdk/ndk/25.2.9519653/build/cmake/android.toolchain.cmake -DCMAKE_BUILD_TYPE=Release)
`rd019200:mpeghdec mattp$ cmake --build build_android -- ANDROID_PLATFORM not set. Defaulting to minimum supported version 21. -- Configuring done (0.5s) -- Generating done (0.1s) -- Build files have been written to: /Users/mattp/Desktop/MPEG-H Development/mpeghdec/build_android [ 1%] Building CXX object src/CMakeFiles/MpeghDec.dir/libMpeghDec/src/aacdecoder.cpp.o In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libMpeghDec/src/aacdecoder.cpp:135: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libMpeghDec/src/aacdecoder.h:94: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/common_fix.h:301: In file included from /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/clz.h:98: /Users/mattp/Desktop/MPEG-H Development/mpeghdec/mpeghdec/src/libFDK/include/arm/clz_arm.h:128:27: error: predicated instructions must be in IT block asm("subs %0, %1, #0 \n\t" ^