Skip to content

Commit ac7e01b

Browse files
authored
fix fdk-aac compile error using android NDK (#162)
Signed-off-by: yilun.zhang <yilun.zhang@samsung.com>
1 parent f44f9ad commit ac7e01b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

code/dep_codecs/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ExternalProject_Add(
1616
dep_aac
1717
GIT_REPOSITORY https://github.com/mstorsjo/fdk-aac.git
1818
GIT_TAG 716f4394641d53f0d79c9ddac3fa93b03a49f278
19+
PATCH_COMMAND ${CMAKE_COMMAND} -E make_directory <SOURCE_DIR>/libSBRdec/include/log && ${CMAKE_COMMAND} -E echo "void android_errorWriteLog(int i, const char *string){}" > <SOURCE_DIR>/libSBRdec/include/log/log.h
1920
CMAKE_ARGS -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_PREFIX=${DEP_CODECS_DIR} -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}
2021
)
2122

0 commit comments

Comments
 (0)