Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

darknet.sln does not build #1819

Closed
anhminh3105 opened this issue Oct 24, 2018 · 4 comments
Closed

darknet.sln does not build #1819

anhminh3105 opened this issue Oct 24, 2018 · 4 comments
Labels
Solved The problem is solved using the correct settings

Comments

@anhminh3105
Copy link

anhminh3105 commented Oct 24, 2018

Hello,

I try to compile darknet following your intructions on VS 2017 but when I build darknet, the output always logs Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped. I have try seveval ways but it still couldn't be fixed.

output

My CUDA,cuDNN verions and my system variables are shown below:

vars

here is the property of darknet.sln:

prop

Also, I tried to set CUDA 9.1 to ``CUDA 9.0...``` but it does not fix the problem.

image

image

Could you please help me figure this out I'm really stuck here.

@AlexeyAB
Copy link
Owner

@anhminh3105 Hi,

  • Did you build x64 and Release?

As desribed here:

How to compile on Windows:
If you have MSVS 2015, CUDA 9.1, cuDNN 7.0 and OpenCV 3.x (with paths: C:\opencv_3.0\opencv\build\include & C:\opencv_3.0\opencv\build\x64\vc14\lib), then start MSVS, open build\darknet\darknet.sln, set x64 and Release https://hsto.org/webt/uh/fk/-e/uhfk-eb0q-hwd9hsxhrikbokd6u.jpeg and do the: Build -> Build darknet.


CUDA doesn't support 32-bit, so if you want to build 32-bit with Release or Debug, then try to compile darknet_no_gpu.sln without GPU supporting.

@anhminh3105
Copy link
Author

anhminh3105 commented Oct 24, 2018

yes I did it. Also I tried other combinations but it's still the same.

Now I'm following this issue #1455 (comment) but weirdly I don't have the branch CUDA C/C++ on the left pane in properties.

@AlexeyAB
Copy link
Owner

Can you show fullscreen screenshot with this error?
output

@anhminh3105
Copy link
Author

anhminh3105 commented Oct 25, 2018

Thanks for your responds and supports, I finally made it work after nearly a day of struggle. Actually no error was prompted and I was quite clueless.

Here is how I did:

  1. Followed your hint from this link darknet.sln load failed #550 (comment) I change the CUDA version to my current one.

image

image

  1. Then picked up the step from this instruction which took this reference I copied the .props file (mine is Microsoft.VCToolsVersion.14.11.props at this time) to the build folder and added an extra line in darknet.vcxproj to import this file.

image

Then the build works!
(For those whom got this problem and do this but it still doesn't build then try switching between the Platform Toolset in darknet.vcxproj>Right Click>Properties to Visual Studio 2015 v140 and the newest , mine is Visual Studio 2017 v141 at this time)

@AlexeyAB AlexeyAB added the Solved The problem is solved using the correct settings label Oct 25, 2018
@cenit cenit closed this as completed Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Solved The problem is solved using the correct settings
Projects
None yet
Development

No branches or pull requests

3 participants