microsoft / ELL

Embedded Learning Library
https://microsoft.github.io/ELL
Other
2.29k stars 294 forks source link

Trouble: complier darknet project #125

Closed Tryljs closed 6 years ago

Tryljs commented 6 years ago

I used wrap.py script to process the darknet model, and then I got a darknet.obj file. When I used it to complier a demo, but failed. Error message as following:

darknet.obj : error LNK2019: in function 'darknet_Predict', undefined reference to 'darknet_InputCallback'; darknet.obj : error LNK2019: in function 'darknet_Predict', undefined reference to 'cblas_sgemm'; darknet.obj : error LNK2019: in function 'darknet_Predict', undefined reference to 'darknet_OutputCallback';

Tryljs commented 6 years ago

In the predict function, I found its parameters are "double", "float*", how to input my picture to predict the result?

lisaong commented 6 years ago

The darknet_InputCallback and darknet_OutputCallback errors are now fixed with release v2.1.5

For the cblas_sgemm error, looks like you're missing OpenBLAS libraries. If you search the issues, there should be a few examples of how to fix this.

darknet.obj : error LNK2019: in function 'darknet_Predict', undefined reference to 'cblas_sgemm';

In particular, to troubleshoot this, check what the output of cmake .. spews. It should find the path to OpenBlas libs.