一、配置工具链环境
sudo vim ~/.bashrc在文件最后添加
export PATH=$PATH:/opt/arm-rockchip830-linux-uclibcgnueabihf/bin
保存,重启机器
二、下载mp4v2
下载路径:MP4v2 | mp4v2
三、修改CMakeLists.txt
四、执行编译
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/opt/install -DCMAKE_C_COMPILER=arm-rockchip830-linux-uclibcgnueabihf-gcc -DCMAKE_CXX_COMPILER=arm-rockchip830-linux-uclibcgnueabihf-g++ -DCMAKE_AR=arm-rockchip830-linux-uclibcgnueabihf-ar --disable-option-checking --disable-debug --disable-optimize --disable-fvisibility --disable-gch --disable-largefile --disable-util --disable-dependency-tracking --disable-libtool-lock --host=arm-rockchip830-linux --disable-static ..
make
make install