cgo and pkg-config

239 views
Skip to first unread message

jonathan...@gmail.com

unread,
Feb 17, 2016, 6:23:21 PM2/17/16
to golang-nuts
I have a tree of the artifacts from a build of libvips, including /include, /lib, /lib/pkgconfig etc. When I use #cgo pkg-config: vips in my go source it doesn't seem to be using the .pc files to locate headers, because its failing to locate a header.
Inside include/ there is glib-2.0/stuff but some files are just #include "glibsomething.h" relying on the .pc file to locate it. Is there a way to make this work? I tried setting PKG_CONFIG_PATH and go build but same thing.
Thanks!

jonathan...@gmail.com

unread,
Feb 17, 2016, 6:53:58 PM2/17/16
to golang-nuts, jonathan...@gmail.com
Nevermind, the .pc files where referring to my tree rooted at a different place. All works now!
Reply all
Reply to author
Forward
0 new messages