[channels,rdpecam] fix missing link libraries

* add ffmpeg libraries
* change channel error checks, only FFMPEG supported currently
This commit is contained in:
akallabeth 2024-06-11 12:00:58 +02:00
parent 2831d2f5ec
commit 4a71bf8bc8
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -17,16 +17,12 @@
define_channel_client("rdpecam") define_channel_client("rdpecam")
# swscale is required and is either part of FFMPEG or standalone library if(NOT WITH_SWSCALE OR NOT WITH_FFMPEG)
if(NOT WITH_FFMPEG) message(FATAL_ERROR "WITH_FFMPEG and WITH_SWSCALE required for CHANNEL_RDPECAM_CLIENT")
find_package(SWScale REQUIRED)
endif()
if(NOT WITH_OPENH264 AND NOT WITH_FFMPEG)
message(FATAL_ERROR "WITH_OPENH264 or WITH_FFMPEG required for CHANNEL_RDPECAM_CLIENT")
endif() endif()
# currently camera redirect client supported for platforms with Video4Linux only # currently camera redirect client supported for platforms with Video4Linux only
find_package(SWScale REQUIRED)
find_package(V4L) find_package(V4L)
if(V4L_FOUND) if(V4L_FOUND)
set(WITH_V4L ON) set(WITH_V4L ON)
@ -42,7 +38,10 @@ set(${MODULE_PREFIX}_SRCS
) )
set(${MODULE_PREFIX}_LIBS set(${MODULE_PREFIX}_LIBS
freerdp winpr freerdp
winpr
${SWScale_LIBRARY}
${FFMPEG_LIBRARIES}
) )
add_channel_client_library(${MODULE_PREFIX} ${MODULE_NAME} ${CHANNEL_NAME} TRUE "DVCPluginEntry") add_channel_client_library(${MODULE_PREFIX} ${MODULE_NAME} ${CHANNEL_NAME} TRUE "DVCPluginEntry")