Giter Club home page Giter Club logo

Comments (5)

zddhub avatar zddhub commented on August 15, 2024

I installed OpenCV 3.0 and boost in /usr/local/ path, include files are under /usr/local/include folder and libraries are under /usr/local/lib.

If you installed them in other path, please open top CMakeLists.txt file and change below lines to your path:

include_directories(/usr/local/include)

link_directories(/usr/local/lib)

from opensse.

warmhug avatar warmhug commented on August 15, 2024

This is partially modified of CMakeLists.txt file

include_directories(/usr/local/opt/opencv3/include /usr/local/Cellar/boost/1.63.0/include/boost)
include_directories(..)
include_directories(${PROJECT_SOURCE_DIR}/sse)

link_directories(/usr/local/opt/opencv3/lib /usr/local/Cellar/boost/1.63.0/lib)

And it also throw errors

......
[ 30%] Building CXX object sse/CMakeFiles/opensse.dir/index/invertedindex.cpp.o
[ 33%] Linking CXX shared library ../lib/libopensse.dylib
ld: library not found for -lboost_thread
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libopensse.dylib] Error 1
make[1]: *** [sse/CMakeFiles/opensse.dir/all] Error 2
make: *** [all] Error 2

from opensse.

zddhub avatar zddhub commented on August 15, 2024

It seems like boost lib cannot be found, please go into '/usr/local/Cellar/boost/1.63.0/lib' folder, and make sure boost_thread exist, maybe named libboost_thread.dylib or libboost_thread-mt.dylib and change below line:

set(REQUIRED_LIB opencv_core opencv_imgproc opencv_imgcodecs opencv_highgui opencv_features2d opencv_ml boost_thread boost_system)

from opensse.

warmhug avatar warmhug commented on August 15, 2024

I change boost_thread to boost_thread-mt, It seems to be working fine. Run make, it outputs info as follows

......
Scanning dependencies of target test_galif
[ 90%] Building CXX object tests/CMakeFiles/test_galif.dir/test_galif/main.cpp.o
[ 93%] Linking CXX executable test_galif
[ 93%] Built target test_galif
Scanning dependencies of target stat_vocab
[ 96%] Building CXX object tests/CMakeFiles/stat_vocab.dir/stat_vocab/main.cpp.o
[100%] Linking CXX executable stat_vocab
[100%] Built target stat_vocab

Thanks and suggest you can update the wiki document for this situation.

from opensse.

zddhub avatar zddhub commented on August 15, 2024

Different boost makes different library, this is why I am working on removing boost from core OpenSSE library. It is hard to remove OpenCV, I added docker support to make life happy

from opensse.

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.