schwittlick / ofxDarknet

darknet neural network addon for openFrameworks
MIT License
496 stars 89 forks source link

Windows build errors help? #40

Closed ratmother closed 5 years ago

ratmother commented 5 years ago

Hello, I'm new to all this, so sorry if this is the wrong place to ask -- I don't really understand how this is supposed to work without .cpp files with the same named .h files, as it appears the .h files call functions that have no source. VS tells me to create a definition of the functions in its ___.cpp file. I guessed that the lib darknet_release.lib contained these .cpp function definitions and the "define" at the start of the .h files points to that somehow?

Anyway I get this error despite setting platform to x64 mode, added Cuda 8.0 to build customization file list, copied pthreadVC2.dll from ofxDarknet\libs\3rdparty\dll\x64 to my apps bin folder. Any help would be really appreciated.

"error LNK2019: unresolved external symbol"

screenshot 25

Most, if not all, of the .h header files in libs/darknet/include are pointing to non-existing function definitions.

Some info:

%(AdditionalDependencies);pthreadVC2.lib;cublas.lib;cudart.lib;cudnn.lib;curand.lib;darknet_debug.lib;ippicvmt.lib;libwebpd.lib;opencv_calib3d310d.lib;opencv_core310d.lib;opencv_features2d310d.lib;opencv_flann310d.lib;opencv_highgui310d.lib;opencv_imgcodecs310d.lib;opencv_imgproc310d.lib;opencv_ml310d.lib;opencv_objdetect310d.lib;opencv_photo310d.lib;opencv_shape310d.lib;opencv_stitching310d.lib;opencv_superres310d.lib;opencv_video310d.lib;opencv_videoio310d.lib;opencv_videostab310d.lib;zlibd.lib

ratmother commented 5 years ago

Forgot to run in x64 mode.