代码所在目录
源码/external/rkmedia/examples/rkmedia_vi_venc_rtsp_test.c?
复制代码放在examples下面,将其命名为rkmedia_vi_venc_rtsp_test_sp.c
????????在同原厂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")