I have successfully configured the includes and libs in order to build OpenCV and OpenNI in Eclipse under OS X. However now I need to add the PCL libraries. I tried to do it the same way but 1- there’re a lot of files, 2- I get 614 errors after adding the libraries.
I have the CMakeLists.txt with which I am able to build PCL project.
find_package(PCL 1.3 REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
Could I add somehow this Cmake to existing configuration of OpenCV+OpenNI which already works?
From the errors you get, it seems that you have not linked to some of the dependencies, for example
VTK. I don’t think it has nothing to do withOpenCVorOpenNI.Edit: I don’t see any
VTKin your screenshots. You should include the headers folder path in theIncludesection, the libraries folder path in theLibrary search pathsection and the libraries themselves in theLibrariessection (in the same place where in your screenshot you havelibpcl_visualizationetc). (Disclaimer: I am not using Eclipse, I am guessing those from your screenshots, if I am wrong edit my answer)Note that since you are not using CMake you will probably have to do that for the other dependencies too sooner or later (e.g. Boost etc)