Pergunta

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?

Foi útil?

Solução

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 with OpenCV or OpenNI.

Edit: I don't see any VTK in your screenshots. You should include the headers folder path in the Include section, the libraries folder path in the Library search path section and the libraries themselves in the Libraries section (in the same place where in your screenshot you have libpcl_visualization etc). (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)

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top