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

Prebuilt OSX binaries #15

Open
rafi opened this issue Jun 21, 2016 · 6 comments
Open

Prebuilt OSX binaries #15

rafi opened this issue Jun 21, 2016 · 6 comments

Comments

@rafi
Copy link

rafi commented Jun 21, 2016

That would be wonderful.

@rafi
Copy link
Author

rafi commented Sep 1, 2016

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
Copy link

toastedcornflakes commented Sep 1, 2016

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

@fmobus
Copy link

fmobus commented Sep 2, 2016

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
Copy link

fmobus commented Sep 2, 2016

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
Copy link

toastedcornflakes commented Sep 2, 2016

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
Copy link

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

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

4 participants