Ask Your Question
0

Building OpenCV

asked 2017-01-20 06:37:53 -0600

updated 2017-01-20 07:02:51 -0600

LBerger gravatar image

I'm trying to build OpenCV 3.2.0 with CMake 3.7.2 (same problem with CMake 3.4.0) and during the configure step I get lots of error messages related to ocv_get_all_libs:

CMake Error at cmake/OpenCVUtils.cmake:964 (get_target_property):
   INTERFACE_LIBRARY targets may only have whitelisted properties.  The
   property "ARCHIVE_OUTPUT_DIRECTORY" is not allowed.
 Call Stack (most recent call first):
   cmake/OpenCVGenPkgconfig.cmake:40 (ocv_get_all_libs)
   CMakeLists.txt:739 (include)

Any hint how to get around this?

Regards, Christina Rossmanith

edit retag flag offensive close merge delete

Comments

Platform name ?

LBerger gravatar imageLBerger ( 2017-01-20 06:45:00 -0600 )edit

Linux x86_64

Chr. Rossmanith gravatar imageChr. Rossmanith ( 2017-01-20 06:46:19 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-01-20 08:01:56 -0600

As far as I understand the situation, setting INSTALL_CREATE_DISTRIB to true (default is false) in cmake/OpenCVModule.cmake does not use LINK_INTERFACE_LIBRARIES but LINK_PRIVATE instead and solves my problem.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-01-20 06:37:53 -0600

Seen: 996 times

Last updated: Jan 20 '17