cortex / gopass

Gopass: A simple password-store GUI
GNU General Public License v3.0
190 stars 13 forks source link

Prebuilt OSX binaries #15

Open rafi opened 8 years ago

rafi commented 8 years ago

That would be wonderful.

rafi commented 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
toastedcornflakes commented 8 years ago

Hi, I just build it (I installed gpgme from source and qt5 using homebrew). Here's the binary.

fmobus commented 8 years ago

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
fmobus commented 8 years ago

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
toastedcornflakes commented 8 years ago

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.

gonzalocasas commented 7 years ago

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