Ask Your Question

Revision history [back]

Building OpenCV from source on RHEL 6

Hello!

I was unable to find a rpm for OpenCV for RHEL 6, so I decided to try to compile from source.

I am having problems building OpenCV from source. I think it may be having trouble finding include files. I have installed them in /usr/local/include, but am not sure how to get cmake to know where to look. This is the error I am getting at the end:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: CUDA_nvcuvid_LIBRARY (ADVANCED) linked by target "opencv_gpu" in directory /root/OpenCV-2.4.3/modules/gpu

-- Configuring incomplete, errors occurred!

This is what I used to start cmake:

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..

I can include the rest of the output if that would help -- I didn't want to take up too much room with my question,

Thanks and Regards,

James.