|
【Linux】
firefly-mtlti-rtsp硬解码编译
发表于 2021-3-4 17:28:30
浏览:8581
|
回复:4
打印
只看该作者
[复制链接]
楼主
本帖最后由 mymailwith163 于 2021-3-4 17:31 编辑
1. 板子是rk3399-JD4 ,系统是AIO-3399-JD4-UBUNTU-DESKTOP-PYTHON3.5-RKNN-OPENCV-20210108-1535.img
2.运行firefly-mtlti-rtsp硬解码编译能通过,但是运行./ff_rtsp_dec的时候出现:
./ff_rtsp_dec: error while loading shared libraries: libff_mpp.so: cannot open shared object file: No such file or directory
3. 在lib文件夹下是有libff_mpp.so这个文件,lib文件夹下的文件是: libff_dec.so libff_mpp.so libff_mpp.so.bak libff_rga.so libff_rtsp.so libff_vendor.so libff_vpu.so
4. CmakeLists.txt文件是:
cmake_minimum_required(VERSION 2.8)
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_BUILD_TYPE Release)
set(CMAKE_C_COMPILER gcc)
set(CMAKE_CXX_COMPILER g++)
find_package(CURL REQUIRED)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/lib/)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include/firefly /usr/include/jsoncpp /usr/include/drm)
message(----------------------------------------------------------------)
message(${CMAKE_CURRENT_SOURCE_DIR}/lib/)
file(GLOB LIB_NAMES ${CMAKE_CURRENT_SOURCE_DIR}/lib/*)
foreach(tmpName ${LIB_NAMES})
message(${tmpName})
endforeach()
message(----------------------------------------------------------------)
#set(link_libs ff_rtsp ff_mpp curl ff_rga ff_vendor ff_dec pthread drm jsoncpp opencv_core opencv_highgui opencv_imgcodecs)
set(link_libs ff_rtsp curl ff_rga ff_vendor ff_dec pthread drm jsoncpp opencv_core opencv_highgui opencv_imgcodecs ff_mpp)
add_executable(ff_rtsp_dec main.cpp drm-display.cpp mpp-dec.cpp drm-buff.cpp)
target_link_libraries(ff_rtsp_dec ${link_libs})
#set(link_libs_cv ff_rtsp ff_mpp curl ff_rga pthread drm jsoncpp opencv_core opencv_highgui opencv_imgcodecs X11)
#add_executable(ff_rtsp_dec_cv main_opencv.cpp drm-display.cpp mpp-dec.cpp drm-buff.cpp)
#target_link_libraries(ff_rtsp_dec_cv ${link_libs_cv})
#target_compile_definitions(ff_rtsp_dec_cv PUBLIC MULTI_CV_WINDOW=1)
#INCLUDE(GNUInstallDirs)
#INSTALL(TARGETS ff_rtsp_dec
#RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
#INSTALL(FILES test_ff_rtsp_dec DESTINATION "${CMAKE_INSTALL_BINDIR}")
#INSTALL(DIRECTORY lib/ DESTINATION "${CMAKE_INSTALL_LIBDIR}")
#INSTALL(FILES config.json DESTINATION /etc/ff_rtsp_dec)
|
|