Skip to content

Commit

Permalink
Install opencv
Browse files Browse the repository at this point in the history
  • Loading branch information
kyakuno committed Jun 26, 2024
1 parent 90bd0b1 commit 8ba1bd6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ jobs:
git submodule init
git submodule update
- name: Install cmake
- name: Install opencv
run: |
sudo apt-get update
sudo apt-get install cmake -y
sudo apt-get install libopencv-dev
- name: Build
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@ jobs:
- name: Checkout github repo (+ download lfs dependencies)
uses: actions/checkout@v2

- name: Install cmake
uses: Dovyski/setup-opencv-action@v1.1
- name: Install opencv
uses: cvpkg/opencv-action@v0.1
with:
opencv-version: '4.0.0'
opencv_tag: '4.6.0' # Optional. Default is '4.6.0'. An env var 'opencv_tag' will be defined.
BUILD_LIST: 'core,imgcodecs,imgproc' # Optional. Default is 'core,imgcodecs,imgproc'. The opencv modules(libraries, components) to be build, separated with `,` and no spaces.
BUILD_SHARED_LIBS: 'OFF' # Optional. Default is 'OFF'. Build shared opencv librarires, should be "ON" or "OFF".
BUILD_WITH_STATIC_CRT: 'OFF' # Optional. Default is 'OFF'. Build with static C Runtime Library?(only when MSVC), should be "ON" or "OFF"

- name: Checkout submodule
run: |
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/xcode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ jobs:
- name: Show Xcode version
run: xcodebuild -version

- name: Install cmake
- name: Install opencv
run: |
brew install cmake
brew install opencv
- name: Build
Expand Down
4 changes: 4 additions & 0 deletions audio_processing/silero-vad/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ link_directories(${LIBRARY_PATH})

add_executable(${PROJECT_NAME} ${SRC_FILES})

if(UNIX AND NOT APPLE)
target_link_libraries(${PROJECT_NAME} PRIVATE "-pthread") # for ailia SDK 1.4.0
endif()

target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_11)
target_link_libraries(${PROJECT_NAME} ailia)
set (CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR})
Expand Down

0 comments on commit 8ba1bd6

Please sign in to comment.