Hi, We are trying to build an Android NDK project ( https://github.com/SamihMustafa/Codec2 ) with the latest version of the codec2 source code. The project includes both libsamplerate and codec2. Our objective is to use codec2 to compress the voice on Khan Academy videos being used in an open source offline library app for use in areas with limited Internet. Libsamplerate compiles fine and generates libsamplerate.so . Unfortunately trying to build codec2 doesn't seem to work.
We receive the following error when building the codec2 project: What went wrong: Execution failed for task ':app:externalNativeBuildDebug'. > Build command failed. Error while executing process C:\Users\suhai\AppData\Local\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {--build C:\Users\suhai\AndroidStudioProjects\Codec2\app\.externalNativeBuild\cmake\debug\x86_64 --target varispeed-play} ninja: error: build.ninja:2899: bad $-escape (literal $ must be written as $$) This error seems to be related to the CMakeList on the directory codec2 on line number 81 - BUILD_COMMAND $(MAKE) generate_codebook # when crosscompiling we need a native executable if(CMAKE_CROSSCOMPILING) include(ExternalProject) ExternalProject_Add(codec2_native SOURCE_DIR ${CMAKE_SOURCE_DIR} BUILD_COMMAND $(MAKE) generate_codebook INSTALL_COMMAND ${CMAKE_COMMAND} -E copy src/generate_codebook ${CMAKE_CURRENT_BINARY_DIR} ) add_executable(generate_codebook IMPORTED) set_target_properties(generate_codebook PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_BINARY_DIR}/generate_codebook) add_dependencies(generate_codebook codec2_native) We don't seem to have the issue mentioned in previous discussion( https://sourceforge.net/p/freetel/mailman/message/32737213/ ), yet. Is there a current recommended way to build for Android, or any recommendations on next steps to try? Our objective is to make an Android library that compiles using the normal Android NDK and could then be reused by others. Thanks Samih
_______________________________________________ Freetel-codec2 mailing list Freetel-codec2@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freetel-codec2