Open rafi opened 8 years ago
For what it's worth, here's instructions for OSX Macports users:
sudo port install gpgme qt5
CGO_CFLAGS="-I/opt/local/include/" CGO_LDFLAGS="-L/opt/local/lib/" go get github.com/cortex/gopass
Hi, I just build it (I installed gpgme from source and qt5 using homebrew). Here's the binary.
I tried brew install gpgme qt5 and got different results:
LDFLAGS=-L/usr/local/opt/qt5/lib CPPFLAGS=-I/usr/local/opt/qt5/include go get github.com/cortex/gopass
# pkg-config --cflags Qt5Core Qt5Widgets Qt5Quick
Package Qt5Core was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt5Core.pc'
to the PKG_CONFIG_PATH environment variable
No package 'Qt5Core' found
Package Qt5Widgets was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt5Widgets.pc'
to the PKG_CONFIG_PATH environment variable
No package 'Qt5Widgets' found
Package Qt5Quick was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt5Quick.pc'
to the PKG_CONFIG_PATH environment variable
No package 'Qt5Quick' found
pkg-config: exit status 1
Also, the prebuilt binary offered by @toastedcornflakes gives me:
./gopass
dyld: Library not loaded: /usr/local/opt/libgpg-error/lib/libgpg-error.0.dylib
Referenced from: /Users/fmobus/Downloads/./gopass
Reason: Incompatible library version: gopass requires version 20.0.0 or later, but libgpg-error.0.dylib provides version 18.0.0
Trace/BPT trap: 5
By default hombrew will install qt5 as 'keg only', i.e. not in the usual path. You'll need to run brew unlink qt && brew link qt5 --force
before building. You could also add qt5 to your PKG_CONFIG_PATH
.
Instead of unlinking qt
, you can just pass PKG_CONFIG_PATH
on build:
LDFLAGS=-L/usr/local/opt/qt5/lib CPPFLAGS=-I/usr/local/opt/qt5/include PKG_CONFIG_PATH=/usr/local/opt/qt5/lib/pkgconfig go get github.com/cortex/gopass
That would be wonderful.