walktree / libtorch-yolov3

A Libtorch implementation of the YOLO v3 object detection algorithm
450 stars 131 forks source link

i use libtorch 1.3.0 cuda 10.1 in linux, Error when compile, Can you tell me how to solve it #46

Open PyNancy opened 4 years ago

PyNancy commented 4 years ago

CMakeFiles/yolo-app.dir/main.cpp.o: In function main': main.cpp:(.text+0x1012): multiple definition ofmain' CMakeFiles/yolo-app.dir/detect_cuda_version.cc.o:detect_cuda_version.cc:(.text+0x0): first defined here CMakeFiles/yolo-app.dir/detect_cuda_compute_capabilities.cpp.o: In function main': detect_cuda_compute_capabilities.cpp:(.text+0x0): multiple definition ofmain' CMakeFiles/yolo-app.dir/detect_cuda_version.cc.o:detect_cuda_version.cc:(.text+0x0): first defined here collect2: error: ld returned 1 exit status CMakeFiles/yolo-app.dir/build.make:233: recipe for target 'yolo-app' failed make[3]: [yolo-app] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/yolo-app.dir/all' failed make[2]: [CMakeFiles/yolo-app.dir/all] Error 2 CMakeFiles/Makefile2:79: recipe for target 'CMakeFiles/yolo-app.dir/rule' failed make[1]: [CMakeFiles/yolo-app.dir/rule] Error 2 Makefile:118: recipe for target 'yolo-app' failed make: [yolo-app] Error 2

WANGCHAO1996 commented 3 years ago

CMakeFiles/yolo-app.dir/build.make:81: recipe for target 'CMakeFiles/yolo-app.dir/Darknet.cpp.o' failed make[2]: [CMakeFiles/yolo-app.dir/Darknet.cpp.o] Error 1 CMakeFiles/Makefile2:94: recipe for target 'CMakeFiles/yolo-app.dir/all' failed make[1]: [CMakeFiles/yolo-app.dir/all] Error 2 Makefile:102: recipe for target 'all' failed make: *** [all] Error 2 你好,我也遇到了问题请问怎么解决的