Opencv_contrib: CMake Error at ....../opencv/cmake/OpenCVUtils.cmake:896 (target_link_libraries)

Created on 2 Feb 2017  路  4Comments  路  Source: opencv/opencv_contrib

Hi, all:

It looks I cannot build these 3 modules under opencv_contrib:

  • hdf
  • freetype
  • text
System information (version)
  • OpenCV => 3.2
  • Operating System / Platform => Ubuntu 16.04
  • Compiler => GCC/G++ 5.4.0
Detailed description

Error messages:

CMake Error at ....../opencv/cmake/OpenCVUtils.cmake:896 (target_link_libraries):
   The keyword signature for target_link_libraries has already been used with
   the target "opencv_hdf".  All uses of target_link_libraries with a target
   must be either all-keyword or all-plain.

   The uses of the keyword signature are here:

    * ....../opencv/cmake/OpenCVUtils.cmake:896 (target_link_libraries)

 Call Stack (most recent call first):
   ....../opencv_contrib/modules/hdf/CMakeLists.txt:34 (ocv_target_link_libraries)



 CMake Error at ....../opencv/cmake/OpenCVUtils.cmake:896 (target_link_libraries):
   The keyword signature for target_link_libraries has already been used with
   the target "opencv_freetype".  All uses of target_link_libraries with a
   target must be either all-keyword or all-plain.

   The uses of the keyword signature are here:

    * ....../opencv/cmake/OpenCVUtils.cmake:896 (target_link_libraries)

 Call Stack (most recent call first):
   ....../opencv_contrib/modules/freetype/CMakeLists.txt:23 (ocv_target_link_libraries)



 CMake Error at ....../opencv/cmake/OpenCVUtils.cmake:896 (target_link_libraries):
   The keyword signature for target_link_libraries has already been used with
   the target "opencv_text".  All uses of target_link_libraries with a target
   must be either all-keyword or all-plain.

   The uses of the keyword signature are here:

    * ....../opencv/cmake/OpenCVUtils.cmake:896 (target_link_libraries)

 Call Stack (most recent call first):
   ....../opencv_contrib/modules/text/CMakeLists.txt:11 (ocv_target_link_libraries)



 Errors occurred during the last pass 

Did anybody else meet the same issue?

Cheers
Pei

bug builinstall incomplete

All 4 comments

CMake version?

I got the same error. I got it resolved by using 3.1.0 version of opencv_contrib instead of 3.2.0 or master.

Did anybody solve this problem so far??? So expecting the solutions....

Cheers
Pei

[alalek] This comment is not related to original issue


This is a complete answer 鉂わ笍

https://stackoverflow.com/questions/44943015/how-do-i-compile-opencv-ffmpeg-dll-file-using-mingw-on-windows-10-64-bit/47833262#47833262

Was this page helpful?
0 / 5 - 0 ratings