opencv: Build fails after pulling 3.1

I just pulled the master branch and attempted to recompile, but received this error during configuring

CMake Error at samples/gpu/CMakeLists.txt:100 (list):
  list sub-command REMOVE_ITEM requires list to be present

I then deleted the entire build directory and cmake caches and started from scratch, which gave me this

CMake Error at 3rdparty/ippicv/downloader.cmake:99 (message):
  ICV: Failed to unpack ICV package from /Volumes/Macintosh
  HD/Users/Rasmus/Downloads/Sources/opencv/3rdparty/ippicv/downloads/macosx-4ff1fde9a7cfdfe7250bfcd8334e0f2f/ippicv_macosx_20151201.tgz
  to /Volumes/Macintosh
  HD/Users/Rasmus/Downloads/Sources/opencv/3rdparty/ippicv/unpack with error
  1
Call Stack (most recent call first):
  3rdparty/ippicv/downloader.cmake:110 (_icv_downloader)
  cmake/OpenCVFindIPP.cmake:237 (include)
  cmake/OpenCVFindLibsPerf.cmake:12 (include)
  CMakeLists.txt:537 (include)

The system is OSX 10.10.4 on which I successfully compiled previous versions. Can anyone reproduce this?

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Reactions: 1
  • Comments: 22 (12 by maintainers)

Most upvoted comments

I was facing this same issue. Make sure to disable INSTALL_C_EXAMPLES if you’re compiling OpenCV 3.1.0:

cmake -D CMAKE_BUILD_TYPE=RELEASE \
    -D CMAKE_INSTALL_PREFIX=/usr/local \
    -D INSTALL_C_EXAMPLES=ON \
    -D INSTALL_PYTHON_EXAMPLES=ON \
    -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \
    -D BUILD_EXAMPLES=ON ..

Source: PyImageSearch

Thanks Suzana!

Hi Scot,

As it turned out, it was my fault, the path to the Opencv-contrib package was incorrect so it could not find those header files. Once I figured that out, it all built without any further issues.

Hope that helps, Suzana


From: ScottHavird notifications@github.com Sent: 11 February 2016 14:11:29 To: Itseez/opencv Cc: Suzana Maria Barreto [szb] Subject: Re: [opencv] Build fails after pulling 3.1 (#5851)

izus13, what solved your problem? I am having the same issue. Thanks

Reply to this email directly or view it on GitHubhttps://github.com/Itseez/opencv/issues/5851#issuecomment-182879267.

izus13, what solved your problem? I am having the same issue. Thanks

You are right! But there are described 2 problems, that is bad practice actually (one issue - one problem). After reading of the first 5 messages it is not clear what your problem is still here (there was discussed another question).