gmayday1997 / darknet.CG

Other
31 stars 12 forks source link

Installation error #3

Open varghesealex90 opened 5 years ago

varghesealex90 commented 5 years ago

Hello,

I am facing the following error when I run sh build.sh

[ 96%] Building CUDA object CMakeFiles/dark.dir/src/im2col_kernels.cu.o /mnt/darknet.CG/src/im2col_kernels.cu:125:18: warning: "/" within comment [-Wcomment] //data_col_ptr = (h >= 0 && w >= 0 && h < height && w < width) ? ^ /mnt/darknet.CG/src/im2col_kernels.cu:1178:6: warning: "/" within comment [-Wcomment] //((uint64_t )(A_s + (local_ilda + k) / 8)) = ((uint64_t )(A + (i_cur*lda + k) / 8)); // weights ^ CMakeFiles/darknet.dir/src/darknet.c.o: In function main': darknet.c:(.text.startup+0x70c): undefined reference torun_prune' collect2: error: ld returned 1 exit status CMakeFiles/darknet.dir/build.make:1318: recipe for target 'darknet' failed make[2]: [darknet] Error 1 CMakeFiles/Makefile2:133: recipe for target 'CMakeFiles/darknet.dir/all' failed make[1]: [CMakeFiles/darknet.dir/all] Error 2 make[1]: * Waiting for unfinished jobs.... [ 96%] Building CUDA object CMakeFiles/dark.dir/src/maxpool_layer_kernels.cu.o [ 97%] Building CUDA object CMakeFiles/dark.dir/src/network_kernels.cu.o /mnt/darknet.CG/src/im2col_kernels.cu:125:18: warning: "/" within comment [-Wcomment] //data_col_ptr = (h >= 0 && w >= 0 && h < height && w < width) ? ^ /mnt/darknet.CG/src/im2col_kernels.cu:1178:6: warning: "/" within comment [-Wcomment] //((uint64_t )(A_s + (local_ilda + k) / 8)) = ((uint64_t )(A + (i_curlda + k) / 8)); // weights ^ [ 98%] Linking CUDA device code CMakeFiles/dark.dir/cmake_device_link.o [ 98%] Linking CXX shared library libdark.so [ 98%] Built target dark Makefile:129: recipe for target 'all' failed make: [all] Error 2 cp: target 'share/darknet/' is not a directory

Steps followed: 1) git clone this repo. 2) make clean 3) make 4) sh build.sh

gmayday1997 commented 5 years ago

@varghesealex90 hi, I forget add prune.cpp to CMakeList. I have fixed it. if you compile darknet on Linux, just do make in the darknet directory.