正点原子RV1126:编译自己rkmedia代码(以rkmedia_vi_venc_rtsp_test为模板)

1.参考代码

代码所在目录

源码/external/rkmedia/examples/rkmedia_vi_venc_rtsp_test.c 

2.复制代码 

复制代码放在examples下面,将其命名为rkmedia_vi_venc_rtsp_test_sp.c

3.添加编译信息

        在同原厂SDK同一目录下的external/rkmedia/examples中的CMakeList.txt中添加编译信息如下:

#--------------------------
# rkmedia_vi_venc_rtsp_test_sp
#--------------------------
link_directories(${PROJECT_SOURCE_DIR}/librtsp/)
add_executable(rkmedia_vi_venc_rtsp_test_sp rkmedia_vi_venc_rtsp_test_sp.c ${COMMON_SRC})
add_dependencies(rkmedia_vi_venc_rtsp_test_sp easymedia)
target_link_libraries(rkmedia_vi_venc_rtsp_test_sp easymedia ${THIRD_MEDIA} rtsp)
target_include_directories(rkmedia_vi_venc_rtsp_test_sp PRIVATE ${CMAKE_SOURCE_DIR}/include)
install(TARGETS rkmedia_vi_venc_rtsp_test_sp RUNTIME DESTINATION "bin")

4.编译

正点原子RV1126SDK包使用-CSDN博客

你可能感兴趣的:(Linux软件,linux,网络,运维)