Hello Lars,
while compiling the darknet directory (Step. 5), I get the following error:
> make
g++ -Iinclude -Isrc -DOPENCV -I/opt/opencv320/include/opencv -I/opt/opencv320/include -Wall -Wfatal-errors -fPIC -Ofast -DOPENCV -c ./src/wrapper_c.c -o obj/wrapper_c.o
./src/wrapper_c.c: In function ‘void setup_network(const char*, const char*)’:
./src/wrapper_c.c:26:36: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
net = parse_network_cfg(cfgfile);
^
compilation terminated due to -Wfatal-errors.
Makefile:68: recipe for target 'obj/wrapper_c.o' failed
make: *** [obj/wrapper_c.o] Error 1
Suddenly, the above is compiling....
But ~100 lines later, there is a different error for the same file:
./src/wrapper_c.c: In function ‘detect_img’:
./src/wrapper_c.c:158:16: warning: implicit declaration of function ‘ipl_to_image’ [-Wimplicit-function-declaration]
image im = ipl_to_image(src);
^
./src/wrapper_c.c:158:16: error: invalid initializer
compilation terminated due to -Wfatal-errors.
Makefile:68: recipe for target 'obj/wrapper_c.o' failed
make: *** [obj/wrapper_c.o] Error 1
In my understanding, it is not including the "image.h" file correctly, but I am not sure why.
Is there a way to fix this? Any help is appreciated!
Thanks in advance!
regards Andreas
Hello Lars,
while compiling the darknet directory (Step. 5), I get the following error:
Suddenly, the above is compiling....
But ~100 lines later, there is a different error for the same file:
In my understanding, it is not including the "image.h" file correctly, but I am not sure why.
Is there a way to fix this? Any help is appreciated!
Thanks in advance!
regards Andreas