schwittlick / ofxDarknet

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

'list1 *read_data_cfg(char *)': cannot convert argument 1 from 'const char *' to 'char * #1

Closed AndreasRef closed 7 years ago

AndreasRef commented 7 years ago

First of all, so exited about this addon!

On my Windows PC (Win 10, Visual Studio 2015, of_v0.9.8) I tried to follow the instructions and build example-yolo2 and example-imagenet

I get the following error for both examples:

'list1 *read_data_cfg(char *)': cannot convert argument 1 from 'const char *' to 'char *' The reference to the error is ofxDarknet.cpp line 19

genekogan commented 7 years ago

i get this issue in OSX as well. going to fix this asap. just cast it with (char *) to fix the problem, e.g.

options1 = read_data_cfg((char *) datacfg.c_str() );
genekogan commented 7 years ago

this should be fixed now.