Commit b674c4c3 authored by Wieland Morgenstern's avatar Wieland Morgenstern

attempt MACPORTS OpenCV4 build. weird lade and with opencv_contrib also...

attempt MACPORTS OpenCV4 build. weird lade and with opencv_contrib also openjpeg dependencies dragged in by OpenCV4. still doesn't link the OpenCV API properly
parent 0e3ba164
...@@ -13,9 +13,10 @@ Using ccache to speed up recompilation is recommended, but not required, on Linu ...@@ -13,9 +13,10 @@ Using ccache to speed up recompilation is recommended, but not required, on Linu
sudo port install CMake bison doxygen yasm ninja ccache sudo port install CMake bison doxygen yasm ninja ccache
# Libraries # Libraries
sudo port install opencv glew gsed jpeg libpng \ sudo port install opencv4 +nonfree +opencv_contrib +openmp \
tiff faac faad2 ceres-solver glfw glm OpenEXR \ glew gsed jpeg libpng \
ffmpeg +gpl2 +librtmp +nonfree tiff faac faad2 ceres-solver glfw glm OpenEXR \
ffmpeg +gpl2 +librtmp +nonfree
``` ```
``` ```
......
...@@ -692,6 +692,11 @@ endif() ...@@ -692,6 +692,11 @@ endif()
# Calibration && AutoCrop && CameraAmbisonics # Calibration && AutoCrop && CameraAmbisonics
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
find_package(OpenCV REQUIRED) find_package(OpenCV REQUIRED)
if(MACPORTS AND (OpenCV_VERSION GREATER_EQUAL 4))
find_package(ade REQUIRED)
find_package(openjpeg REQUIRED)
# set(OpenCV_LIBRARIES ${OpenCV_LIBRARIES} ${ADE_LIBRARIES})
endif()
add_subdirectory(src/calibration) add_subdirectory(src/calibration)
add_subdirectory(src/autocrop) add_subdirectory(src/autocrop)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment