prabindh / darknet

Convolutional Neural Networks
http://pjreddie.com/darknet/
Other
122 stars 46 forks source link

Cmake compile problem #71

Closed xiaoxiaotao closed 6 years ago

xiaoxiaotao commented 6 years ago

I need use darknet in my project,but I must use Cmake, I have write a CMakeLists.txt.However,it does not workdo you have CMakeLists.txt?

prabindh commented 6 years ago

Could you share the CMake file you tried ? Is it for darknet-cpp, or darknet-cpp-shared, or ?

prabindh commented 6 years ago

Also - what platform are you writing this for - Windows, or other?

prabindh commented 6 years ago

I wrote a proof of concept of how a CMake wrapper for Linux could be. Please see if it would help you.

https://gist.github.com/prabindh/6bb3c429b8e8347edcf9b5e0b2f54a20

A standalone CMake build is not possible with the current build approach.

xiaoxiaotao commented 6 years ago

Could you share the CMake file you tried ? Is it for darknet-cpp, or darknet-cpp-shared, or ? I share the darknet-cpp-shared.so,it is my project. https://github.com/xiaoxiaotao/arapaho

prabindh commented 6 years ago

Thanks. I think this will not work in Windows, correct ? Were you able to try the ExternalProject approach (https://gist.github.com/prabindh/6bb3c429b8e8347edcf9b5e0b2f54a20) ? If there are no further queries pending, please close.

xiaoxiaotao commented 6 years ago

ok