Git Product home page Git Product logo

Comments (7)

iamgroot42 avatar iamgroot42 commented on May 12, 2024 1

The problem is still persistent.

I am currently using Ubuntu 14.04, with openCV 3.0.0 and caffe 1.0.0r3



.build_release/lib/libcaffe.so: undefined reference to `cv::imread(cv::String const&, int)'
.build_release/lib/libcaffe.so: undefined reference to `cv::imencode(cv::String const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<int, std::allocator<int> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `cv::imdecode(cv::_InputArray const&, int)'
...
make[3]: *** [.build_release/examples/siamese/convert_mnist_siamese_data.bin] Error 1
make[2]: *** [caffe_dd/src/caffe_dd-stamp/caffe_dd-configure] Error 2
make[1]: *** [CMakeFiles/caffe_dd.dir/all] Error 2
make: *** [all] Error 2

from deepdetect.

beniz avatar beniz commented on May 12, 2024

Looks like a problem with OpenCV 3, can you use 2.x by any chance ? I've seen many reports of difficulties with OpenCV 3 and Caffe as well.

That said, if you are willing to test on something and see whether it clears your issue, can you try to add opencv_imgcodecs to main/CMakeLists.txt so the last line looks like:

target_link_libraries (dede ddetect glog gflags opencv_core opencv_highgui opencv_imgproc opencv_imgcodecs cppnetlib-uri curlpp curl crypto ssl ${Boost_LIBRARIES} ${CAFFE_LIB_DEPS})

This is similar to the changes reported in https://github.com/BVLC/caffe/pull/3186/files

Let me know how compilation goes after this change.

from deepdetect.

az2012 avatar az2012 commented on May 12, 2024

For me works! Add only target_link_libraries(fisherfaces ${the_library} opencv_core opencv_imgproc opencv_highgui opencv_imgcodecs)

from deepdetect.

beniz avatar beniz commented on May 12, 2024

Thanks, could you share the exact diff to the existing code?

from deepdetect.

beniz avatar beniz commented on May 12, 2024

We will escalate this one as OpenCV 3 needs to supported in a near future.

from deepdetect.

beniz avatar beniz commented on May 12, 2024

PR #125 has been tested, and should be merged soon, cc @iamgroot42 if you are willing to give it a try.

from deepdetect.

beniz avatar beniz commented on May 12, 2024

Merged #125

from deepdetect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.