Qt: Compile error when using vendor directory

Created on 6 May 2018  路  2Comments  路  Source: therecipe/qt

I'm building on macOS for macOS and everything works fine until I attempt to use dep to vendor my dependencies.

When this library is present in the vendor directory running qtdeploy build results in the following error:
moc.go:14:2: build constraints exclude all Go files in /vendor/github.com/therecipe/qt/gui
main.go:11:2: build constraints exclude all Go files in /vendor/github.com/therecipe/qt/widgets

Manually removing github.com/therecipe/qt from the vendor directory fixes the issue, but I'd rather not have to do that.

Is it possible to build when using the vendor directory?

Most helpful comment

does anyone have any ideas for how to work around this?

All 2 comments

does anyone have any ideas for how to work around this?

Hey

Sorry, I was quite busy the last few weeks.
It's unfortunately not possible to directly vendor the binding atm.

But you can maybe try to symlink the therecipe/qt dir inside the vendor dir to $GOPATH/src/github.com/therecipe/qt and see if it works.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

adneg picture adneg  路  6Comments

vahid-sohrabloo picture vahid-sohrabloo  路  7Comments

iMaxopoly picture iMaxopoly  路  3Comments

woodyjon picture woodyjon  路  5Comments

tjma2001 picture tjma2001  路  3Comments