AlexeyAB / darknet

YOLOv4 / Scaled-YOLOv4 / YOLO - Neural Networks for Object Detection (Windows and Linux version of Darknet )
http://pjreddie.com/darknet/
Other
21.56k stars 7.94k forks source link

I have error when i trying to build Darknet by vs2022 #8877

Open kmliy901054 opened 6 months ago

kmliy901054 commented 6 months ago

here is output:

Building started at 03:17 AM... 1>------ Build started: Project: darknet, Configuration: Release x64 ------ 2>------ Build started: Project: dark, Configuration: Release x64 ------ 1>getopt.obj : error LNK2005: opterr already defined in utils.obj 1>getopt.obj : error LNK2005: optind already defined in utils.obj 1>getopt.obj : error LNK2005: optopt already defined in utils.obj 1>getopt.obj : error LNK2005: getopt already defined in utils.obj 1>getopt.obj : error LNK2005: getopt_long already defined in utils.obj 1>getopt.obj : error LNK2005: getopt_long_only already defined in utils.obj 2>getopt.obj : error LNK2005: opterr already defined in utils.obj 2>getopt.obj : error LNK2005: optind already defined in utils.obj 2>getopt.obj : error LNK2005: optopt already defined in utils.obj 2>getopt.obj : error LNK2005: getopt already defined in utils.obj 2>getopt.obj : error LNK2005: getopt_long already defined in utils.obj 2>getopt.obj : error LNK2005: getopt_long_only already defined in utils.obj 2> Creating library A:/DP_learn/yolo/build/Release/darknet.lib and object A:/DP_learn/yolo/build/Release/darknet.exp 1>A:\DP_learn\yolo\build\Release\darknet.exe : fatal error LNK1169: One or more multiply defined symbols found 1>Project "darknet.vcxproj" build completed -- Failed. 2>A:\DP_learn\yolo\build\Release\darknet.dll : fatal error LNK1169: One or more multiply defined symbols found 2>Project "dark.vcxproj" build completed -- Failed. 3>------ Skipped Build: Project: PACKAGE, Configuration: Release x64 ------ 3>No project was selected for building for this solution configuration. 4>------ Skipped Build: Project: INSTALL, Configuration: Release x64 ------ 4>No project was selected for building for this solution configuration. ========== Build: 0 succeeded, 2 failed, 4 up-to-date, 2 skipped ========== ========== Build completed at 03:17 AM and took 00.493 seconds ==========

組建已在 上午 03:17 開始... 1>------ 已開始建置: 專案: darknet, 設定: Release x64 ------ 2>------ 已開始建置: 專案: dark, 設定: Release x64 ------ 1>getopt.obj : error LNK2005: opterr 已在 utils.obj 中定義過了 1>getopt.obj : error LNK2005: optind 已在 utils.obj 中定義過了 1>getopt.obj : error LNK2005: optopt 已在 utils.obj 中定義過了 1>getopt.obj : error LNK2005: getopt 已在 utils.obj 中定義過了 1>getopt.obj : error LNK2005: getopt_long 已在 utils.obj 中定義過了 1>getopt.obj : error LNK2005: getopt_long_only 已在 utils.obj 中定義過了 2>getopt.obj : error LNK2005: opterr 已在 utils.obj 中定義過了 2>getopt.obj : error LNK2005: optind 已在 utils.obj 中定義過了 2>getopt.obj : error LNK2005: optopt 已在 utils.obj 中定義過了 2>getopt.obj : error LNK2005: getopt 已在 utils.obj 中定義過了 2>getopt.obj : error LNK2005: getopt_long 已在 utils.obj 中定義過了 2>getopt.obj : error LNK2005: getopt_long_only 已在 utils.obj 中定義過了 2> 正在建立程式庫 A:/DP_learn/yolo/build/Release/darknet.lib 和物件 A:/DP_learn/yolo/build/Release/darknet.exp 1>A:\DP_learn\yolo\build\Release\darknet.exe : fatal error LNK1169: 找到有一或多個已定義的符號 1>專案 "darknet.vcxproj" 建置完成 -- 失敗。 2>A:\DP_learn\yolo\build\Release\darknet.dll : fatal error LNK1169: 找到有一或多個已定義的符號 2>專案 "dark.vcxproj" 建置完成 -- 失敗。 3>------ 已略過建置: 專案: PACKAGE, 設定: Release x64 ------ 3>未針對此方案組態選取要建置的專案 4>------ 已略過建置: 專案: INSTALL, 設定: Release x64 ------ 4>未針對此方案組態選取要建置的專案 ========== 組建: 0 成功,2 失敗,4 為最新狀態,2 已跳過 ========== ========== 組建 已於 上午 03:17 完成並花了 00.493 秒 ==========

i have no idea about it

stephanecharette commented 6 months ago

Please use the new repo: https://github.com/hank-ai/darknet#table-of-contents