opencv version and ros
Hi guys,
I have installed ros kinetic on my TX2 and it comes with opencv 3.3.1 which is not build with CUDA options so in parallel i have built from source the latest opencv (3.4.2) and in my CMakeLists i added the following option for the find package.
find_package(OpenCV 3.4.2 REQUIRED
CONFIG
PATHS /usr/local /usr
NO_DEFAULT_PATH
)
message("OpenCV version: ${OpenCV_VERSION}")
During the catkin_make, i got the correct version of opencv But in my c++ code, when i check the version of opencv with a simple std::cout, the code gives me version of ROS. how can i be sure which one is really used? Thank you in advance.
UPDATE:
The cmakLists and the catkin_make use the correct version of opencv but when i run my node, it used the ros one. Should i build from source all packages which use opencv by checking their cmakelists and modify to fit my version number?
PS: i need the opencv build for CUDA.
This, #q301328 and #q301331 all seem at least related, but could also be duplicates. It's hard to tell.
Could you check and close the ones that are in fact duplicates of this question?
Thanks.