folly icon indicating copy to clipboard operation
folly copied to clipboard

building project with folly yields "/usr/bin/ld: cannot find -lgflags_shared"

Open yodermk opened this issue 4 years ago • 1 comments

Hi, I used to be able to use Folly, but something broke. I'm using Arch Linux, maybe there's a change in how they packaged it?

This is all I have in /usr/lib from glfags; no libgflags_shared.

gflags /usr/lib/libgflags.so
gflags /usr/lib/libgflags.so.2.2
gflags /usr/lib/libgflags.so.2.2.2
gflags /usr/lib/libgflags_nothreads.a
gflags /usr/lib/libgflags_nothreads.so
gflags /usr/lib/libgflags_nothreads.so.2.2
gflags /usr/lib/libgflags_nothreads.so.2.2.2

Is there a quick obvious solution here? Thanks.

yodermk avatar Feb 19 '21 04:02 yodermk

You probably don't need this anymore. But for other developers who find your issue.

Add this line helped me:

find_package(glog CONFIG REQUIRED)

MBkkt avatar Oct 23 '21 06:10 MBkkt