尊敬的研发同事 你们好! 我们在使用贵司的算力盒子EC-R3588SPC,做视频硬解码功能,需要使用RK提供的MPP框架,阅读RK的MPP官方文档,下载了对应的代码,基于PC 上的ubuntu系统做了交叉编译ARM版本的。 交叉编译器的具体版本为gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu,MPP源码地址为 https://github.com/rockchip-linux/mpp 交叉编译配置为: cmake_minimum_required( VERSION 2.6.3 ) SET(TOOLCHAIN_DIR "/data/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/") set(TOOLCHAIN_HOST "${TOOLCHAIN_DIR}/bin/aarch64-none-linux-gnu") set(CMAKE_CXX_COMPILER ${TOOLCHAIN_HOST}-g++) set(CMAKE_C_COMPILER ${TOOLCHAIN_HOST}-gcc) SET(CMAKE_FIND_ROOT_PATH ${TOOLCHAIN_DIR} ${TOOLCHAIN_DIR}/include ${TOOLCHAIN_DIR}/lib ) #SET(CMAKE_SYSTEM_PROCESSOR "armv7-a") SET(CMAKE_SYSTEM_PROCESSOR "armv8-a") add_definitions(-fPIC) add_definitions(-DARMLINUX) add_definitions(-Dlinux) 具体请见附件。。。 --------------------------------------------------------------------------------------------------------------------- 编译成功后上传板子,板子上的SO和BIN include都已经生成,图如下: 运行如下命令提示异常 root@firefly:/usr/local/bin# ./vpu_api_test -help /******* vpu api demo in *******/ failed to open libvpu.so vpu api demo fail, err: -1 root@firefly:/usr/local/bin# ./mpi_dec_test -i SampleVideo_1280x720_5mb.h264 -t 7 -n 10 Segmentation fault (core dumped) root@firefly:/usr/local/bin# ./vpu_api_test -help /******* vpu api demo in *******/ failed to open libvpu.so vpu api demo fail, err: -1 |