google / guetzli

Perceptual JPEG encoder
Apache License 2.0
12.9k stars 976 forks source link

Ubuntu 16.04 compilation error due to gflags was not found in the pkg-config search path. #74

Closed JuStTheDev closed 7 years ago

JuStTheDev commented 7 years ago

After installing the needed packages as described in the README.MD using apt-get in Ubuntu 16.04 there's this error after running make: ==== Building guetzli (release) ==== Linking guetzli Package gflags was not found in the pkg-config search path. Perhaps you should add the directory containing 'gflags.pc' to the PKG_CONFIG_PATH environment variable No package 'gflags' found The gflags.pc file simply doesn't exist on the whole system.

robryk commented 7 years ago

It seems that that Ubuntu version indeed has a libgflags-dev package without the .pc file. There's even an issue filed about that, but it has been fixed too late for 16.04. I will fix this somehow on Monday. As a workaround for the meantime, please use the version from commit 95ba42158eb46153944d5abc3bcb62f40e384186:

robryk commented 7 years ago

97 removes the dependency on gflags. Please update to the current version, try again, and reopen if problems persist. Sorry for the trouble.

JuStTheDev commented 7 years ago

Thanks once more here - it works directly!