Closed
Description
Installed dependency package libpng libpng-devel gflags gflags-devel.
yum install -y libpng libpng-devel gflags gflags-devel
make //The error is as follows
==== Building guetzli (release) ====
butteraugli_comparator.cc
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
cc1plus: error: unrecognized command line option "-std=c++11"
make[1]: *** [obj/Release/butteraugli_comparator.o] Error 1
make: *** [guetzli] Error 2
Activity
helei112g commentedon Mar 20, 2017
CentOS Linux release 7.1.1503 (Core)
when i run :
make
I get same error:
centminmod commentedon Mar 20, 2017
same here too with centos 7.3
k0nr4d commentedon Mar 20, 2017
For the record I've found this is impossible to compile or run under CentOS 6. There's no way to install glibc newer then 2.12 on it and this requires 2.14. Hope that helps someone.
helei112g commentedon Mar 20, 2017
I fix it.
don't use
yum install gflags gflags-devel
, please build gflags by selfbecause
yum install gflags gflags-devel
get version is2.1.1
. but we need2.2.0
gflags
centminmod commentedon Mar 20, 2017
@helei112g tried that and get different set of errors
robryk commentedon Mar 20, 2017
Please try the newest code from the repository (after #97 we don't use gflags anymore).
robryk commentedon Mar 20, 2017
I strongly suspect that newest code doesn't cause this issue anymore. Please reopen if this problem still appears.