Open EduardoABarrera opened 4 years ago
On the macOS you may try my fork at https://github.com/sowson/darknet thanks!
same error in mac 10.15.5
Any update on this? - where do I find install instructions in general, simple things like what version of OpenCV is required?
Hi all,
While following the instructions for installation from here I am unable to
make
once inside the darknet folder. I've made no changes to the Makefile or any file inside the repo. When Imake
I am greeted by this message:eduardobarrera@Eduardos-MacBook-Pro darknet % make gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast 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/instance-segmenter.o obj/darknet.o libdarknet.a -o darknet -lm -pthread libdarknet.a ld: warning: ignoring file libdarknet.a, building for macOS-x86_64 but attempting to link with file built for macOS-x86_64 Undefined symbols for architecture x86_64: "_axpy_cpu", referenced from: _slerp in lsd.o _inter_dcgan in lsd.o _test_cifar_multi in cifar.o _predict_move2 in go.o _network_predict_rotations in go.o _validate_classifier_10 in classifier.o _validate_classifier_multi in classifier.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_tag in tag.o _train_cifar in cifar.o _train_cifar_distill in cifar.o _train_go in go.o _valid_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 "_center_crop_image", referenced from: _validate_classifier_single in classifier.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_move2 in go.o _expand in go.o _copy_board in go.o _select_mcts in go.o _legal_go in go.o _run_mcts in go.o _check_ko in go.o ... "_copy_image", referenced from: _inter_dcgan in lsd.o _run_nightmare in nightmare.o _train_isegmenter in instance-segmenter.o _mkimg in darknet.o "_crop_image", referenced from: _test_lsd in lsd.o _validate_classifier_10 in classifier.o _try_classifier in classifier.o _label_classifier in classifier.o _file_output_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_isegmenter, _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 "_do_nms_obj", referenced from: _validate_detector_recall 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 _test_detector in detector.o ... "_dot_cpu", referenced from: _slerp in lsd.o _inter_dcgan in lsd.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_seq2seq_data in rnn.o _get_rnn_data in rnn.o _train_char_rnn 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_cpu", referenced from: _slerp in lsd.o _inter_dcgan in lsd.o "_fill_image", referenced from: _optimize_picture in nightmare.o _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_go in go.o _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_lsd in lsd.o _run_art in art.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 ... "_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_move2 in go.o _network_predict_rotations in go.o _validate_classifier_10 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_move2 in go.o _network_predict_rotations in go.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_tag in tag.o _train_cifar in cifar.o _train_cifar_distill in cifar.o _test_cifar in cifar.o _test_cifar_csv in cifar.o ... "_free_detections", 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 _validate_detector_flip in detector.o ... "_free_image", referenced from: _test_captcha in captcha.o _valid_captcha in captcha.o _inter_dcgan in lsd.o _test_dcgan in lsd.o _test_lsd in lsd.o _test_super in super.o _test_tag in tag.o ... "_free_list", referenced from: _train_tag in tag.o _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 ... "_free_matrix", referenced from: _eval_cifar_csv in cifar.o _run_cifar in cifar.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 _train_isegmenter in instance-segmenter.o ... "_get_base_args", referenced from: _train_detector in detector.o "_get_current_batch", referenced from: _train_super in super.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 _train_segmenter in segmenter.o ... "_get_current_rate", referenced from: _train_super in super.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 _train_segmenter in segmenter.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_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 _validate_detector_flip in detector.o ... "_get_network_image", referenced from: _test_super in super.o _train_segmenter in segmenter.o _predict_segmenter in segmenter.o _run_nightmare in nightmare.o _train_isegmenter in instance-segmenter.o _predict_isegmenter in instance-segmenter.o "_get_network_image_layer", referenced from: _inter_dcgan in lsd.o _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_tag in tag.o _load_files in rnn.o _train_segmenter in segmenter.o _train_regressor in regressor.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 _print_weights 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 _csv_classifier in classifier.o _file_output_classifier in classifier.o ... "_letterbox_image", referenced from: _predict_segmenter in segmenter.o _predict_regressor in regressor.o _predict_classifier in classifier.o _csv_classifier in classifier.o _test_detector in detector.o _run_nightmare in nightmare.o _predict_isegmenter in instance-segmenter.o ... "_list_to_array", referenced from: _train_captcha in captcha.o _valid_captcha in captcha.o _train_super in super.o _train_tag in tag.o _train_segmenter in segmenter.o _train_regressor in regressor.o _train_classifier in classifier.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 _train_isegmenter in instance-segmenter.o "_load_data_in_thread", referenced from: _train_captcha in captcha.o _train_super in super.o _train_tag in tag.o _validate_classifier_crop in classifier.o _test_classifier in classifier.o _train_coco in coco.o _validate_coco in coco.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_tag in tag.o _predict_segmenter in segmenter.o _predict_regressor in regressor.o ... "_load_network", referenced from: _train_captcha in captcha.o _test_captcha in captcha.o _valid_captcha in captcha.o _inter_dcgan in lsd.o _test_dcgan in lsd.o _test_lsd in lsd.o _train_super in super.o ... "_load_weights", referenced from: _self_go in go.o _average in darknet.o _oneoff in darknet.o "_load_weights_upto", referenced from: _oneoff2 in darknet.o _main in darknet.o "_mag_array", referenced from: _slerp in lsd.o _random_unit_vector_image in lsd.o _inter_dcgan in lsd.o _reconstruct_picture in nightmare.o "_make_image", referenced from: _random_unit_vector_image in lsd.o _inter_dcgan in lsd.o _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 ... "_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 _train_isegmenter in instance-segmenter.o _predict_isegmenter in instance-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 _pick_move in go.o _valid_go in go.o _label_classifier in classifier.o "_max_int_index", referenced from: _run_mcts in go.o "_mean_array", referenced from: _calculate_loss in nightmare.o _optimize_picture in nightmare.o "_network_accuracies", referenced from: _test_cifar in cifar.o _run_cifar in cifar.o _validate_classifier_crop in classifier.o "_network_predict", referenced from: _test_captcha in captcha.o _valid_captcha in captcha.o _inter_dcgan in lsd.o _test_dcgan in lsd.o _test_lsd in lsd.o _test_super in super.o _test_tag in tag.o ... (maybe you meant: _network_predict_rotations) "_network_predict_data", referenced from: _test_cifar_csv in cifar.o _test_cifar_csvtrain in cifar.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: _inter_dcgan in lsd.o _test_dcgan in lsd.o "_normalize_image2", referenced from: _train_isegmenter in instance-segmenter.o "_option_find_int", referenced from: _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 _validate_classifier_multi in classifier.o ... "_option_find_int_quiet", referenced from: _train_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: _self_go in go.o _average in darknet.o _speed in darknet.o _operations in darknet.o _oneoff in darknet.o _oneoff2 in darknet.o _main in darknet.o ... "_rand_normal", referenced from: _random_unit_vector_image in lsd.o _inter_dcgan in lsd.o _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 "_random_index_order", referenced from: _network_predict_rotations in go.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_file", referenced from: _load_files in rnn.o _train_char_rnn in rnn.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 "_read_tree", referenced from: _train_classifier in classifier.o "_rescale_weights", referenced from: _rescale_net in darknet.o _main in darknet.o "_reset_network_state", referenced from: _train_char_rnn in rnn.o _test_tactic_rnn_multi in rnn.o _vec_char_rnn in rnn.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 _optimize_picture in nightmare.o _run_nightmare in nightmare.o ... "_resize_max", referenced from: _validate_classifier_multi in classifier.o "_resize_min", referenced from: _test_lsd in lsd.o _test_tag in tag.o _validate_classifier_full in classifier.o _try_classifier in classifier.o _label_classifier in classifier.o _file_output_classifier in classifier.o "_resize_network", referenced from: _test_super in super.o _test_tag in tag.o _train_classifier in classifier.o _validate_classifier_full in classifier.o _validate_classifier_multi in classifier.o _train_detector in detector.o _optimize_picture in nightmare.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_move2 in go.o _network_predict_rotations in go.o _mkimg in darknet.o "_sample_array", referenced from: _pick_move in go.o _test_char_rnn in rnn.o _test_tactic_rnn_multi in rnn.o _test_tactic_rnn in rnn.o "_save_image", referenced from: _inter_dcgan in lsd.o _test_dcgan in lsd.o _test_lsd in lsd.o _test_super in super.o _test_coco in coco.o _test_yolo in yolo.o _test_detector in detector.o ... "_save_image_options", referenced from: _extract_cifar in cifar.o "_save_weights", referenced from: _train_captcha in captcha.o _train_super in super.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 ... "_save_weights_upto", referenced from: _oneoff2 in darknet.o _partial in darknet.o _main in darknet.o "_scal_cpu", referenced from: _predict_move2 in go.o _network_predict_rotations in go.o _reconstruct_picture in nightmare.o _average in darknet.o _oneoff in darknet.o "_scale_array", referenced from: _slerp in lsd.o _random_unit_vector_image in lsd.o _inter_dcgan in lsd.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 _inter_dcgan in lsd.o _test_dcgan in lsd.o _test_lsd in lsd.o _train_super in super.o _test_super in super.o _train_tag in tag.o ... "_set_batch_network", referenced from: _test_captcha in captcha.o _valid_captcha in captcha.o _inter_dcgan in lsd.o _test_dcgan in lsd.o _test_lsd in lsd.o _test_super in super.o _test_tag in tag.o ... "_show_image", referenced from: _inter_dcgan in lsd.o _test_dcgan in lsd.o _test_lsd in lsd.o _test_super in super.o _train_segmenter in segmenter.o _predict_segmenter in segmenter.o _test_coco in coco.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 "_top_k", referenced from: _pick_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 "_train_network", referenced from: _train_captcha in captcha.o _train_super in super.o _train_tag in tag.o _train_go in go.o _train_segmenter in segmenter.o _train_regressor in regressor.o _train_classifier in classifier.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 "_what_time_is_it_now", referenced from: _train_go in go.o _run_mcts in go.o _ponder in go.o _engine_go in go.o _train_segmenter in segmenter.o _train_classifier in classifier.o _csv_classifier in classifier.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 eduardobarrera@Eduardos-MacBook-Pro darknet %
I haven't been able to find a solution online, ( even the one claiming
brew unlink binutils && make clean && make
works did not work for me) but someone recommended considering that this Makefile was configured for a Linux OS–-although pjreddie claimed that darknet was compatible for MacOS on his website.Best