Update README.md

This commit is contained in:
Alexey 2021-01-05 16:48:02 +03:00 committed by GitHub
parent 0968058b54
commit b11af9e93b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 0 deletions

View File

@ -333,6 +333,28 @@ To run Darknet on Linux use examples from this article, just use `./darknet` ins
### How to compile on Windows (using `CMake`)
Requires:
* MSVS: https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community
* Cmake GUI: `Windows win64-x64 Installer`https://cmake.org/download/
* Download Darknet zip-archive with the latest commit and uncompress it: [master.zip](https://github.com/AlexeyAB/darknet/archive/master.zip)
In the Windows:
* Start (button) -> All programms -> Cmake -> Cmake (gui) ->
* [look at image](https://habrastorage.org/webt/pz/s1/uu/pzs1uu4heb7vflfcjqn-lxy-aqu.jpeg) In Cmake: Enter input path to the darknet Source, and output path to the Binaries -> Configure (button) -> Optional platform for generator: `x64` -> Finish -> Generate -> Open Project ->
* in MS Visual Studio: Select: x64 and Release -> Build -> Build solution
* find the executable file `darknet.exe` in the output path to the binaries you specified
![x64 and Release](https://habrastorage.org/webt/ay/ty/f-/aytyf-8bufe7q-16yoecommlwys.jpeg)
### How to compile on Windows (using `vcpkg`)
This is the recommended approach to build Darknet on Windows.
1. Install Visual Studio 2017 or 2019. In case you need to download it, please go here: [Visual Studio Community](http://visualstudio.com)