[Bug 210505] graphics/opencv upgrade to 3.1
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Oct 7 12:15:14 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210505
--- Comment #20 from rozhuk.im at gmail.com ---
libdata/pkgconfig/libgflag.pc
file required for libopencv_sfm build.
opencv-3.1.0/modules/sfm/CMakeLists.txt
uses pkgconf in build test:
=========================================================
...
if(NOT DEFINED GFLAGS_LIBRARIES)
set(GFLAGS_LIBRARIES "gflags")
endif()
if(NOT DEFINED GLOG_LIBRARIES)
set(GLOG_LIBRARIES "glog")
endif()
if(NOT DEFINED SFM_DEPS_OK)
set(_fname "${CMAKE_CURRENT_BINARY_DIR}/test_sfm_deps.cpp")
file(WRITE "${_fname}" "#include <glog/logging.h>\n#include
<gflags/gflags.h>\nint main() { (void)(0); return 0; }\n")
try_compile(SFM_DEPS_OK "${CMAKE_CURRENT_BINARY_DIR}" "${_fname}"
CMAKE_FLAGS
"-DINCLUDE_DIRECTORIES:STRING=${GLOG_INCLUDE_DIRS};${GFLAGS_INCLUDE_DIRS}"
LINK_LIBRARIES ${GLOG_LIBRARIES} ${GFLAGS_LIBRARIES}
OUTPUT_VARIABLE OUTPUT
)
...
=========================================================
-DGFLAGS_LIBRARIES="${LOCALBASE}/lib/libgflags.so" - does not help.
I will wait for devel/gflags port update before continue.
Or I can disable libopencv_sfm build.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list