hjimce / darknet_mobilenet

mobilenet 与darknet yolo
Other
94 stars 52 forks source link

ld: symbol(s) not found for architecture x86_64 (macOS) #5

Open loretoparisi opened 6 years ago

loretoparisi commented 6 years ago

I get this error when compiling on macOS 10.12

[loretoparisi@:mbploreto darknet_mobilenet]$ make
mkdir -p obj
mkdir -p backup
mkdir -p results
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/gemm.c -o obj/gemm.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/utils.c -o obj/utils.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/cuda.c -o obj/cuda.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/deconvolutional_layer.c -o obj/deconvolutional_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/depthwise_convolutional_layer.c -o obj/depthwise_convolutional_layer.o
./src/depthwise_convolutional_layer.c:347:10: warning: unused variable 'orig' [-Wunused-variable]
        network orig = net;
                ^
./src/depthwise_convolutional_layer.c:410:9: warning: unused variable 'i' [-Wunused-variable]
    int i;
        ^
./src/depthwise_convolutional_layer.c:474:9: warning: unused variable 'i' [-Wunused-variable]
    int i;
        ^
3 warnings generated.
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/convolutional_layer.c -o obj/convolutional_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/list.c -o obj/list.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/image.c -o obj/image.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/activations.c -o obj/activations.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/im2col.c -o obj/im2col.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/col2im.c -o obj/col2im.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/blas.c -o obj/blas.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/crop_layer.c -o obj/crop_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/dropout_layer.c -o obj/dropout_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/maxpool_layer.c -o obj/maxpool_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/softmax_layer.c -o obj/softmax_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/data.c -o obj/data.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/matrix.c -o obj/matrix.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/network.c -o obj/network.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/connected_layer.c -o obj/connected_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/cost_layer.c -o obj/cost_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/parser.c -o obj/parser.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/option_list.c -o obj/option_list.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/detection_layer.c -o obj/detection_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/route_layer.c -o obj/route_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/box.c -o obj/box.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/normalization_layer.c -o obj/normalization_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/avgpool_layer.c -o obj/avgpool_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/layer.c -o obj/layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/local_layer.c -o obj/local_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/shortcut_layer.c -o obj/shortcut_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/activation_layer.c -o obj/activation_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/rnn_layer.c -o obj/rnn_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/gru_layer.c -o obj/gru_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/crnn_layer.c -o obj/crnn_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/demo.c -o obj/demo.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/batchnorm_layer.c -o obj/batchnorm_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/region_layer.c -o obj/region_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/reorg_layer.c -o obj/reorg_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/tree.c -o obj/tree.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/lstm_layer.c -o obj/lstm_layer.o
gcc -Wall -Wfatal-errors -fPIC -Ofast -shared obj/gemm.o obj/utils.o obj/cuda.o obj/deconvolutional_layer.o obj/depthwise_convolutional_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/box.o obj/normalization_layer.o obj/avgpool_layer.o obj/layer.o obj/local_layer.o obj/shortcut_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 -o libdarknet.so -lm -pthread 
clang: warning: argument unused during compilation: '-pthread' [-Wunused-command-line-argument]
ar rcs libdarknet.a obj/gemm.o obj/utils.o obj/cuda.o obj/deconvolutional_layer.o obj/depthwise_convolutional_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/box.o obj/normalization_layer.o obj/avgpool_layer.o obj/layer.o obj/local_layer.o obj/shortcut_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
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./examples/captcha.c -o obj/captcha.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./examples/lsd.c -o obj/lsd.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./examples/super.c -o obj/super.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./examples/voxel.c -o obj/voxel.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./examples/art.c -o obj/art.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./examples/tag.c -o obj/tag.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./examples/cifar.c -o obj/cifar.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./examples/go.c -o obj/go.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./examples/rnn.c -o obj/rnn.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./examples/rnn_vid.c -o obj/rnn_vid.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./src/compare.c -o obj/compare.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./examples/segmenter.c -o obj/segmenter.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./examples/regressor.c -o obj/regressor.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./examples/classifier.c -o obj/classifier.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./examples/coco.c -o obj/coco.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./examples/dice.c -o obj/dice.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./examples/yolo.c -o obj/yolo.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./examples/detector.c -o obj/detector.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./examples/writing.c -o obj/writing.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./examples/nightmare.c -o obj/nightmare.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./examples/swag.c -o obj/swag.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast -c ./examples/darknet.c -o obj/darknet.o
gcc -Iinclude/ -Isrc/ -Wall -Wfatal-errors -fPIC -Ofast obj/captcha.o obj/lsd.o obj/super.o obj/voxel.o obj/art.o obj/tag.o obj/cifar.o obj/go.o obj/rnn.o obj/rnn_vid.o obj/compare.o obj/segmenter.o obj/regressor.o obj/classifier.o obj/coco.o obj/dice.o obj/yolo.o obj/detector.o obj/writing.o obj/nightmare.o obj/swag.o obj/darknet.o libdarknet.a -o darknet -lm -pthread  libdarknet.a
clang: warning: argument unused during compilation: '-pthread' [-Wunused-command-line-argument]
ld: warning: ignoring file libdarknet.a, file was built for archive which is not the architecture being linked (x86_64): libdarknet.a
Undefined symbols for architecture x86_64:
  "_axpy_cpu", referenced from:
      _test_cifar_multi in cifar.o
      _predict_move in go.o
      _validate_classifier_10 in classifier.o
      _validate_classifier_multi in classifier.o
      _optimize_picture in nightmare.o
      _reconstruct_picture in nightmare.o
      _average in darknet.o
      ...
  "_backward_network", referenced from:
      _optimize_picture in nightmare.o
      _reconstruct_picture in nightmare.o
  "_basecfg", referenced from:
      _train_captcha in captcha.o
      _train_super in super.o
      _train_voxel in voxel.o
      _train_tag in tag.o
      _train_cifar in cifar.o
      _train_cifar_distill in cifar.o
      _train_go in go.o
      ...
  "_box_iou", referenced from:
      _validate_coco_recall in coco.o
      _validate_yolo_recall in yolo.o
      _validate_detector_recall in detector.o
  "_change_leaves", referenced from:
      _validate_classifier_single in classifier.o
  "_composite_3d", referenced from:
      _main in darknet.o
  "_constrain_image", referenced from:
      _test_lsd in lsd.o
      _optimize_picture in nightmare.o
      _reconstruct_picture in nightmare.o
  "_copy_cpu", referenced from:
      _predict_move in go.o
      _train_char_rnn in rnn.o
      _validate_detector_flip in detector.o
      _optimize_picture in nightmare.o
      _oneoff in darknet.o
  "_copy_image", referenced from:
      _run_nightmare in nightmare.o
      _mkimg in darknet.o
  "_crop_image", referenced from:
      _test_lsd in lsd.o
      _validate_classifier_10 in classifier.o
      _validate_classifier_single in classifier.o
      _try_classifier in classifier.o
      _label_classifier in classifier.o
      _optimize_picture in nightmare.o
      _run_nightmare in nightmare.o
      ...
  "_csv_to_matrix", referenced from:
      _train_cifar_distill in cifar.o
      _eval_cifar_csv in cifar.o
      _run_cifar in cifar.o
  "_demo", referenced from:
      _run_coco in coco.o
      _run_yolo in yolo.o
      _run_detector in detector.o
     (maybe you meant: _demo_classifier, _demo_regressor , _demo_art , _demo_segmenter )
  "_denormalize_connected_layer", referenced from:
      _reset_normalize_net in darknet.o
      _denormalize_net in darknet.o
  "_denormalize_convolutional_layer", referenced from:
      _reset_normalize_net in darknet.o
      _denormalize_net in darknet.o
  "_denormalize_depthwise_convolutional_layer", referenced from:
      _reset_normalize_net in darknet.o
      _denormalize_net in darknet.o
  "_do_nms", referenced from:
      _validate_detector_recall in detector.o
  "_do_nms_obj", referenced from:
      _test_detector in detector.o
  "_do_nms_sort", referenced from:
      _validate_coco in coco.o
      _test_coco in coco.o
      _validate_yolo in yolo.o
      _test_yolo in yolo.o
      _validate_detector_flip in detector.o
      _validate_detector in detector.o
  "_draw_detections", referenced from:
      _test_coco in coco.o
      _test_yolo in yolo.o
      _test_detector in detector.o
  "_error", referenced from:
      _get_rnn_token_data in rnn.o
      _get_rnn_data in rnn.o
      _valid_tactic_rnn in rnn.o
      _valid_char_rnn in rnn.o
  "_fgetl", referenced from:
      _engine_go in go.o
      _test_go in go.o
      _score_game in go.o
      _read_tokens in rnn.o
      _vec_char_rnn in rnn.o
  "_fill_image", referenced from:
      _mkimg in darknet.o
  "_find_arg", referenced from:
      _run_lsd in lsd.o
      _run_super in super.o
      _run_tag in tag.o
      _run_go in go.o
      _run_char_rnn in rnn.o
      _run_segmenter in segmenter.o
      _run_regressor in regressor.o
      ...
  "_find_char_arg", referenced from:
      _run_lsd in lsd.o
      _run_go in go.o
      _run_char_rnn in rnn.o
      _run_segmenter in segmenter.o
      _run_regressor in regressor.o
      _run_classifier in classifier.o
      _run_coco in coco.o
      ...
  "_find_float_arg", referenced from:
      _run_char_rnn in rnn.o
      _run_coco in coco.o
      _run_yolo in yolo.o
      _run_detector in detector.o
      _run_nightmare in nightmare.o
      _main in darknet.o
  "_find_int_arg", referenced from:
      _run_art in art.o
      _run_char_rnn in rnn.o
      _run_segmenter in segmenter.o
      _run_regressor in regressor.o
      _run_classifier in classifier.o
      _run_coco in coco.o
      _run_yolo in yolo.o
      ...
  "_find_replace", referenced from:
      _validate_coco_recall in coco.o
      _validate_yolo_recall in yolo.o
      _validate_detector_recall in detector.o
  "_flip_image", referenced from:
      _test_cifar_multi in cifar.o
      _test_cifar_csv in cifar.o
      _test_cifar_csvtrain in cifar.o
      _random_go_moves in go.o
      _predict_move in go.o
      _validate_classifier_10 in classifier.o
      _validate_classifier_multi in classifier.o
      ...
  "_float_to_image", referenced from:
      _test_cifar_multi in cifar.o
      _extract_cifar in cifar.o
      _test_cifar_csv in cifar.o
      _test_cifar_csvtrain in cifar.o
      _random_go_moves in go.o
      _predict_move in go.o
      _train_segmenter in segmenter.o
      ...
  "_forward_network", referenced from:
      _optimize_picture in nightmare.o
      _reconstruct_picture in nightmare.o
  "_free_data", referenced from:
      _train_captcha in captcha.o
      _train_super in super.o
      _train_voxel in voxel.o
      _train_tag in tag.o
      _train_cifar in cifar.o
      _train_cifar_distill in cifar.o
      _test_cifar in cifar.o
      ...
  "_free_image", referenced from:
      _test_captcha in captcha.o
      _valid_captcha in captcha.o
      _test_dcgan in lsd.o
      _test_lsd in lsd.o
      _test_super in super.o
      _test_voxel in voxel.o
      _test_tag in tag.o
      ...
  "_free_list", referenced from:
      _train_tag in tag.o
      _validate_compare in compare.o
      _SortMaster3000 in compare.o
      _BattleRoyaleWithCheese in compare.o
      _train_segmenter in segmenter.o
      _train_regressor in regressor.o
      _train_classifier in classifier.o
      ...
  "_free_matrix", referenced from:
      _eval_cifar_csv in cifar.o
      _run_cifar in cifar.o
      _validate_compare in compare.o
      _test_classifier in classifier.o
  "_free_network", referenced from:
      _train_tag in tag.o
      _train_cifar in cifar.o
      _train_cifar_distill in cifar.o
      _train_go in go.o
      _train_segmenter in segmenter.o
      _train_regressor in regressor.o
      _train_classifier in classifier.o
      ...
  "_free_ptrs", referenced from:
      _train_tag in tag.o
      _train_cifar in cifar.o
      _train_cifar_distill in cifar.o
      _train_segmenter in segmenter.o
      _train_regressor in regressor.o
      _train_classifier in classifier.o
      _test_detector in detector.o
      ...
  "_get_current_batch", referenced from:
      _train_super in super.o
      _train_voxel in voxel.o
      _train_tag in tag.o
      _train_cifar in cifar.o
      _train_cifar_distill in cifar.o
      _train_go in go.o
      _train_char_rnn in rnn.o
      ...
  "_get_current_rate", referenced from:
      _train_super in super.o
      _train_voxel in voxel.o
      _train_tag in tag.o
      _train_cifar in cifar.o
      _train_cifar_distill in cifar.o
      _train_go in go.o
      _train_char_rnn in rnn.o
      ...
  "_get_detection_boxes", referenced from:
      _validate_coco in coco.o
      _validate_coco_recall in coco.o
      _test_coco in coco.o
      _validate_yolo in yolo.o
      _validate_yolo_recall in yolo.o
      _test_yolo in yolo.o
  "_get_labels", referenced from:
      _train_captcha in captcha.o
      _test_captcha in captcha.o
      _valid_captcha in captcha.o
      _test_tag in tag.o
      _train_cifar in cifar.o
      _train_cifar_distill in cifar.o
      _train_classifier in classifier.o
      ...
  "_get_network_image", referenced from:
      _test_super in super.o
      _test_voxel in voxel.o
      _train_segmenter in segmenter.o
      _predict_segmenter in segmenter.o
      _train_writing in writing.o
      _test_writing in writing.o
      _run_nightmare in nightmare.o
      ...
  "_get_network_image_layer", referenced from:
      _test_dcgan in lsd.o
      _test_lsd in lsd.o
  "_get_paths", referenced from:
      _train_captcha in captcha.o
      _valid_captcha in captcha.o
      _train_super in super.o
      _train_voxel in voxel.o
      _train_tag in tag.o
      _train_compare in compare.o
      _validate_compare in compare.o
      ...
  "_get_region_boxes", referenced from:
      _validate_detector_flip in detector.o
      _validate_detector in detector.o
      _validate_detector_recall in detector.o
      _test_detector in detector.o
  "_get_weights", referenced from:
      _mkimg in darknet.o
  "_ghost_image", referenced from:
      _mkimg in darknet.o
  "_gpu_index", referenced from:
      _run_classifier in classifier.o
      _average in darknet.o
      _operations in darknet.o
      _oneoff in darknet.o
      _oneoff2 in darknet.o
      _partial in darknet.o
      _rescale_net in darknet.o
      ...
  "_grayscale_image_3c", referenced from:
      _test_lsd in lsd.o
  "_hierarchy_predictions", referenced from:
      _validate_classifier_10 in classifier.o
      _validate_classifier_full in classifier.o
      _validate_classifier_single in classifier.o
      _validate_classifier_multi in classifier.o
      _predict_classifier in classifier.o
  "_letterbox_image", referenced from:
      _predict_segmenter in segmenter.o
      _predict_regressor in regressor.o
      _test_detector in detector.o
      _run_nightmare in nightmare.o
  "_list_to_array", referenced from:
      _train_captcha in captcha.o
      _valid_captcha in captcha.o
      _train_super in super.o
      _train_voxel in voxel.o
      _train_tag in tag.o
      _train_compare in compare.o
      _validate_compare in compare.o
      ...
  "_load_all_cifar10", referenced from:
      _train_cifar in cifar.o
      _train_cifar_distill in cifar.o
      _extract_cifar in cifar.o
      _test_cifar_csvtrain in cifar.o
  "_load_alphabet", referenced from:
      _test_coco in coco.o
      _test_yolo in yolo.o
      _test_detector in detector.o
  "_load_cifar10_data", referenced from:
      _test_cifar_multi in cifar.o
      _test_cifar in cifar.o
      _extract_cifar in cifar.o
      _test_cifar_csv in cifar.o
      _eval_cifar_csv in cifar.o
      _run_cifar in cifar.o
  "_load_data", referenced from:
      _train_segmenter in segmenter.o
      _train_regressor in regressor.o
      _train_classifier in classifier.o
      _train_detector in detector.o
  "_load_data_in_thread", referenced from:
      _train_captcha in captcha.o
      _train_super in super.o
      _train_voxel in voxel.o
      _train_tag in tag.o
      _train_compare in compare.o
      _validate_compare in compare.o
      _validate_classifier_crop in classifier.o
      ...
  "_load_data_old", referenced from:
      _train_dice in dice.o
      _validate_dice in dice.o
  "_load_image_color", referenced from:
      _test_captcha in captcha.o
      _valid_captcha in captcha.o
      _test_lsd in lsd.o
      _test_super in super.o
      _test_voxel in voxel.o
      _test_tag in tag.o
      _bbox_comparator in compare.o
      ...
  "_load_network", referenced from:
      _train_go in go.o
      _train_classifier in classifier.o
      _train_detector in detector.o
      _mkimg in darknet.o
  "_load_weights", referenced from:
      _train_captcha in captcha.o
      _test_captcha in captcha.o
      _valid_captcha in captcha.o
      _test_dcgan in lsd.o
      _test_lsd in lsd.o
      _train_super in super.o
      _test_super in super.o
      ...
  "_load_weights_upto", referenced from:
      _oneoff2 in darknet.o
      _partial in darknet.o
      _main in darknet.o
  "_mag_array", referenced from:
      _reconstruct_picture in nightmare.o
  "_make_image", referenced from:
      _test_dcgan in lsd.o
      _validate_detector_flip in detector.o
      _optimize_picture in nightmare.o
      _reconstruct_picture in nightmare.o
      _run_nightmare in nightmare.o
      _speed in darknet.o
      _mkimg in darknet.o
      ...
  "_make_matrix", referenced from:
      _random_go_moves in go.o
  "_mask_to_rgb", referenced from:
      _train_segmenter in segmenter.o
      _predict_segmenter in segmenter.o
  "_matrix_add_matrix", referenced from:
      _train_cifar_distill in cifar.o
      _test_cifar_csv in cifar.o
      _test_cifar_csvtrain in cifar.o
  "_matrix_to_csv", referenced from:
      _test_cifar_csv in cifar.o
      _test_cifar_csvtrain in cifar.o
  "_matrix_topk_accuracy", referenced from:
      _test_cifar_csv in cifar.o
      _test_cifar_csvtrain in cifar.o
      _eval_cifar_csv in cifar.o
      _run_cifar in cifar.o
  "_max_index", referenced from:
      _test_cifar_multi in cifar.o
      _extract_cifar in cifar.o
      _generate_move in go.o
      _valid_go in go.o
      _label_classifier in classifier.o
  "_mean_array", referenced from:
      _calculate_loss in nightmare.o
      _optimize_picture in nightmare.o
  "_network_accuracies", referenced from:
      _test_cifar in cifar.o
      _validate_classifier_crop in classifier.o
      _validate_dice in dice.o
  "_network_predict", referenced from:
      _test_captcha in captcha.o
      _valid_captcha in captcha.o
      _test_dcgan in lsd.o
      _test_lsd in lsd.o
      _test_super in super.o
      _test_voxel in voxel.o
      _test_tag in tag.o
      ...
  "_network_predict_data", referenced from:
      _test_cifar_csv in cifar.o
      _test_cifar_csvtrain in cifar.o
      _validate_compare in compare.o
      _test_classifier in classifier.o
  "_normalize_array", referenced from:
      _optimize_picture in nightmare.o
  "_normalize_cpu", referenced from:
      _try_classifier in classifier.o
  "_normalize_image", referenced from:
      _test_dcgan in lsd.o
  "_option_find_int", referenced from:
      _train_classifier in classifier.o
      _validate_classifier_crop in classifier.o
      _validate_classifier_10 in classifier.o
      _validate_classifier_full in classifier.o
      _validate_classifier_single in classifier.o
      _validate_classifier_multi in classifier.o
      _try_classifier in classifier.o
      ...
  "_option_find_str", referenced from:
      _train_segmenter in segmenter.o
      _train_regressor in regressor.o
      _train_classifier in classifier.o
      _validate_classifier_crop in classifier.o
      _validate_classifier_10 in classifier.o
      _validate_classifier_full in classifier.o
      _validate_classifier_single in classifier.o
      ...
  "_parse_network_cfg", referenced from:
      _train_captcha in captcha.o
      _test_captcha in captcha.o
      _valid_captcha in captcha.o
      _test_dcgan in lsd.o
      _test_lsd in lsd.o
      _train_super in super.o
      _test_super in super.o
      ...
  "_rand_normal", referenced from:
      _test_dcgan in lsd.o
  "_rand_size_t", referenced from:
      _train_char_rnn in rnn.o
  "_random_distort_image", referenced from:
      _mkimg in darknet.o
  "_read_boxes", referenced from:
      _validate_coco_recall in coco.o
      _validate_yolo_recall in yolo.o
      _validate_detector_recall in detector.o
  "_read_data_cfg", referenced from:
      _train_segmenter in segmenter.o
      _train_regressor in regressor.o
      _train_classifier in classifier.o
      _validate_classifier_crop in classifier.o
      _validate_classifier_10 in classifier.o
      _validate_classifier_full in classifier.o
      _validate_classifier_single in classifier.o
      ...
  "_read_intlist", referenced from:
      _run_classifier in classifier.o
  "_read_map", referenced from:
      _validate_detector_flip in detector.o
      _validate_detector in detector.o
  "_rescale_weights", referenced from:
      _rescale_net in darknet.o
      _main in darknet.o
  "_resize_image", referenced from:
      _validate_coco_recall in coco.o
      _test_coco in coco.o
      _validate_yolo_recall in yolo.o
      _test_yolo in yolo.o
      _validate_detector_recall in detector.o
      _test_writing in writing.o
      _optimize_picture in nightmare.o
      ...
  "_resize_min", referenced from:
      _test_lsd in lsd.o
      _test_tag in tag.o
      _validate_classifier_full in classifier.o
      _validate_classifier_single in classifier.o
      _validate_classifier_multi in classifier.o
      _try_classifier in classifier.o
      _predict_classifier in classifier.o
      ...
  "_resize_network", referenced from:
      _test_super in super.o
      _test_voxel in voxel.o
      _test_tag in tag.o
      _validate_classifier_full in classifier.o
      _validate_classifier_multi in classifier.o
      _predict_classifier in classifier.o
      _train_detector in detector.o
      ...
  "_rgbgr_weights", referenced from:
      _rgbgr_net in darknet.o
      _main in darknet.o
  "_rotate_image", referenced from:
      _run_nightmare in nightmare.o
  "_rotate_image_cw", referenced from:
      _random_go_moves in go.o
      _predict_move in go.o
      _mkimg in darknet.o
  "_sample_array", referenced from:
      _generate_move in go.o
      _test_char_rnn in rnn.o
      _test_tactic_rnn in rnn.o
  "_save_image", referenced from:
      _test_dcgan in lsd.o
      _test_lsd in lsd.o
      _test_super in super.o
      _test_voxel in voxel.o
      _test_coco in coco.o
      _test_yolo in yolo.o
      _test_detector in detector.o
      ...
  "_save_image_png", referenced from:
      _extract_cifar in cifar.o
  "_save_weights", referenced from:
      _train_captcha in captcha.o
      _train_super in super.o
      _train_voxel in voxel.o
      _train_tag in tag.o
      _train_cifar in cifar.o
      _train_cifar_distill in cifar.o
      _train_go in go.o
      ...
  "_save_weights_upto", referenced from:
      _oneoff2 in darknet.o
      _partial in darknet.o
      _main in darknet.o
  "_scal_cpu", referenced from:
      _predict_move in go.o
      _reconstruct_picture in nightmare.o
      _average in darknet.o
      _oneoff in darknet.o
  "_scale_matrix", referenced from:
      _train_cifar_distill in cifar.o
      _test_cifar_csv in cifar.o
      _test_cifar_csvtrain in cifar.o
  "_sec", referenced from:
      _train_captcha in captcha.o
      _test_dcgan in lsd.o
      _test_lsd in lsd.o
      _train_super in super.o
      _test_super in super.o
      _train_voxel in voxel.o
      _test_voxel in voxel.o
      ...
  "_set_batch_network", referenced from:
      _test_captcha in captcha.o
      _valid_captcha in captcha.o
      _test_dcgan in lsd.o
      _test_lsd in lsd.o
      _test_super in super.o
      _test_voxel in voxel.o
      _test_tag in tag.o
      ...
  "_show_image", referenced from:
      _test_dcgan in lsd.o
      _test_lsd in lsd.o
      _train_segmenter in segmenter.o
      _predict_segmenter in segmenter.o
      _test_coco in coco.o
      _test_yolo in yolo.o
      _test_writing in writing.o
      ...
  "_shuffle", referenced from:
      _BattleRoyaleWithCheese in compare.o
  "_sorta_shuffle", referenced from:
      _BattleRoyaleWithCheese in compare.o
  "_statistics_connected_layer", referenced from:
      _statistics_net in darknet.o
  "_strip", referenced from:
      _vec_char_rnn in rnn.o
  "_test_resize", referenced from:
      _main in darknet.o
  "_threshold_image", referenced from:
      _test_writing in writing.o
  "_top_k", referenced from:
      _generate_move in go.o
      _test_go in go.o
      _validate_classifier_10 in classifier.o
      _validate_classifier_full in classifier.o
      _validate_classifier_single in classifier.o
      _validate_classifier_multi in classifier.o
      _predict_classifier in classifier.o
      ...
  "_top_predictions", referenced from:
      _test_captcha in captcha.o
      _test_tag in tag.o
      _try_classifier in classifier.o
      _test_dice in dice.o
  "_train_network", referenced from:
      _train_captcha in captcha.o
      _train_super in super.o
      _train_voxel in voxel.o
      _train_tag in tag.o
      _train_go in go.o
      _train_compare in compare.o
      _train_segmenter in segmenter.o
      ...
  "_train_network_datum", referenced from:
      _train_char_rnn in rnn.o
  "_train_network_sgd", referenced from:
      _train_cifar in cifar.o
      _train_cifar_distill in cifar.o
  "_variance_array", referenced from:
      _calculate_loss in nightmare.o
      _optimize_picture in nightmare.o
  "_visualize_network", referenced from:
      _visualize in darknet.o
      _main in darknet.o
  "_zero_objectness", referenced from:
      _run_nightmare in nightmare.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)
make: *** [darknet] Error 1

NOTE Since the darknet compiles ok on macOS, will this due to some pre-compiled binary for a different arch settings? Also I have set

GPU=0
CUDNN=0
OPENCV=0
DEBUG=0
ARCH= -gencode arch=compute_52,code=compute_52
loretoparisi commented 6 years ago

[UPDATE] Okay, I have partially solved it linking the dyn libraries from darknet macOS build. Is it ok or did you changed any files there?

alkamir commented 6 years ago

please help me how you solve this problem ?

kooscode commented 6 years ago

having the same problem trying to use darknet.a library in my own C++ app..

Any help would be greatly appreciated..

_Undefined symbols for architecture x86_64: "load_network(char, char, int)", referenced from: _main in main.o ld: symbol(s) not found for architecture x86_64_

mosluce commented 6 years ago

Some problem

OS:

Log