cmake vs. opencv
Ryan Schmidt
ryandesign at macports.org
Mon Jun 11 17:57:29 PDT 2012
On Jun 11, 2012, at 14:05, Petr Vanek wrote:
> hi all,
>
> I'm facing really strange issue. App I want to pack for macports uses cmake for building and OpenCV as a runtime/build dependency.
>
> OpenCV is handled by pkg-config in CMakeLists.txt. But the OpenCV_LIBRARIES variable is always empty.
>
> Here is a minimal example for CMakeLists.txt:
> ######
> CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0)
>
> project(test)
>
> find_package(PkgConfig)
>
> pkg_check_modules(OpenCV opencv>=2.1.0)
> pkg_check_modules(Zlib zlib>=1.0)
>
> get_cmake_property(_variableNames VARIABLES)
> foreach (_variableName ${_variableNames})
> message(STATUS "${_variableName}=${${_variableName}}")
> endforeach()
> ######
>
> The zlib is there for reference (correctly filled).
> So what can be wrong? Cmake or OpenCV pkg-config file?
Can you show us the Portfile you're working on?
More information about the macports-dev
mailing list