mobimeo / node-yolo

Node bindings for YOLO/Darknet image recognition library
https://lab.moovel.com/blog/what-you-get-is-what-you-see-nodejs-yolo
MIT License
372 stars 51 forks source link

Can't install: `make OPENCV=1` yields errors #1

Closed b-g closed 7 years ago

b-g commented 7 years ago
zwei:darknet-orkon-fork bene$ make OPENCV=1
mkdir -p obj
mkdir -p backup
mkdir -p results
gcc  -DOPENCV `pkg-config --cflags opencv`  -DGPU -I/usr/local/cuda/include/ -Wall -Wfatal-errors -fPIC -Ofast -DOPENCV -DGPU -c ./src/gemm.c -o obj/gemm.o
In file included from ./src/gemm.c:3:
./src/cuda.h:10:10: fatal error: 'cuda_runtime.h' file not found
#include "cuda_runtime.h"
         ^
1 error generated.
make: *** [obj/gemm.o] Error 1

I installed before openCV without CUDA

brew tap homebrew/science
brew install opencv3 --with-contrib --with-ffmpeg
b-g commented 7 years ago

I tried then to set make GPU=0 (which shouldn't be GPU=1 as default, or?) ... but got then errors too.

OrKoN commented 7 years ago

@b-g currently the GPU is the default as defined in the Makefile

b-g commented 7 years ago

Should we not change it GPU=0? A lot of peeps don't have CUDA ... but still could use the static image detection.

joeyklee commented 7 years ago

I agree with @b-g - my feeling is also that most users won't have CUDA.

OrKoN commented 7 years ago

@joeyklee @b-g there is currently no way to make node-yolo module configurable, it is set up to be compiled with cuda by default.