Open ValerioNeriGit opened 6 years ago
Makefile OPENCV=1, Platforms tested: Ubuntu 16.04 (updated), Raspberry Pi Stretch 2017-11-29 (updated), darknet version as of 2p CT, 2/28/2018.
NOTE: Cannot reproduce this with OCV 3.4.0 (works fine). This affects OCV 3.4.1 only. Compiling with OPENCV=0 succeeds (no issue).
gcc -DOPENCV pkg-config --cflags opencv -Wall -Wfatal-errors -Ofast -DOPENCV -c ./src/im2col.c -o obj/im2col.o In file included from /usr/local/include/opencv2/core/types_c.h:59:0, from /usr/local/include/opencv2/core/core_c.h:48, from /usr/local/include/opencv2/highgui/highgui_c.h:45, from ./src/image.c:14: /usr/local/include/opencv2/core/cvdef.h:485:1: error: unknown type name ‘namespace’ namespace cv { ^ compilation terminated due to -Wfatal-errors. Makefile:102: recipe for target 'obj/image.o' failed make: [obj/image.o] Error 1 make: Waiting for unfinished jobs.... ./src/http_stream.cpp: In member function ‘bool MJPGWriter::write(const cv::Mat&)’: ./src/http_stream.cpp:176:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (n < outlen) ^
I'm working on Ubuntu server 16.04 and this version of OpenCV: 3.4.0-dev
>>> import cv2
>>> cv2.__version__
'3.4.0-dev'
Should I try to use opencv 3.4.0?
I solved with 3.4.0
This is a bug in OpenCV 3.4.1 C API: https://github.com/opencv/opencv/issues/10963
I have the same issue... Jesus, I am tired with those different dependencies and compatibility.
I too have same issue with darknet compiling with openCV 3.4.1. It was not clear if this has been resolved and if so, what the set of set were to fix this.
@jesmitty Use OpenCV 3.4.0. Or manually do Proposed fix: https://github.com/opencv/opencv/issues/10963
thank you
On Tue, Mar 13, 2018 at 7:57 PM, Alexey notifications@github.com wrote:
@jesmitty https://github.com/jesmitty Use OpenCV 3.4.0. Or manually do Proposed fix: opencv/opencv#10963 https://github.com/opencv/opencv/issues/10963
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pjreddie/darknet/issues/502#issuecomment-372858967, or mute the thread https://github.com/notifications/unsubscribe-auth/AH_I0SQLHxrNFC1tNh0KeryYFqyVNqazks5teFzhgaJpZM4SXN1s .
Just one more thing if you don't mind. I removed opencv 3.4.1 and installed opencv 3.4.0. See:
[ec2-user@ip-172-31-15-62 darknet]$ echo $PKG_CONFIG_PATH /usr/local/lib64/pkgconfig/opencv.pc [ec2-user@ip-172-31-15-62 darknet]$ opencv_version 3.4.0
yet I still get the following error - Is there something else I have to do?
[ec2-user@ip-172-31-15-62 darknet]$ make
gcc -Iinclude/ -Isrc/ -DOPENCV pkg-config --cflags opencv
-Wall
-Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -DOPENCV obj/captcha.o
obj/lsd.o obj/super.o obj/art.o obj/tag.o obj/cifar.o obj/go.o obj/rnn.o
obj/segmenter.o obj/regressor.o obj/classifier.o obj/coco.o obj/yolo.o
obj/detector.o obj/nightmare.o obj/attention.o obj/darknet.o libdarknet.a
-o darknet -lm -pthread pkg-config --libs opencv
libdarknet.a
Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing opencv.pc' to the PKG_CONFIG_PATH environment variable No package 'opencv' found Package opencv was not found in the pkg-config search path. Perhaps you should add the directory containing
opencv.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opencv' found
libdarknet.a(image.o): In function show_image_cv': image.c:(.text+0x1a2ed): undefined reference to
cvNamedWindow'
image.c:(.text+0x1a3d2): undefined reference to cvShowImage' libdarknet.a(image.o): In function
flush_stream_buffer':
image.c:(.text+0x1a507): undefined reference to cvQueryFrame' libdarknet.a(image.o): In function
fill_image_from_stream':
image.c:(.text+0x1a525): undefined reference to cvQueryFrame' libdarknet.a(image.o): In function
get_image_from_stream':
image.c:(.text+0x1b51c): undefined reference to cvQueryFrame' libdarknet.a(image.o): In function
load_image_cv':
image.c:(.text+0x1b5f4): undefined reference to cvLoadImage' image.c:(.text+0x1b615): undefined reference to
cvReleaseImage'
libdarknet.a(image.o): In function show_image': image.c:(.text+0x1ed81): undefined reference to
cvCreateImage'
image.c:(.text+0x1ee25): undefined reference to cvReleaseImage' libdarknet.a(image.o): In function
save_image_jpg':
image.c:(.text+0x1eee5): undefined reference to cvCreateImage' image.c:(.text+0x1effd): undefined reference to
cvSaveImage'
image.c:(.text+0x1f007): undefined reference to cvReleaseImage' libdarknet.a(image.o): In function
test_resize':
image.c:(.text+0x20f61): undefined reference to cvWaitKey' obj/darknet.o: In function
visualize':
darknet.c:(.text+0x220a): undefined reference to cvWaitKey' obj/lsd.o: In function
test_dcgan':
lsd.c:(.text+0x1bd): undefined reference to cvWaitKey' obj/lsd.o: In function
test_lsd':
lsd.c:(.text+0x49c): undefined reference to cvWaitKey' obj/art.o: In function
demo_art':
art.c:(.text+0x34): undefined reference to cvCreateCameraCapture' art.c:(.text+0x65): undefined reference to
cvNamedWindow'
art.c:(.text+0x7b): undefined reference to cvResizeWindow' art.c:(.text+0x209): undefined reference to
cvWaitKey'
obj/segmenter.o: In function train_segmenter': segmenter.c:(.text+0x8c6): undefined reference to
cvWaitKey'
obj/segmenter.o: In function predict_segmenter': segmenter.c:(.text+0xb74): undefined reference to
cvWaitKey'
obj/segmenter.o: In function demo_segmenter': segmenter.c:(.text+0xcfd): undefined reference to
cvCreateFileCapture'
segmenter.c:(.text+0xd2e): undefined reference to cvNamedWindow' segmenter.c:(.text+0xd44): undefined reference to
cvResizeWindow'
segmenter.c:(.text+0xeeb): undefined reference to cvWaitKey' segmenter.c:(.text+0xf5b): undefined reference to
cvCreateCameraCapture'
obj/regressor.o: In function demo_regressor': regressor.c:(.text+0x92d): undefined reference to
cvCreateFileCapture'
regressor.c:(.text+0x956): undefined reference to cvNamedWindow' regressor.c:(.text+0x96c): undefined reference to
cvResizeWindow'
regressor.c:(.text+0xab1): undefined reference to cvWaitKey' regressor.c:(.text+0xb21): undefined reference to
cvCreateCameraCapture'
obj/classifier.o: In function threat_classifier': classifier.c:(.text+0x316d): undefined reference to
cvCreateFileCapture'
classifier.c:(.text+0x38d4): undefined reference to cvWaitKey' classifier.c:(.text+0x3b11): undefined reference to
cvCreateCameraCapture'
obj/classifier.o: In function gun_classifier': classifier.c:(.text+0x3bcf): undefined reference to
cvCreateFileCapture'
classifier.c:(.text+0x3c47): undefined reference to cvNamedWindow' classifier.c:(.text+0x3c5d): undefined reference to
cvResizeWindow'
classifier.c:(.text+0x3e84): undefined reference to cvWaitKey' classifier.c:(.text+0x3ebf): undefined reference to
cvCreateCameraCapture'
obj/classifier.o: In function demo_classifier': classifier.c:(.text+0x3f3b): undefined reference to
cvCreateFileCapture'
classifier.c:(.text+0x3fa7): undefined reference to cvNamedWindow' classifier.c:(.text+0x3fbd): undefined reference to
cvResizeWindow'
classifier.c:(.text+0x41aa): undefined reference to cvWaitKey' classifier.c:(.text+0x421d): undefined reference to
cvCreateCameraCapture'
obj/coco.o: In function test_coco': coco.c:(.text+0x198f): undefined reference to
cvWaitKey'
coco.c:(.text+0x1994): undefined reference to cvDestroyAllWindows' obj/yolo.o: In function
test_yolo':
yolo.c:(.text+0x18ff): undefined reference to cvWaitKey' yolo.c:(.text+0x1904): undefined reference to
cvDestroyAllWindows'
obj/detector.o: In function test_detector': detector.c:(.text+0x30e6): undefined reference to
cvNamedWindow'
detector.c:(.text+0x312a): undefined reference to cvWaitKey' detector.c:(.text+0x312f): undefined reference to
cvDestroyAllWindows'
detector.c:(.text+0x315c): undefined reference to cvSetWindowProperty' obj/nightmare.o: In function
run_nightmare':
nightmare.c:(.text+0xec4): undefined reference to cvWaitKey' libdarknet.a(demo.o): In function
display_in_thread':
demo.c:(.text+0x4b6): undefined reference to cvWaitKey' libdarknet.a(demo.o): In function
demo':
demo.c:(.text+0x72c): undefined reference to cvCreateFileCapture' demo.c:(.text+0xa64): undefined reference to
cvCreateImage'
demo.c:(.text+0xc44): undefined reference to cvCreateCameraCapture' demo.c:(.text+0xc93): undefined reference to
cvSetCaptureProperty'
demo.c:(.text+0xcc5): undefined reference to cvNamedWindow' demo.c:(.text+0xce6): undefined reference to
cvSetWindowProperty'
demo.c:(.text+0xcfb): undefined reference to cvMoveWindow' demo.c:(.text+0xd11): undefined reference to
cvResizeWindow'
demo.c:(.text+0xd2c): undefined reference to cvSetCaptureProperty' demo.c:(.text+0xd4e): undefined reference to
cvSetCaptureProperty'
libdarknet.a(demo.o): In function demo_compare': demo.c:(.text+0xe4d): undefined reference to
cvCreateFileCapture'
demo.c:(.text+0x1184): undefined reference to cvCreateImage' demo.c:(.text+0x1364): undefined reference to
cvCreateCameraCapture'
demo.c:(.text+0x13b3): undefined reference to cvSetCaptureProperty' demo.c:(.text+0x13e5): undefined reference to
cvNamedWindow'
demo.c:(.text+0x1406): undefined reference to cvSetWindowProperty' demo.c:(.text+0x141b): undefined reference to
cvMoveWindow'
demo.c:(.text+0x1431): undefined reference to cvResizeWindow' demo.c:(.text+0x144c): undefined reference to
cvSetCaptureProperty'
demo.c:(.text+0x146e): undefined reference to `cvSetCaptureProperty'
collect2: error: ld returned 1 exit status
make: *** [darknet] Error 1
On Wed, Mar 14, 2018 at 9:49 AM, Jeff Smith jesmitty27@gmail.com wrote:
thank you
On Tue, Mar 13, 2018 at 7:57 PM, Alexey notifications@github.com wrote:
@jesmitty https://github.com/jesmitty Use OpenCV 3.4.0. Or manually do Proposed fix: opencv/opencv#10963 https://github.com/opencv/opencv/issues/10963
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pjreddie/darknet/issues/502#issuecomment-372858967, or mute the thread https://github.com/notifications/unsubscribe-auth/AH_I0SQLHxrNFC1tNh0KeryYFqyVNqazks5teFzhgaJpZM4SXN1s .
Another clue:
After I logout and log back in, I could make with opencv. Then when I bring up darknet I get:
[ec2-user@ip-172-31-15-62 darknet]$ ./darknet ./darknet: error while loading shared libraries: libopencv_stitching.so.3.4: cannot open shared object file: No such file or directory
On Wed, Mar 14, 2018 at 10:46 AM, Jeff Smith jesmitty27@gmail.com wrote:
Just one more thing if you don't mind. I removed opencv 3.4.1 and installed opencv 3.4.0. See:
[ec2-user@ip-172-31-15-62 darknet]$ echo $PKG_CONFIG_PATH /usr/local/lib64/pkgconfig/opencv.pc [ec2-user@ip-172-31-15-62 darknet]$ opencv_version 3.4.0
yet I still get the following error - Is there something else I have to do?
[ec2-user@ip-172-31-15-62 darknet]$ make gcc -Iinclude/ -Isrc/ -DOPENCV
pkg-config --cflags opencv
-Wall -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -DOPENCV obj/captcha.o obj/lsd.o obj/super.o obj/art.o obj/tag.o obj/cifar.o obj/go.o obj/rnn.o obj/segmenter.o obj/regressor.o obj/classifier.o obj/coco.o obj/yolo.o obj/detector.o obj/nightmare.o obj/attention.o obj/darknet.o libdarknet.a -o darknet -lm -pthreadpkg-config --libs opencv
libdarknet.a Package opencv was not found in the pkg-config search path. Perhaps you should add the directory containingopencv.pc' to the PKG_CONFIG_PATH environment variable No package 'opencv' found Package opencv was not found in the pkg-config search path. Perhaps you should add the directory containing
opencv.pc' to the PKG_CONFIG_PATH environment variable No package 'opencv' found libdarknet.a(image.o): In functionshow_image_cv': image.c:(.text+0x1a2ed): undefined reference to
cvNamedWindow' image.c:(.text+0x1a3d2): undefined reference tocvShowImage' libdarknet.a(image.o): In function
flush_stream_buffer': image.c:(.text+0x1a507): undefined reference tocvQueryFrame' libdarknet.a(image.o): In function
fill_image_from_stream': image.c:(.text+0x1a525): undefined reference tocvQueryFrame' libdarknet.a(image.o): In function
get_image_from_stream': image.c:(.text+0x1b51c): undefined reference tocvQueryFrame' libdarknet.a(image.o): In function
load_image_cv': image.c:(.text+0x1b5f4): undefined reference tocvLoadImage' image.c:(.text+0x1b615): undefined reference to
cvReleaseImage' libdarknet.a(image.o): In functionshow_image': image.c:(.text+0x1ed81): undefined reference to
cvCreateImage' image.c:(.text+0x1ee25): undefined reference tocvReleaseImage' libdarknet.a(image.o): In function
save_image_jpg': image.c:(.text+0x1eee5): undefined reference tocvCreateImage' image.c:(.text+0x1effd): undefined reference to
cvSaveImage' image.c:(.text+0x1f007): undefined reference tocvReleaseImage' libdarknet.a(image.o): In function
test_resize': image.c:(.text+0x20f61): undefined reference tocvWaitKey' obj/darknet.o: In function
visualize': darknet.c:(.text+0x220a): undefined reference tocvWaitKey' obj/lsd.o: In function
test_dcgan': lsd.c:(.text+0x1bd): undefined reference tocvWaitKey' obj/lsd.o: In function
test_lsd': lsd.c:(.text+0x49c): undefined reference tocvWaitKey' obj/art.o: In function
demo_art': art.c:(.text+0x34): undefined reference tocvCreateCameraCapture' art.c:(.text+0x65): undefined reference to
cvNamedWindow' art.c:(.text+0x7b): undefined reference tocvResizeWindow' art.c:(.text+0x209): undefined reference to
cvWaitKey' obj/segmenter.o: In functiontrain_segmenter': segmenter.c:(.text+0x8c6): undefined reference to
cvWaitKey' obj/segmenter.o: In functionpredict_segmenter': segmenter.c:(.text+0xb74): undefined reference to
cvWaitKey' obj/segmenter.o: In functiondemo_segmenter': segmenter.c:(.text+0xcfd): undefined reference to
cvCreateFileCapture' segmenter.c:(.text+0xd2e): undefined reference tocvNamedWindow' segmenter.c:(.text+0xd44): undefined reference to
cvResizeWindow' segmenter.c:(.text+0xeeb): undefined reference tocvWaitKey' segmenter.c:(.text+0xf5b): undefined reference to
cvCreateCameraCapture' obj/regressor.o: In functiondemo_regressor': regressor.c:(.text+0x92d): undefined reference to
cvCreateFileCapture' regressor.c:(.text+0x956): undefined reference tocvNamedWindow' regressor.c:(.text+0x96c): undefined reference to
cvResizeWindow' regressor.c:(.text+0xab1): undefined reference tocvWaitKey' regressor.c:(.text+0xb21): undefined reference to
cvCreateCameraCapture' obj/classifier.o: In functionthreat_classifier': classifier.c:(.text+0x316d): undefined reference to
cvCreateFileCapture' classifier.c:(.text+0x38d4): undefined reference tocvWaitKey' classifier.c:(.text+0x3b11): undefined reference to
cvCreateCameraCapture' obj/classifier.o: In functiongun_classifier': classifier.c:(.text+0x3bcf): undefined reference to
cvCreateFileCapture' classifier.c:(.text+0x3c47): undefined reference tocvNamedWindow' classifier.c:(.text+0x3c5d): undefined reference to
cvResizeWindow' classifier.c:(.text+0x3e84): undefined reference tocvWaitKey' classifier.c:(.text+0x3ebf): undefined reference to
cvCreateCameraCapture' obj/classifier.o: In functiondemo_classifier': classifier.c:(.text+0x3f3b): undefined reference to
cvCreateFileCapture' classifier.c:(.text+0x3fa7): undefined reference tocvNamedWindow' classifier.c:(.text+0x3fbd): undefined reference to
cvResizeWindow' classifier.c:(.text+0x41aa): undefined reference tocvWaitKey' classifier.c:(.text+0x421d): undefined reference to
cvCreateCameraCapture' obj/coco.o: In functiontest_coco': coco.c:(.text+0x198f): undefined reference to
cvWaitKey' coco.c:(.text+0x1994): undefined reference tocvDestroyAllWindows' obj/yolo.o: In function
test_yolo': yolo.c:(.text+0x18ff): undefined reference tocvWaitKey' yolo.c:(.text+0x1904): undefined reference to
cvDestroyAllWindows' obj/detector.o: In functiontest_detector': detector.c:(.text+0x30e6): undefined reference to
cvNamedWindow' detector.c:(.text+0x312a): undefined reference tocvWaitKey' detector.c:(.text+0x312f): undefined reference to
cvDestroyAllWindows' detector.c:(.text+0x315c): undefined reference tocvSetWindowProperty' obj/nightmare.o: In function
run_nightmare': nightmare.c:(.text+0xec4): undefined reference tocvWaitKey' libdarknet.a(demo.o): In function
display_in_thread': demo.c:(.text+0x4b6): undefined reference tocvWaitKey' libdarknet.a(demo.o): In function
demo': demo.c:(.text+0x72c): undefined reference tocvCreateFileCapture' demo.c:(.text+0xa64): undefined reference to
cvCreateImage' demo.c:(.text+0xc44): undefined reference tocvCreateCameraCapture' demo.c:(.text+0xc93): undefined reference to
cvSetCaptureProperty' demo.c:(.text+0xcc5): undefined reference tocvNamedWindow' demo.c:(.text+0xce6): undefined reference to
cvSetWindowProperty' demo.c:(.text+0xcfb): undefined reference tocvMoveWindow' demo.c:(.text+0xd11): undefined reference to
cvResizeWindow' demo.c:(.text+0xd2c): undefined reference tocvSetCaptureProperty' demo.c:(.text+0xd4e): undefined reference to
cvSetCaptureProperty' libdarknet.a(demo.o): In functiondemo_compare': demo.c:(.text+0xe4d): undefined reference to
cvCreateFileCapture' demo.c:(.text+0x1184): undefined reference tocvCreateImage' demo.c:(.text+0x1364): undefined reference to
cvCreateCameraCapture' demo.c:(.text+0x13b3): undefined reference tocvSetCaptureProperty' demo.c:(.text+0x13e5): undefined reference to
cvNamedWindow' demo.c:(.text+0x1406): undefined reference tocvSetWindowProperty' demo.c:(.text+0x141b): undefined reference to
cvMoveWindow' demo.c:(.text+0x1431): undefined reference tocvResizeWindow' demo.c:(.text+0x144c): undefined reference to
cvSetCaptureProperty' demo.c:(.text+0x146e): undefined reference to `cvSetCaptureProperty' collect2: error: ld returned 1 exit status make: *** [darknet] Error 1On Wed, Mar 14, 2018 at 9:49 AM, Jeff Smith jesmitty27@gmail.com wrote:
thank you
On Tue, Mar 13, 2018 at 7:57 PM, Alexey notifications@github.com wrote:
@jesmitty https://github.com/jesmitty Use OpenCV 3.4.0. Or manually do Proposed fix: opencv/opencv#10963 https://github.com/opencv/opencv/issues/10963
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pjreddie/darknet/issues/502#issuecomment-372858967, or mute the thread https://github.com/notifications/unsubscribe-auth/AH_I0SQLHxrNFC1tNh0KeryYFqyVNqazks5teFzhgaJpZM4SXN1s .
Getting closer. When I do:
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib64
I can bring up darknet this way:
[ec2-user@ip-172-31-15-62 darknet]$ ./darknet
usage: ./darknet
When I try this however, I get: [ec2-user@ip-172-31-15-62 darknet]$ ./darknet imtest data/eagle.jpg L2 Norm: 372.007568 OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvNamedWindow, file /home/ec2-user/data/opencv-3.4.0/modules/highgui/src/window.cpp, line 593 terminate called after throwing an instance of 'cv::Exception' what(): /home/ec2-user/data/opencv-3.4.0/modules/highgui/src/window.cpp:593: error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function cvNamedWindow
On Wed, Mar 14, 2018 at 10:58 AM, Jeff Smith jesmitty27@gmail.com wrote:
Another clue:
After I logout and log back in, I could make with opencv. Then when I bring up darknet I get:
[ec2-user@ip-172-31-15-62 darknet]$ ./darknet ./darknet: error while loading shared libraries: libopencv_stitching.so.3.4: cannot open shared object file: No such file or directory
On Wed, Mar 14, 2018 at 10:46 AM, Jeff Smith jesmitty27@gmail.com wrote:
Just one more thing if you don't mind. I removed opencv 3.4.1 and installed opencv 3.4.0. See:
[ec2-user@ip-172-31-15-62 darknet]$ echo $PKG_CONFIG_PATH /usr/local/lib64/pkgconfig/opencv.pc [ec2-user@ip-172-31-15-62 darknet]$ opencv_version 3.4.0
yet I still get the following error - Is there something else I have to do?
[ec2-user@ip-172-31-15-62 darknet]$ make gcc -Iinclude/ -Isrc/ -DOPENCV
pkg-config --cflags opencv
-Wall -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -DOPENCV obj/captcha.o obj/lsd.o obj/super.o obj/art.o obj/tag.o obj/cifar.o obj/go.o obj/rnn.o obj/segmenter.o obj/regressor.o obj/classifier.o obj/coco.o obj/yolo.o obj/detector.o obj/nightmare.o obj/attention.o obj/darknet.o libdarknet.a -o darknet -lm -pthreadpkg-config --libs opencv
libdarknet.a Package opencv was not found in the pkg-config search path. Perhaps you should add the directory containingopencv.pc' to the PKG_CONFIG_PATH environment variable No package 'opencv' found Package opencv was not found in the pkg-config search path. Perhaps you should add the directory containing
opencv.pc' to the PKG_CONFIG_PATH environment variable No package 'opencv' found libdarknet.a(image.o): In functionshow_image_cv': image.c:(.text+0x1a2ed): undefined reference to
cvNamedWindow' image.c:(.text+0x1a3d2): undefined reference tocvShowImage' libdarknet.a(image.o): In function
flush_stream_buffer': image.c:(.text+0x1a507): undefined reference tocvQueryFrame' libdarknet.a(image.o): In function
fill_image_from_stream': image.c:(.text+0x1a525): undefined reference tocvQueryFrame' libdarknet.a(image.o): In function
get_image_from_stream': image.c:(.text+0x1b51c): undefined reference tocvQueryFrame' libdarknet.a(image.o): In function
load_image_cv': image.c:(.text+0x1b5f4): undefined reference tocvLoadImage' image.c:(.text+0x1b615): undefined reference to
cvReleaseImage' libdarknet.a(image.o): In functionshow_image': image.c:(.text+0x1ed81): undefined reference to
cvCreateImage' image.c:(.text+0x1ee25): undefined reference tocvReleaseImage' libdarknet.a(image.o): In function
save_image_jpg': image.c:(.text+0x1eee5): undefined reference tocvCreateImage' image.c:(.text+0x1effd): undefined reference to
cvSaveImage' image.c:(.text+0x1f007): undefined reference tocvReleaseImage' libdarknet.a(image.o): In function
test_resize': image.c:(.text+0x20f61): undefined reference tocvWaitKey' obj/darknet.o: In function
visualize': darknet.c:(.text+0x220a): undefined reference tocvWaitKey' obj/lsd.o: In function
test_dcgan': lsd.c:(.text+0x1bd): undefined reference tocvWaitKey' obj/lsd.o: In function
test_lsd': lsd.c:(.text+0x49c): undefined reference tocvWaitKey' obj/art.o: In function
demo_art': art.c:(.text+0x34): undefined reference tocvCreateCameraCapture' art.c:(.text+0x65): undefined reference to
cvNamedWindow' art.c:(.text+0x7b): undefined reference tocvResizeWindow' art.c:(.text+0x209): undefined reference to
cvWaitKey' obj/segmenter.o: In functiontrain_segmenter': segmenter.c:(.text+0x8c6): undefined reference to
cvWaitKey' obj/segmenter.o: In functionpredict_segmenter': segmenter.c:(.text+0xb74): undefined reference to
cvWaitKey' obj/segmenter.o: In functiondemo_segmenter': segmenter.c:(.text+0xcfd): undefined reference to
cvCreateFileCapture' segmenter.c:(.text+0xd2e): undefined reference tocvNamedWindow' segmenter.c:(.text+0xd44): undefined reference to
cvResizeWindow' segmenter.c:(.text+0xeeb): undefined reference tocvWaitKey' segmenter.c:(.text+0xf5b): undefined reference to
cvCreateCameraCapture' obj/regressor.o: In functiondemo_regressor': regressor.c:(.text+0x92d): undefined reference to
cvCreateFileCapture' regressor.c:(.text+0x956): undefined reference tocvNamedWindow' regressor.c:(.text+0x96c): undefined reference to
cvResizeWindow' regressor.c:(.text+0xab1): undefined reference tocvWaitKey' regressor.c:(.text+0xb21): undefined reference to
cvCreateCameraCapture' obj/classifier.o: In functionthreat_classifier': classifier.c:(.text+0x316d): undefined reference to
cvCreateFileCapture' classifier.c:(.text+0x38d4): undefined reference tocvWaitKey' classifier.c:(.text+0x3b11): undefined reference to
cvCreateCameraCapture' obj/classifier.o: In functiongun_classifier': classifier.c:(.text+0x3bcf): undefined reference to
cvCreateFileCapture' classifier.c:(.text+0x3c47): undefined reference tocvNamedWindow' classifier.c:(.text+0x3c5d): undefined reference to
cvResizeWindow' classifier.c:(.text+0x3e84): undefined reference tocvWaitKey' classifier.c:(.text+0x3ebf): undefined reference to
cvCreateCameraCapture' obj/classifier.o: In functiondemo_classifier': classifier.c:(.text+0x3f3b): undefined reference to
cvCreateFileCapture' classifier.c:(.text+0x3fa7): undefined reference tocvNamedWindow' classifier.c:(.text+0x3fbd): undefined reference to
cvResizeWindow' classifier.c:(.text+0x41aa): undefined reference tocvWaitKey' classifier.c:(.text+0x421d): undefined reference to
cvCreateCameraCapture' obj/coco.o: In functiontest_coco': coco.c:(.text+0x198f): undefined reference to
cvWaitKey' coco.c:(.text+0x1994): undefined reference tocvDestroyAllWindows' obj/yolo.o: In function
test_yolo': yolo.c:(.text+0x18ff): undefined reference tocvWaitKey' yolo.c:(.text+0x1904): undefined reference to
cvDestroyAllWindows' obj/detector.o: In functiontest_detector': detector.c:(.text+0x30e6): undefined reference to
cvNamedWindow' detector.c:(.text+0x312a): undefined reference tocvWaitKey' detector.c:(.text+0x312f): undefined reference to
cvDestroyAllWindows' detector.c:(.text+0x315c): undefined reference tocvSetWindowProperty' obj/nightmare.o: In function
run_nightmare': nightmare.c:(.text+0xec4): undefined reference tocvWaitKey' libdarknet.a(demo.o): In function
display_in_thread': demo.c:(.text+0x4b6): undefined reference tocvWaitKey' libdarknet.a(demo.o): In function
demo': demo.c:(.text+0x72c): undefined reference tocvCreateFileCapture' demo.c:(.text+0xa64): undefined reference to
cvCreateImage' demo.c:(.text+0xc44): undefined reference tocvCreateCameraCapture' demo.c:(.text+0xc93): undefined reference to
cvSetCaptureProperty' demo.c:(.text+0xcc5): undefined reference tocvNamedWindow' demo.c:(.text+0xce6): undefined reference to
cvSetWindowProperty' demo.c:(.text+0xcfb): undefined reference tocvMoveWindow' demo.c:(.text+0xd11): undefined reference to
cvResizeWindow' demo.c:(.text+0xd2c): undefined reference tocvSetCaptureProperty' demo.c:(.text+0xd4e): undefined reference to
cvSetCaptureProperty' libdarknet.a(demo.o): In functiondemo_compare': demo.c:(.text+0xe4d): undefined reference to
cvCreateFileCapture' demo.c:(.text+0x1184): undefined reference tocvCreateImage' demo.c:(.text+0x1364): undefined reference to
cvCreateCameraCapture' demo.c:(.text+0x13b3): undefined reference tocvSetCaptureProperty' demo.c:(.text+0x13e5): undefined reference to
cvNamedWindow' demo.c:(.text+0x1406): undefined reference tocvSetWindowProperty' demo.c:(.text+0x141b): undefined reference to
cvMoveWindow' demo.c:(.text+0x1431): undefined reference tocvResizeWindow' demo.c:(.text+0x144c): undefined reference to
cvSetCaptureProperty' demo.c:(.text+0x146e): undefined reference to `cvSetCaptureProperty' collect2: error: ld returned 1 exit status make: *** [darknet] Error 1On Wed, Mar 14, 2018 at 9:49 AM, Jeff Smith jesmitty27@gmail.com wrote:
thank you
On Tue, Mar 13, 2018 at 7:57 PM, Alexey notifications@github.com wrote:
@jesmitty https://github.com/jesmitty Use OpenCV 3.4.0. Or manually do Proposed fix: opencv/opencv#10963 https://github.com/opencv/opencv/issues/10963
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pjreddie/darknet/issues/502#issuecomment-372858967, or mute the thread https://github.com/notifications/unsubscribe-auth/AH_I0SQLHxrNFC1tNh0KeryYFqyVNqazks5teFzhgaJpZM4SXN1s .
jesmitty, I encountered the same problem when try to compile Yolo with OpenCV 3.4.1. I used this bash script to install : https://github.com/milq/milq/blob/master/scripts/bash/install-opencv.sh What I ended up doing is to install Opencv 3.2.0 and Everything good now. Just change OPENCV_VERSION='3.4.1' to OPENCV_VERSION='3.2.0'
Thank you.
On Fri, Mar 30, 2018 at 3:42 PM, Vincentvn119 notifications@github.com wrote:
jesmitty, I encountered the same problem when try to compile Yolo with OpenCV 3.4.1. I used this bash script to install : https://github.com/milq/milq/ blob/master/scripts/bash/install-opencv.sh What I ended up doing is to install Opencv 3.2.0 and Everything good now. Just change OPENCV_VERSION='3.4.1' to OPENCV_VERSION='3.2.0'
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pjreddie/darknet/issues/502#issuecomment-377605835, or mute the thread https://github.com/notifications/unsubscribe-auth/AH_I0T3rkc4I6RvJbb2qxHm6cqDY3nliks5tjoqpgaJpZM4SXN1s .
/darknet$ make
g++ -DOPENCV pkg-config --cflags opencv
-DGPU -I/usr/local/cuda-8.0/include/ -DCUDNN -Wall -Wfatal-errors -ffp-contract=fast -mavx -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn-8.0/include obj/http_stream.o obj/gemm.o obj/utils.o obj/cuda.o obj/convolutional_layer.o obj/list.o obj/image.o obj/activations.o obj/im2col.o obj/col2im.o obj/blas.o obj/crop_layer.o obj/dropout_layer.o obj/maxpool_layer.o obj/softmax_layer.o obj/data.o obj/matrix.o obj/network.o obj/connected_layer.o obj/cost_layer.o obj/parser.o obj/option_list.o obj/darknet.o obj/detection_layer.o obj/captcha.o obj/route_layer.o obj/writing.o obj/box.o obj/nightmare.o obj/normalization_layer.o obj/avgpool_layer.o obj/coco.o obj/dice.o obj/yolo.o obj/detector.o obj/layer.o obj/compare.o obj/classifier.o obj/local_layer.o obj/swag.o obj/shortcut_layer.o obj/activation_layer.o obj/rnn_layer.o obj/gru_layer.o obj/rnn.o obj/rnn_vid.o obj/crnn_layer.o obj/demo.o obj/tag.o obj/cifar.o obj/go.o obj/batchnorm_layer.o obj/art.o obj/region_layer.o obj/reorg_layer.o obj/reorg_old_layer.o obj/super.o obj/voxel.o obj/tree.o obj/yolo_layer.o obj/upsample_layer.o obj/convolutional_kernels.o obj/activation_kernels.o obj/im2col_kernels.o obj/col2im_kernels.o obj/blas_kernels.o obj/crop_layer_kernels.o obj/dropout_layer_kernels.o obj/maxpool_layer_kernels.o obj/network_kernels.o obj/avgpool_layer_kernels.o -o darknet -lm -pthread pkg-config --libs opencv
-L/usr/local/cuda-8.0/lib64 -lcuda -lcudart -lcublas -lcurand -L/usr/local/cudnn-8.0/lib64 -lcudnn -lstdc++
/usr/bin/ld: cannot find -lippicv
collect2: error: ld returned 1 exit status
Makefile:110: recipe for target 'darknet' failed
make: *** [darknet] Error 1
I got this error when I tied make with "OpenCV=1"
https://github.com/opencv/opencv/pull/11605 The lastest 3.4 tree of opencv has already fix C api bug.
@AlexeyAB Sir, I am getting error when I try to make darknet-master I have changed opencv=1; Gpu=1; cuda=1 in the make file.Can you please help me to solve this error The error is :
manasa@isemes:~/Desktop/darknet-master$ make
chmod +x *.sh
nvcc -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=[sm_50,compute_50] -gencode arch=compute_52,code=[sm_52,compute_52] -gencode arch=compute_61,code=[sm_61,compute_61] -Iinclude/ -DGPU -I/usr/local/cuda/include/ -DCUDNN --compiler-options "-Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DGPU -DCUDNN -I/usr/local/cudnn/include" -c ./src/convolutional_kernels.cu -o obj/convolutional_kernels.o
In file included from /usr/local/cuda/include/cuda_runtime.h:120:0,
from
^
Hey @ManasaNadimpalli I read your error message, and I think the error is related to your CUDA compiler. You should check your CUDA version and create a new issue to report this problem.
@e8035669 Ok. I will check that and try again. Thank you sir.
@e8035669 Ok. I will check that and try again. Thank you sir.
Sir, I am training 1 class and changed the cfg file accordingly with filters=18 .As there is some problem with cuda, I changed GPU=0; OPENCV=1;CUDA=0 and train the output is like manasa@isemes:~/Desktop/darknet-master$ ./darknet detector train cfg/obj.data yolov3-binary.cfg darknet53.conv.74 yolov3-binary layer filters size input output 0 conv 32 3 x 3 / 1 416 x 416 x 3 -> 416 x 416 x 32 0.299 BF 1 conv 64 3 x 3 / 2 416 x 416 x 32 -> 208 x 208 x 64 1.595 BF 2 conv 32 1 x 1 / 1 208 x 208 x 64 -> 208 x 208 x 32 0.177 BF 3 conv 64 3 x 3 / 1 208 x 208 x 32 -> 208 x 208 x 64 1.595 BF 4 Shortcut Layer: 1 5 conv 128 3 x 3 / 2 208 x 208 x 64 -> 104 x 104 x 128 1.595 BF 6 conv 64 1 x 1 / 1 104 x 104 x 128 -> 104 x 104 x 64 0.177 BF 7 conv 128 3 x 3 / 1 104 x 104 x 64 -> 104 x 104 x 128 1.595 BF 8 Shortcut Layer: 5 9 conv 64 1 x 1 / 1 104 x 104 x 128 -> 104 x 104 x 64 0.177 BF 10 conv 128 3 x 3 / 1 104 x 104 x 64 -> 104 x 104 x 128 1.595 BF 11 Shortcut Layer: 8 12 conv 256 3 x 3 / 2 104 x 104 x 128 -> 52 x 52 x 256 1.595 BF 13 conv 128 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 128 0.177 BF 14 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF 15 Shortcut Layer: 12 16 conv 128 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 128 0.177 BF 17 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF 18 Shortcut Layer: 15 19 conv 128 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 128 0.177 BF 20 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF 21 Shortcut Layer: 18 22 conv 128 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 128 0.177 BF 23 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF 24 Shortcut Layer: 21 25 conv 128 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 128 0.177 BF 26 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF 27 Shortcut Layer: 24 28 conv 128 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 128 0.177 BF 29 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF 30 Shortcut Layer: 27 31 conv 128 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 128 0.177 BF 32 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF 33 Shortcut Layer: 30 34 conv 128 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 128 0.177 BF 35 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF 36 Shortcut Layer: 33 37 conv 512 3 x 3 / 2 52 x 52 x 256 -> 26 x 26 x 512 1.595 BF 38 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF 39 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF 40 Shortcut Layer: 37 41 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF 42 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF 43 Shortcut Layer: 40 44 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF 45 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF 46 Shortcut Layer: 43 47 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF 48 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF 49 Shortcut Layer: 46 50 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF 51 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF 52 Shortcut Layer: 49 53 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF 54 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF 55 Shortcut Layer: 52 56 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF 57 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF 58 Shortcut Layer: 55 59 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF 60 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF 61 Shortcut Layer: 58 62 conv 1024 3 x 3 / 2 26 x 26 x 512 -> 13 x 13 x1024 1.595 BF 63 conv 512 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 512 0.177 BF 64 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF 65 Shortcut Layer: 62 66 conv 512 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 512 0.177 BF 67 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF 68 Shortcut Layer: 65 69 conv 512 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 512 0.177 BF 70 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF 71 Shortcut Layer: 68 72 conv 512 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 512 0.177 BF 73 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF 74 Shortcut Layer: 71 75 conv 512 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 512 0.177 BF 76 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF 77 conv 512 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 512 0.177 BF 78 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF 79 conv 512 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 512 0.177 BF 80 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF 81 conv 18 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 18 0.006 BF 82 yolo 83 route 79 84 conv 256 1 x 1 / 1 13 x 13 x 512 -> 13 x 13 x 256 0.044 BF 85 upsample 2x 13 x 13 x 256 -> 26 x 26 x 256 86 route 85 61 87 conv 256 1 x 1 / 1 26 x 26 x 768 -> 26 x 26 x 256 0.266 BF 88 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF 89 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF 90 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF 91 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF 92 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF 93 conv 18 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 18 0.012 BF 94 yolo 95 route 91 96 conv 128 1 x 1 / 1 26 x 26 x 256 -> 26 x 26 x 128 0.044 BF 97 upsample 2x 26 x 26 x 128 -> 52 x 52 x 128 98 route 97 36 99 conv 128 1 x 1 / 1 52 x 52 x 384 -> 52 x 52 x 128 0.266 BF 100 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF 101 conv 128 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 128 0.177 BF 102 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF 103 conv 128 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 128 0.177 BF 104 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF 105 conv 18 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 18 0.025 BF 106 yolo Total BFLOPS 65.290 Loading weights from darknet53.conv.74... seen 64 Done! Learning Rate: 0.001, Momentum: 0.9, Decay: 0.0005 If error occurs - run training with flag: -dont_show Resizing 608 x 608
Wrong annotation: class_id = 1. But class_id should be [from 0 to 0]
Wrong annotation: class_id = 1. But class_id should be [from 0 to 0]
Wrong annotation: class_id = 1. But class_id should be [from 0 to 0]
Here what does the class_id should be from 0 to 0 mean?
Hey @ManasaNadimpalli
This problem is at your txt file of dataset.
We know the annotation format is <object-class> <x> <y> <width> <height>
The <object-class>
number is start from zero, not 1.
I am facing this error when running make file. can anyone guide?
gcc -Iinclude/ -Isrc/ -DOPENCV pkg-config --cflags opencv
-DGPU -I/usr/local/cuda-9.1/include/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -DOPENCV -DGPU obj/captcha.o obj/lsd.o obj/super.o obj/art.o obj/tag.o obj/cifar.o obj/go.o obj/rnn.o obj/segmenter.o obj/regressor.o obj/classifier.o obj/coco.o obj/yolo.o obj/detector.o obj/nightmare.o obj/darknet.o libdarknet.a -o darknet -lm -pthread pkg-config --libs opencv
-L/usr/local/cuda-9.1/lib64 -lcuda -lcudart -lcublas -lcurand -lstdc++ libdarknet.a
obj/darknet.o: In function main': darknet.c:(.text.startup+0x3ca): undefined reference to
run_isegmenter'
collect2: error: ld returned 1 exit status
Makefile:76: recipe for target 'darknet' failed
make: *** [darknet] Error 1
to solve this, please check your cuda_path again. ex: default:: /usr/local/cuda/ --> /usr/local/cuda-10.0/
Hello, You first should set all flag to 0 to see if it can build, then set to 1 for each flag to see where the error comes from. This kind of error is not really obvious then we should better fix bug step by step.
GPU=0 CUDNN=0 OPENCV=0 OPENMP=0 DEBUG=0
Quoc-Nhat Le
Image Processing & Signal Analysis Lab Myongji University (Yongin-si campus) Cheoin-gu, Yongin-si, Gyeonggi-do 17058, Rep. of Korea
T. (+82)103 473 1994
quocnhatute@gmail.com quocnhatute@gmail.com
On Tue, May 12, 2020 at 7:44 AM JunseongAHN notifications@github.com wrote:
Hello, Is this bug solved? I check with Opencv 3.4.6 and Opencv 4.1.1 on the raspberry pi with the version: Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster but both gave me the same error. I read all the threads, but I don't see any good solution.
/usr/bin/ld: libdarknet.a(image_opencv.o):image_opencv.cpp:(.text._ZN7cvflann7anyimpl14big_any_policyIN2cv6StringEE13static_deleteEPPv[_ZN7cvflann7anyimpl14big_any_policyIN2cv6StringEE13static_deleteEPPv]+0x18): more undefined references to cv::String::deallocate() follow collect2: error: ld returned 1 exit status make: *** [Makefile:77: darknet] Error 1
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pjreddie/darknet/issues/502#issuecomment-627041297, or unsubscribe https://github.com/notifications/unsubscribe-auth/AES7ATFFLSQGMT2423NV72LRRCLXRANCNFSM4ES43VWA .
I resolved it using following steps:
sudo apt install libopencv-dev
python -c "import cv2; print(cv2.__version__);
(In my case, bashrc was setting up env vars and another installation of opencv was active and I had to comment out relevant lines in bashrc)Well not much of use, just got 2 FPS :(
Versions (other versions might also work): Opencv: 4.2.0 No CUDA/CUDNN in use
Thank you.
I have the same issue... Jesus, I am tired with those different dependencies and compatibility.
Opencv 3.4.4 works correctly.
I had install opencv (works fine) but wen i make the project i got this error:
in english:
Makefile:85: set of instructions for the "obj / gemm.o" target failed
orMakefile:85: recipe for target 'obj/gemm.o' failed
I've just OpenCV, no CUDA. Part of Makefile I edited
Any solution?