Skip to content

“No package 'gflags' found” and “guetzli.make:103: recipe for target 'bin/Release/guetzli' failed” #86

Closed
@lylang

Description

@lylang

On Ubuntu 16.04
the permission is root

lyl@lyl:~/program/guetzli$ ls
bin    CONTRIBUTING.md  guetzli.make  guetzli.vcxproj          LICENSE   obj        premake5.lua  snapcraft.yaml  tools      zlib.BUILD
BUILD  guetzli          guetzli.sln   guetzli.vcxproj.filters  Makefile  png.BUILD  README.md     third_party     WORKSPACE

and,

lyl@lyl:~/program/guetzli$ make
==== Building guetzli (release) ====
jpeg_data_encoder.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
.....
.....
.....
collect2: error: ld returned 1 exit status
guetzli.make:103: recipe for target 'bin/Release/guetzli' failed
make[1]: *** [bin/Release/guetzli] Error 1
Makefile:26: recipe for target 'guetzli' failed
make: *** [guetzli] Error 2

What Problem???

Activity

stingbo

stingbo commented on Mar 20, 2017

@stingbo

The same problme with me

bobonri

bobonri commented on Mar 20, 2017

@bobonri

I have the same problem as well.

If you try to install libgflags-dev with apt-get install libgflags-dev on Ubuntu 16.04, it will install the library v2.1.2.3. But the pkg-config support is only added in v2.2 so you might want to install this version manually.

You can check the gflags github page

abcfy2

abcfy2 commented on Mar 20, 2017

@abcfy2

Same issue here. May be duplicated as #74

robryk

robryk commented on Mar 20, 2017

@robryk
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @robryk@abcfy2@stingbo@lylang@bobonri

        Issue actions

          “No package 'gflags' found” and “guetzli.make:103: recipe for target 'bin/Release/guetzli' failed” · Issue #86 · google/guetzli