Skip to content

Instantly share code, notes, and snippets.

@mosluce
Created March 28, 2018 09:57
Show Gist options
  • Save mosluce/4b289897c09b1c4bb38c204a2b127d4b to your computer and use it in GitHub Desktop.
Save mosluce/4b289897c09b1c4bb38c204a2b127d4b to your computer and use it in GitHub Desktop.
gcc -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -DOPENCV -shared obj/gemm.o obj/utils.o obj/cuda.o obj/deconvolutional_layer.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/detection_layer.o obj/route_layer.o obj/upsample_layer.o obj/box.o obj/normalization_layer.o obj/avgpool_layer.o obj/layer.o obj/local_layer.o obj/shortcut_layer.o obj/logistic_layer.o obj/activation_layer.o obj/rnn_layer.o obj/gru_layer.o obj/crnn_layer.o obj/demo.o obj/batchnorm_layer.o obj/region_layer.o obj/reorg_layer.o obj/tree.o obj/lstm_layer.o obj/l2norm_layer.o obj/yolo_layer.o -o libdarknet.so -lm -pthread `pkg-config --libs opencv`
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
clang: warning: argument unused during compilation: '-pthread' [-Wunused-command-line-argument]
Undefined symbols for architecture x86_64:
"_cvCreateCameraCapture", referenced from:
_demo in demo.o
"_cvCreateFileCapture", referenced from:
_demo in demo.o
"_cvCreateImage", referenced from:
_show_image in image.o
_save_image_jpg in image.o
_demo in demo.o
"_cvLoadImage", referenced from:
_load_image_cv in image.o
"_cvMoveWindow", referenced from:
_demo in demo.o
"_cvNamedWindow", referenced from:
_show_image_cv in image.o
_demo in demo.o
"_cvQueryFrame", referenced from:
_flush_stream_buffer in image.o
_get_image_from_stream in image.o
_fill_image_from_stream in image.o
"_cvReleaseImage", referenced from:
_show_image in image.o
_load_image_cv in image.o
_save_image_jpg in image.o
"_cvResizeWindow", referenced from:
_demo in demo.o
"_cvSaveImage", referenced from:
_save_image_jpg in image.o
"_cvSetCaptureProperty", referenced from:
_demo in demo.o
"_cvSetWindowProperty", referenced from:
_demo in demo.o
"_cvShowImage", referenced from:
_show_image_cv in image.o
"_cvWaitKey", referenced from:
_test_resize in image.o
_display_in_thread in demo.o
ld: symbol(s) not found for architecture x86_64
clang: fatal error: linker command failed with exit code 1 (use -v to see invocation)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment