Ask Your Question

Revision history [back]

OpenCL_DIR the variable does not appear...

  1. Add at /etc/environement
AMDAPPSDKROOT="/opt/AMDAPP"
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"/opt/AMDAPP/lib/x86_64:/opt/AMDAPP/lib/x86

disconnect and reconnect your user and delete old cmake compilation with make clean

let me know

OpenCL_DIR the variable does not appear...

  1. Add at /etc/environement
AMDAPPSDKROOT="/opt/AMDAPP"
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"/opt/AMDAPP/lib/x86_64:/opt/AMDAPP/lib/x86
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"/opt/AMDAPP/lib/x86:/opt/AMDAPP/lib/x86_64

disconnect and reconnect your user and delete old cmake compilation with make clean

let me know

click to hide/show revision 3
detail in response to the variable OpenCL_DIR

OpenCL_DIR the appear in opencv-2.4.5/<directory_of_cmake>/CMakeCache.txt I modified the file opencv-2.4.5/cmake/OpenCVDetectOpenCL.make at line 7 by removing the optional QUIET. An now I have the message:

CMake Warning at cmake/OpenCVDetectOpenCL.cmake:7 (find_package):
  By not providing "FindOpenCL.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "OpenCL", but
  CMake did not find one.

  Could not find a package configuration file provided by "OpenCL" with any
  of the following names:

    OpenCLConfig.cmake
    opencl-config.cmake

  Add the installation prefix of "OpenCL" to CMAKE_PREFIX_PATH or set
  "OpenCL_DIR" to a directory containing one of the above files.  If "OpenCL"
  provides a separate development package or SDK, be sure it has been
  installed.

There no package for OpenCL of AMD. The OpenCL_DIR variable does not appear...

  1. is not used for OpenCV with AMD OpenCL.

    As against the required variable AMDAPPSDKROOT

    Add at /etc/environement

AMDAPPSDKROOT="/opt/AMDAPP"
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"/opt/AMDAPP/lib/x86:/opt/AMDAPP/lib/x86_64
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"/opt/AMDAPP/lib/x86:/opt/AMDAPP/lib/x86_64"

disconnect and reconnect your user and delete old cmake compilation with make clean

let me know