增加opencv库

This commit is contained in:
GuanYuankai 2025-10-20 17:45:43 +08:00
parent 11350e0b43
commit 34c52566f5
2 changed files with 43 additions and 0 deletions

View File

@ -11,6 +11,9 @@ message(STATUS "Found Boost version: ${Boost_VERSION}")
find_package(PahoMqttCpp REQUIRED)
find_package(SQLite3 REQUIRED)
find_package(PkgConfig REQUIRED)
pkg_check_modules(GST REQUIRED gstreamer-1.0 gstreamer-app-1.0)
# Crow CMake
# Crow 使 Boost Asio
add_subdirectory(src/vendor/crow)
@ -110,3 +113,42 @@ target_link_libraries(edge_proxy PRIVATE
# )
# 1. 定义新的可执行文件 (我们将把代码放在 src/streamer/ 目录下)
# add_executable(edge_streamer
# src/streamer/main.cpp
# src/streamer/StreamManager.cpp
# )
# # 2.
# target_link_libraries(edge_streamer PRIVATE
# # GStreamer (来自我们新增的 pkg_check_modules)
# ${GST_LIBRARIES}
# Crow
# nlohmann_json
# PahoMqttCpp::paho-mqttpp3
# Boost::system
# Boost::thread
# rknn_api
# rknnrt
# pthread
# ssl
# crypto
# )
# # 3.
# target_include_directories(edge_streamer PRIVATE
# #
# ${CMAKE_CURRENT_SOURCE_DIR}/src/streamer/include
# ${CMAKE_CURRENT_SOURCE_DIR}/src/vendor
# # GStreamer
# ${GST_INCLUDE_DIRS}
# ${Boost_INCLUDE_DIRS}
# # RKNN C-API 的头文件 (来自我们 Dockerfile /usr/local/include)
# /usr/local/include
# )

View File

@ -42,6 +42,7 @@ RUN apt-get update && \
gstreamer1.0-x \
gstreamer1.0-alsa \
gstreamer1.0-pulseaudio \
libopencv-dev \
&& \
pip3 install --no-cache-dir onvif_zeep && \
groupadd -r developers && \