1.下载mp4v2
(1)https://launchpad.net/ubuntu/+source/mp4v2/2.0.0~dfsg0-6
(2)解压,并在目录内创建install目录作为安装目录
2.配置并编译
(1)

sudo PATH=$PATH:/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin 
CC=arm-hisiv300-linux-gcc CXX=arm-hisiv300-linux-gcc
./configure --host=arm-hisiv300-linux
--prefix=/home/aston/sambashare/mp4/mp4v2-2.0.0/install //指定安装路径
--disable-option-checking --disable-debug
--disable-optimize --disable-fvisibility --disable-gch --disable-largefile
--disable-util --disable-dependency-tracking --disable-libtool-lock

(2)make
(3)make install
(4)检查各必要文件

3.部署
(1)生成的lib加到mpp lib里面
(2)include下文件添加到mpp/include中去
(3)lib/*so*加到开发板lib目录下
4.编译sample
(1)到sample/venc中编译
(2)make

5.准备TF卡
(1)TF卡格式化为FAT32文件系统,若失败可试试低层格式化软件如SDFormat之类
(2)开机后得到block文件

15 海思Hi3518E移植mp4v2_bash

(3)TF卡进行挂载  

/usr # mkdir mmc
/usr # mount -t vfat /dev/mmcblk0p1 /usr/mmc

(4)先检测下TF卡可用

/usr/mmc # ls -l
total 8
drwxr-xr-x 2 root root 4096 Mar 27 2019 System Volume Information
-rwxr-xr-x 1 root root 8 Mar 27 2019 a.c
/usr/mmc # cat a.c
aaa

(5)测试