bennetthardwick / darknet.js

A NodeJS wrapper of pjreddie's darknet / yolo.
65 stars 27 forks source link

Error while trying to install with GPU and CUDNN support #18

Closed idkRage closed 5 years ago

idkRage commented 5 years ago

It installs fine without gpu and cudnn support but fails when i try to install it with it.

Part of the log with error:

mkdir -p obj
mkdir -p backup
mkdir -p results
gcc -Iinclude/ -Isrc/ -DOPENCV `pkg-config --cflags opencv`  -DGPU -I/usr/local/cuda/include/ -DCUDNN  -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -fopenmp -Ofast -DOPENCV -DGPU -DCUDNN -c ./src/gemm.c -o obj/gemm.o
/bin/sh: 1: pkg-config: not found
In file included from ./src/utils.h:5:0,
                 from ./src/gemm.c:2:
include/darknet.h:11:30: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
Makefile:89: recipe for target 'obj/gemm.o' failed
make: *** [obj/gemm.o] Error 1
Could not compile darknet
npm WARN enoent ENOENT: no such file or directory, open '/mnt/c/node_yolo/package.json'
npm WARN node_yolo No description
npm WARN node_yolo No repository field.
npm WARN node_yolo No README data
npm WARN node_yolo No license field.
npm ERR! Linux 4.4.0-17763-Microsoft
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "darknet"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE

npm ERR! darknet@1.3.8 install: `./install-script.sh`
npm ERR! Exit status 2
npm ERR!

Seems like its missing cuda_runtime.h from somewhere.

bennetthardwick commented 5 years ago

Hey @Wawy123

Looks like there's some kind of issue finding the cuda_runtime.h file. Have you verified your cuda installation by trying out some other libraries?

Under the hood darknet.js uses the upstream darknet library. Perhaps you could try building that?

bennetthardwick commented 5 years ago

Since this is an upstream / installation issue, I'm going to close this for now.