darknet build error MSB3721

Created on 27 Jul 2017  Â·  14Comments  Â·  Source: AlexeyAB/darknet

hi,

i have met some error

error MSB3721 命令 ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin\nvcc.exe" -gencode=arch=compute_20,code=\"sm_20,compute_20\" --use-local-env --cl-version 2015 -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include" -G --keep-dir Debug -maxrregcount=0 --machine 32 --compile -cudart static -g -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MDd " -o Debug\activation_kernels.cu.obj "D:\darknet-master\src\activation_kernels.cu"" exited with code 2。

after i google it , i can't find good a solution

so , please help me with it

1

help wanted

Most helpful comment

It works !
After your instruction, i build successfully!

Thank you for kindly helping !

All 14 comments

Hi, I can't reproduce you problem.

  1. Do you use Windows 7 x64, MSVS 2015, CUDA 8.0, OpenCV 2.4.x?
  2. What file did you open in MSVS, is it darknet.sln?
  3. Did you install CUDA 8.0 after MSVS 2015 has been installed?
  1. I use Win10 x64 , MSVS2015 , CUDA 8.0 ,and Opencv 2.4.13.2
  2. yes , i open darknet .sln
  3. yes ,i install MSVS2015 then i install CUDA 8.0

is there any problem with my CUDA ?
Because when first time i install CUDA ,the screen just black out
So i just install again, and it sucessly install

@gimmy4268 Can you show Build customization window in your MSVS when you opened darknet.sln? Such as:

cuda_check

You can find it here:

vs2013-r-5

Also do:

  1. (right click on project) -> Retarget SDK Version -> set 10.0.xxx

ic827368

6014 5

  1. (right click on project) -> Properties -> General -> Target Platform version -> set 10.0.10240.0 (or set inherir from parent)

8715 2


Then set x64 and Release and do:

  • Build -> Clean
  • Build -> Rebuild

screenshot 10
the same as are enabled in dependencies and iam not getting win10 option there even though mine in win10...could you plz help me out

@sumith96 Try to find solution here: https://stackoverflow.com/questions/38290169/cannot-find-corecrt-h-universalcrt-includepath-is-wrong

What directories do you have?:

  • in the C:\Program Files (x86)\Windows Kits\10\Include\
  • and in the C:\Program Files (x86)\Windows Kits\10\Lib\

Also try to do:

  • (right click on project) -> properties -> C/C++ -> General -> Additional Include Directories, put here:
    C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\;C:\opencv_2.4.9\opencv\build\include;..\..\3rdparty\include;%(AdditionalIncludeDirectories);$(CudaToolkitIncludeDir);$(cudnn)\include

  • (right click on project) -> properties -> Linker -> General -> Additional Library Directories, put here:
    C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\um\x64;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\x64;C:\opencv_2.4.9\opencv\build\x64\vc12\lib;$(CUDA_PATH)lib\$(PlatformName);$(cudnn)\lib\x64;%(AdditionalLibraryDirectories)

It works !
After your instruction, i build successfully!

Thank you for kindly helping !

C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\um\x64
except this every thing is checked and is present
still getting same errors....could u plz help me out!

@gimmy4268 Which of my inctruction did help you?
Then I could recommend these instructions to other people.

i don't know which one did help me.
because i just do all your instructions, and then it works!
sorry can not help you

Hello AlexeyAB
I cant find any pthread.h in the downloaded folder.
May I know if these error has a solution?
Thank you in advance!

capture

How to find the Object background color and border thickness of the object using yolo?

How to find the Object features like color, border thickness, co-ordinates, angle of the object etc..?

And how train the above feature data set using yolo?

Please help me out

Thank you in advance!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rezaabdullah picture rezaabdullah  Â·  3Comments

hemp110 picture hemp110  Â·  3Comments

HilmiK picture HilmiK  Â·  3Comments

Yumin-Sun-00 picture Yumin-Sun-00  Â·  3Comments

HanSeYeong picture HanSeYeong  Â·  3Comments