Skip to content

opecv_contrib DNN Build issue. #1315

@ravispatil

Description

@ravispatil

Hello,
I am building opencv_contrib dnn module. But in cmake command getting below error.


You have called ADD_LIBRARY for library libprotobuf without any source files. This typically indicates a problem with your CMakeLists.txt file
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE - Success
CMake Error: CMake can not determine linker language for target: libprotobuf
CMake Error in opencv_contrib/modules/dnn/3rdparty/protobuf/CMakeLists.txt:
Exporting the target "libprotobuf" is not allowed since its linker language
cannot be determined

CMake Error: CMake can not determine linker language for target: libprotobuf
CMake Error in opencv_contrib/modules/dnn/3rdparty/protobuf/CMakeLists.txt:
Exporting the target "libprotobuf" is not allowed since its linker language
cannot be determined

If I disable dnn then cmake command is successful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    question (invalid tracker)ask questions and other "no action" items here: https://forum.opencv.org/

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions