Hello list,
To compile and link my code with the OpenCV library, I use
find_package( OpenCV REQUIRED )
...
add_executable(framecountertest framecountertest.cpp)
target_link_libraries(framecountertest ${OpenCV_LIBS})
and this works just fine: the OpenCV library that got installed using my
On 02/14/2013 11:47 AM, Andreas Haferburg wrote:
Have you tried specifying the version?
FIND_PACKAGE(OpenCV 2.2.0 EXACT REQUIRED)
FIND_PACKAGE(OpenCV 2.4.0 EXACT REQUIRED)
Not sure if the FindOpenCV script can handle the version argument.
Andreas
Doesn't seem to work. I have 2.4.3
On 02/14/2013 12:26 PM, Andreas Haferburg wrote:
Does CMake find 2.4.3 if you remove 2.3.1? CMake probably doesn't even
look in /tmp/. You could try moving it to /usr/share/OpenCV-2.4.3/.
If the version arg doesn't work, I think your best bet is to use a
naming convention for the library
On 02/14/2013 04:35 PM, Andreas Stahl wrote:
Hello Bart,
have you tried setting OpenCV_DIR before calling find_package()? I'm
basing this on http://opencv.willowgarage.com/wiki/FindOpenCV.cmake
Most package PKGFind.cmake scripts look if PKG_DIR is set to a valid
directory and look there first
Hello list,
I'm quite new to CMake, still learning my way around... I currently
have the following in a CMakeList.txt file:
set(BOOST_LIBNAME boost_regex)
#set(BOOST_LIBNAME boost_regex-mt)
target_link_libraries(airspace ${BOOST_LIBNAME})
On some platforms, it only works if I set the