gen2brain / cam2ip

Turn any webcam into an IP camera
GNU General Public License v3.0
889 stars 93 forks source link

fatal error: 'jpeglib.h' file not found #4

Closed montanaflynn closed 6 years ago

montanaflynn commented 6 years ago

On a mac:

../../antonini/golibjpegturbo/decode.go:32:10: fatal error: 'jpeglib.h' file not found
#include <jpeglib.h>
gen2brain commented 6 years ago

You need to install lib/headers for turbo-jpeg, probably you can do it with brew on macOS.

Or, you can uncomment this line https://github.com/gen2brain/cam2ip/blob/master/encoder/encode.go#L6 and comment golibjpegturbo, but native image/jpeg is noticeable slower and takes more CPU.

montanaflynn commented 6 years ago

Yes I had to install that requirement with homebrew:

brew install jpeg-turbo

I think you should list this in the README under the requirements section.

gen2brain commented 6 years ago

Thanks, I added libjpeg-turbo to requirements.