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
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
On 14.02.2013 11:42, Bart Vandewoestyne wrote:
Hello list,
To compile and link my code with
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
Hi Bart.
When you look into the documentation of find_package() (in its
Configure mode), you'll find a list of paths and prefixes the find
machanism uses. You should be able to set some of those prefixes to
where your local installation of OpenCV is.
Petr
On Thu, Feb 14, 2013 at 12:09 PM, Bart
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
directories (or create symlinks), e.g.
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 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 for all the libraries before checking