AndrewFromMelbourne / dmxwebcam

A webcam (v4l2) viewer for the Raspberry Pi console.
MIT License
21 stars 7 forks source link

compile error #1

Closed ghost closed 7 years ago

ghost commented 7 years ago

hi just wanted to compile it on rasbian latest jesse pixel got this:

Scanning dependencies of target dmxwebcam [ 16%] Building C object CMakeFiles/dmxwebcam.dir/dmxwebcam.c.o /home/pi/dmxwebcam/dmxwebcam.c:43:25: fatal error: bsd/libutil.h: No such file or directory

include <bsd/libutil.h>

^ compilation terminated. CMakeFiles/dmxwebcam.dir/build.make:62: recipe for target 'CMakeFiles/dmxwebcam.dir/dmxwebcam.c.o' failed make[2]: [CMakeFiles/dmxwebcam.dir/dmxwebcam.c.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/dmxwebcam.dir/all' failed make[1]: [CMakeFiles/dmxwebcam.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2

any stuff i should install prior to compiling?

ghost commented 7 years ago

SOLVED: you need to install libbsd-dev and also cmake prior to compilation:

sudo apt-get install libbsd-dev sudo apt-get install cmake