|
发表于 2019-8-23 17:43:08
|
显示全部楼层
本帖最后由 zhouzhouzlove 于 2019-8-23 19:40 编辑
大神,我安装mpp的步骤是这样的,请看下是是否正确:
1、瑞芯微github下载mpp,
2、修改mpp/build/linux/aarch64/arm.linux.cross.cmake,修改了gcc和g++还有armv8-a这三条。修改完后,执行同目录下的make-Makefiles.bash,然后make ,sudo make install。
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_C_COMPILER "aarch64-linux-gnu-gcc")
#SET(CMAKE_C_COMPILER "arm-linux-gnueabi-gcc")
SET(CMAKE_CXX_COMPILER "aarch64-linux-gnu-g++")
#SET(CMAKE_CXX_COMPILER "arm-linux-gnueabi-g++")
SET(CMAKE_SYSTEM_PROCESSOR "armv8-a")
#SET(CMAKE_SYSTEM_PROCESSOR "armv7-a_hardfp")
配置时有警告:
CMake Warning:
Manually-specified variables were not used by the project:
RKPLATFORM
3、默认的安装路径是/usr/local/,修改/etc/profile,添加环境变量,并且执行sudo ldconfig使之生效
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH
export PATH =$PATH:/usr/local/bin
C_INCLUDE_PATH=$C_INCLUDE_PATH:/usr/local/include/rockchip
export C_INCLUDE_PATH
CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/usr/local/include/rockchip
export CPLUS_INCLUDE_PATH
4、执行mpi_dec_test程序,提示信息正常,当下载了h264文件进行测试时,sudo mpi_dec_test -t 7 -i ~/128x128.264 -n 10
输出如下:
mpi_dec_test: cmd parse result:
mpi_dec_test: input file name: /home/perfxlab/128x128.264
mpi_dec_test: output file name:
mpi_dec_test: config file name:
mpi_dec_test: width : 0
mpi_dec_test: height : 0
mpi_dec_test: type : 7
mpi_dec_test: debug flag : 0
mpi_dec_test: max frames : 10
mpi_dec_test: mpi_dec_test start
mpi_dec_test: input file size 174416
mpi_dec_test: mpi_dec_test decoder test start w 0 h 0 type 7
mpi: mpp version: Without VCS info
mpp_rt: NOT found ion allocator
mpp_rt: found drm allocator
h264d_dpb: dpb_size error.
mpi_dec_test: decode_get_frame get info changed found
mpi_dec_test: decoder require buffer w:h [128:128] stride [128:128] buf_size 32768
mpi_dec_test: decode_get_frame get frame 1
mpi_dec_test: decode_get_frame get frame 2
mpi_dec_test: decode_get_frame get frame 3
mpi_dec_test: decode_get_frame get frame 4
mpi_dec_test: decode_get_frame get frame 5
mpi_dec_test: decode_get_frame get frame 6
mpi_dec_test: decode_get_frame get frame 7
mpi_dec_test: decode_get_frame get frame 8
mpi_dec_test: decode_get_frame get frame 9
mpi_dec_test: decode_get_frame get frame 10
mpi_dec_test: reach max frame number 10
mpi_dec_test: test success max memory 0.16 MB
请问,这个mpp库的安装有问题吗?rochip-ffmpeg的安装过程有没有详细教程?
|
|