rafaelpadilla / darknet

Useful functionalities added on the original darknet public repository.
Other
36 stars 17 forks source link

really buggy when make #7

Closed shm007g closed 5 years ago

shm007g commented 5 years ago

first i make with those errors

gcc -Iinclude/ -Isrc/ -DGPU -I/usr/local/cuda/include/ -DCUDNN  -Wall -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -DGPU -DCUDNN -c ./src/utils.c -o obj/utils.o
./src/utils.c: 在函数‘split_threshold_ranges’中:
./src/utils.c:876:9: 警告:隐式声明函数‘isValidDouble’ [-Wimplicit-function-declaration]
         if ((isValidDouble(listChar[0], &res) == 0) || (res > 1 || res < 0))
         ^
./src/utils.c:929:9: 错误:只允许在 C99 模式下使用‘for’循环初始化声明
         for (int i = 0; i< count; i++)
         ^
编译因为 -Wfatal-errors 而中止。
make: *** [obj/utils.o] 错误 1

then i add -std=c99 on CFLAGS, then

gcc -Iinclude/ -Isrc/ -DGPU -I/usr/local/cuda/include/ -Wall -Wno-unknown-pragmas -Wfatal-errors -fPIC -std=c99 -Ofast -DGPU -c ./src/gemm.c -o obj/gemm.o
gcc -Iinclude/ -Isrc/ -DGPU -I/usr/local/cuda/include/ -Wall -Wno-unknown-pragmas -Wfatal-errors -fPIC -std=c99 -Ofast -DGPU -c ./src/utils.c -o obj/utils.o
./src/utils.c: 在函数‘what_time_is_it_now’中:
./src/utils.c:29:21: 错误:‘now’的存储大小未知
     struct timespec now;
                     ^
编译因为 -Wfatal-errors 而中止。
make: *** [obj/utils.o] 错误 1
rafaelpadilla commented 5 years ago

Dear @shm007g ,

Did you manage to compile the original darknet?

Do you have CUDA installed correctly?

shm007g commented 5 years ago

I've complete compiled Darknet using another repo: https://github.com/AlexeyAB/darknet @rafaelpadilla thx.

I think the two project may consider get merged.