Skip to content

Commit

Permalink
Add libcurl and nlohmann/json dependency to the capture projects (to …
Browse files Browse the repository at this point in the history
…invoke repromon REST APIs).
  • Loading branch information
vmdocua committed Mar 12, 2024
1 parent f5b55b2 commit de726ca
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install build dependencies
run: |
sudo apt update
sudo apt install -y libyaml-cpp-dev libspdlog-dev catch2 libasound2-dev libv4l-dev libudev-dev libopencv-dev cmake g++
sudo apt install -y libyaml-cpp-dev libspdlog-dev catch2 libasound2-dev libv4l-dev libudev-dev libopencv-dev libcurl4-openssl-dev nlohmann-json3-dev cmake g++
- name: Build
run: |
Expand Down
4 changes: 3 additions & 1 deletion Capture/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ USB Capture devices and save it to a file. It is a part of the ReproStim project

On Debian:

apt-get install -y ffmpeg libudev-dev libasound-dev libv4l-dev libyaml-cpp-dev libspdlog-dev catch2 v4l-utils libopencv-dev cmake g++
apt-get install -y ffmpeg libudev-dev libasound-dev libv4l-dev libyaml-cpp-dev libspdlog-dev catch2 v4l-utils libopencv-dev libcurl4-openssl-dev nlohmann-json3-dev cmake g++

Project requirements:
- OS Linux
Expand All @@ -24,6 +24,8 @@ Project requirements:
- libyaml-cpp-dev
- libspdlog-dev
- libopencv-dev
- libcurl4-openssl-dev
- nlohmann-json3-dev
- catch2
- v4l-utils
- ffmpeg
Expand Down
1 change: 1 addition & 0 deletions Capture/capturelib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ target_link_libraries(${PROJECT_NAME}
v4l2
yaml-cpp
spdlog
curl
fmt
)
2 changes: 2 additions & 0 deletions Capture/capturelib/src/CaptureRepromon.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include "reprostim/CaptureRepromon.h"
#include <curl/curl.h>
#include <nlohmann/json.hpp>

namespace reprostim {

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ subjects.

On Debian

apt-get install -y ffmpeg libudev-dev libasound-dev libv4l-dev libyaml-cpp-dev libspdlog-dev catch2 v4l-utils libopencv-dev cmake g++
apt-get install -y ffmpeg libudev-dev libasound-dev libv4l-dev libyaml-cpp-dev libspdlog-dev catch2 v4l-utils libopencv-dev libcurl4-openssl-dev nlohmann-json3-dev cmake g++

## Build

Expand Down

0 comments on commit de726ca

Please sign in to comment.