I can not build OpenCV3.1.0 with FreeBSD11.1.
unzip opencv-3.1.0.zip
git clone https://github.com/opencv/opencv_contrib
cd opencv-3.1.0
mkdir build
cd build cmake -D CMAKE_BUILD_TYPE=RELEASE -D
CMAKE_INSTALL_PREFIX=/usr/local -D
OPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules ..
An error occurred when executing the above command.
Error Statement CMake Error at samples/gpu/CMakeLists.txt:100 (list):
Configuring incomplete, errors occurred! See also "/home/user/support/src/opencv/opencv-3.1.0/build/CMakeFiles/CMakeOutput.log". See also "/home/user/support/src/opencv/opencv-3.1.0/build/CMakeFiles/CMakeError.log".
list sub-command REMOVE_ITEM requires list to be present.
why do you try with outdated 3.1 ? if you already make an effort, you should use latest 3.4.1
and which cmake version is it ? (problem seems to nbe there)
There is a program using opencv3.1 and makes a version the same to follow it. Cmake version is 3.10.2.
try to disable the samples by adding
-D BUILD_EXAMPLES=OFF
(also using latest opencv_contrib with outdated 3.1.0 is asking for trouble. make sure you're using exactly the same version for both (e.g. by
git checkout 3.1.0
there))As I said, the build with cmake succeeded. However, it will fail with the next make.