binarization
binarization copied to clipboard
where is "binary"
hello, I cannot find the binary file, can you pass it to me? Thank you!
Hello! If I just send the binary to you, it won't work, because it's platform-specific. Try to compile the code yourself. Just run the command make
and the binary will be generated. Let me know if you have problems with the compilation.
Thanks, I try to run the command in the directory but there is a problem:
g++ -c -m32 -pipe -g -I/usr/local/include/opencv -I/usr/local/include -lcv -lstdc++ -lcxcore -lcv
-lhighgui -lcvaux -o main.o main.cpp
In file included from /usr/include/assert.h:35:0,
from /usr/local/include/opencv2/core/types_c.h:55,
from /usr/local/include/opencv2/core/core_c.h:47,
from /usr/local/include/opencv2/opencv.hpp:46,
from main.cpp:7:
/usr/include/features.h:364:25: fatal error: sys/cdefs.h: No such file or directory
compilation terminated.
Makefile:49: recipe for target 'main.o' failed
make: *** [main.o] Error 1
I tried to search the solution about the problem, but the problem has not been solved, I guess I don't install some packages.
Try to install the package g++-multilib
or libc6-dev
g++ -m32 -o binary main.o -L/usr/lib /usr/local/lib/libopencv_calib3d.so
/usr/local/lib/libopencv_contrib.so /usr/local/lib/libopencv_core.so
/usr/local/lib/libopencv_features2d.so /usr/local/lib/libopencv_flann.so
/usr/local/lib/libopencv_gpu.so /usr/local/lib/libopencv_highgui.so
/usr/local/lib/libopencv_imgproc.so /usr/local/lib/libopencv_legacy.so
/usr/local/lib/libopencv_ml.so /usr/local/lib/libopencv_nonfree.so
/usr/local/lib/libopencv_objdetect.so /usr/local/lib/libopencv_photo.so
/usr/local/lib/libopencv_stitching.so /usr/local/lib/libopencv_ts.so
/usr/local/lib/libopencv_video.so /usr/local/lib/libopencv_videostab.so -lpthread
g++: error: /usr/local/lib/libopencv_ts.so: No such file or directory
sorry to bother you again,I meet above the problem, I cannot apt-get install g++-multilib. My ubuntu system is 15.04 and 64-bit
Looks like multilib
was installed and the problem is not with OpenCV. Try apt-get install libopencv-contrib-dev
.
I run the command apt-get install libopencv-contrib-dev
and install successfully, I try run again in rootdir(binarization-master) but the problem is same as before. Othersize, I install opencv-2.4.11,g++4.7.4.