gopass icon indicating copy to clipboard operation
gopass copied to clipboard

Prebuilt OSX binaries

Open rafi opened this issue 9 years ago • 6 comments

That would be wonderful.

rafi avatar Jun 21 '16 12:06 rafi

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

rafi avatar Sep 01 '16 17:09 rafi

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

toastedcornflakes avatar Sep 01 '16 19:09 toastedcornflakes

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 avatar Sep 02 '16 18:09 fmobus

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

fmobus avatar Sep 02 '16 18:09 fmobus

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.

toastedcornflakes avatar Sep 02 '16 18:09 toastedcornflakes

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

gonzalocasas avatar Nov 06 '16 03:11 gonzalocasas