Comments (5)
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.
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.
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.
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.
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)
- Runtime error HOT 14
- SketchSearchDemo causes segmentation fault: 11 HOT 9
- How to compile on the windows without docker? HOT 3
- Some issues with OpenGl in Qt 5.8 HOT 4
- Train data not working HOT 2
- Why no 3D preview? HOT 1
- Question on generate Gabor filter HOT 2
- fatal error ,when excute make HOT 1
- When i run the SketchSearchDemo in the folder of 'bin/' , the program close quickly after i draw some on it. HOT 1
- “sse vocabulary -f features -n 1000 -o vocabulary” ? why choose the number '1000'? HOT 2
- Have you ever met such a problem? HOT 1
- There is a problem about the demo. HOT 1
- There is problem when I run “./linedrawing_project.sh -d data/ -p teddy.off”. HOT 1
- via which port should access this server? HOT 4
- .
- error occurring with compiling HOT 1
- Remove an unnecessary null pointer check HOT 1
- crashing on mac (reports included) HOT 11
- Image in opensse wiki
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opensse.