Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#cgo pkg-config: traildb does see traildb.h on build #12

Open
vmakhaev opened this issue Jun 22, 2017 · 0 comments
Open

#cgo pkg-config: traildb does see traildb.h on build #12

vmakhaev opened this issue Jun 22, 2017 · 0 comments

Comments

@vmakhaev
Copy link

After installation traildb with brew, traildb-go does not build with error:

brew install traildb
brew install traildb/judy/judy libarchive pkg-config
# github.com/traildb/traildb-go
../../../../../github.com/traildb/traildb-go/tdb.go:6:10: fatal error: 'traildb.h' file not found
#include <traildb.h>
         ^
1 error generated.

I was able to workaround this only by adding CGO_CFLAGS env var:

export CGO_CFLAGS=-I/usr/local/Cellar/traildb/0.6/include
mac os
➜  ~ go version
go version go1.7.6 darwin/amd64
➜  ~ brew info traildb
traildb: stable 0.6 (bottled)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant