cmake vs. opencv
Petr Vanek
petr at scribus.info
Tue Jun 12 12:26:37 PDT 2012
>> Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
>> "OpenCV_DIR" to a directory containing one of the above files. If "OpenCV"
>> provides a separate development package or SDK, be sure it has been
>> installed.
>
> So I used "port contents opencv" to discover that it installs the file /opt/local/lib/cmake/OpenCVConfig.cmake. Therefore I modified your Portfile and added "-DOpenCV_DIR=${prefix}/lib/cmake" to the configure.args. That allowed it to get through the configure phase, but it failed during the build phase with "error: #if with no expression".
perfect, thanks. Now it builds and it's committed to SVN
thanks a lot,
petr
More information about the macports-dev
mailing list