Ask Your Question

charpentier franck's profile - activity

2013-10-21 06:38:11 -0500 received badge  Necromancer (source)
2013-10-20 23:40:58 -0500 answered a question Enabling OpenMP while building OpenCV libraries

I open a bug : http://code.opencv.org/issues/3328

Workaround: Replace line 49 to 58 in file opencv-2.4.6.1/cmake/OpenCVFindLibsPerf.cmake :

# --- OpenMP ---
if(NOT HAVE_TBB AND NOT HAVE_CSTRIPES)
  include (FindOpenMP)      # --- since cmake version 2.6.3 
   if (OPENMP_FOUND)
      set (HAVE_OPENMP TRUE)
      set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
      set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
   else()
      set ( HAVE_OPENMP FALSE)
   endif()
else()
set(HAVE_OPENMP 0)
endif()
2013-04-27 00:49:57 -0500 received badge  Supporter (source)
2013-04-26 03:12:52 -0500 received badge  Teacher (source)
2013-04-25 17:04:33 -0500 received badge  Editor (source)
2013-04-25 17:03:35 -0500 answered a question Enable AMD OpenCL for OpenCV 2.4.5 .

OpenCL_DIR 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 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"

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

let me know

2013-04-25 16:28:59 -0500 answered a question Camera not working Ubuntu 12.10 opencv 2.4.3

What kind of webcam do you use? usb ? name ? other application works with the webcam ?