Skip to content

Compile error in module cnn_3dobj #1069

@dbermond

Description

@dbermond

I'm getting the following compile error when trying to build OpenCV:

[62%] Building CXX object modules/cnn_3dobj/CMakeFiles/opencv_cnn_3dobj.dir/src/cnn_feature.cpp.o
/home/user/abs/opencv-noffmpeg-git/src/opencv_contrib/modules/cnn_3dobj/src/cnn_feature.cpp: In member function ‘void cv::cnn_3dobj::descriptorExtractor::loadNet(const cv::String&, const cv::String&, const cv::String&)’:
/home/user/abs/opencv-noffmpeg-git/src/opencv_contrib/modules/cnn_3dobj/src/cnn_feature.cpp:92:54: error: no matching function for call to ‘caffe::Net<float>::Net(const cv::String&, caffe::Phase)’
             convnet = new Net<float>(model_file, TEST);
                                                      ^
System information (version)
  • OpenCV => git master (currently at 3.2.0.r332.gc1007c7276)
  • OpenCV contrib modules => git master (currently at 3.2.0.r160.g58f7afcb)
  • Caffe => rc5
  • protobuf => 3.2.0
  • OpenBLAS => 0.2.19
  • Operating System / Platform => Arch Linux x86_64
  • Compiler => gcc 6.3.1
Detailed description

The cnn_3dobj readme instructs to compile with -DWITH_QT:BOOL=OFF but this does not interfered in the error. Also, compiling with or without examples/tests did not make any difference regarding to this issue.
Caffe was manually compiled using OpenBLAS as the BLAS/CBLAS/Lapack provider and with CUDA support.

Steps to reproduce

Attached.
Complete output also provided.

opencv-cnn_3dobj-steps.txt
opencv-cnn_3dobj-output.txt

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions