Clone this repo:
  1. da77ac1 Add LICENSE to fix lint warning by Harish Mahendrakar · 2 days ago master
  2. b06f730 Remove mips specific files am: 6334fd9a1c by Harish Mahendrakar · 8 weeks ago main-16k-with-phones
  3. 6334fd9 Remove mips specific files by Harish Mahendrakar · 8 weeks ago
  4. 7dc4955 Add riscv64 support am: e8b0093646 by Mao Han · 8 weeks ago
  5. e8b0093 Add riscv64 support by Mao Han · 1 year, 11 months ago

LIBAVC

Getting Started Document

LibAVC build steps

Supports:

  • aarch32/aarch64 on Linux.
  • aarch32/aarch64 on Android.
  • x86_32/x86_64 on Linux.

Native Builds

Use the following commands for building on the target machine

$ cd external/libavc
$ mkdir build
$ cd build
$ cmake ..
$ make

Cross-compiler based builds

Building for x86_32 on a x86_64 Linux machine

$ cd external/libavc
$ mkdir build
$ cd build
$ CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" cmake ..
$ make

Building for aarch32/aarch64

Update ‘CMAKE_C_COMPILER’, ‘CMAKE_CXX_COMPILER’, ‘CMAKE_C_COMPILER_AR’, and ‘CMAKE_CXX_COMPILER_AR’ in CMAKE_TOOLCHAIN_FILE passed below

$ cd external/libavc
$ mkdir build
$ cd build

For aarch64

$ cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/aarch64_toolchain.cmake
$ make

For aarch32

$ cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/aarch32_toolchain.cmake
$ make