For the past 2 weeks i've been banging my head against the wall trying to learn go. Not to learn go as a language, but to get a simple go program for my photo printer to work with an android Cordova app. Here is where i beg for help. I am a webdeveloper/construction worker and would love someones assistance with this project.
As i understand it this is possible with gomobile. The go program is simple "go run selphy.go image.jpg" would send the image to the printer, it receives it and prints. It works fine, the problem lies in flags i suppose. I keep getting this error
gomobile bind --target=android selphy
gomobile: loadExportData failed go install -p=2 -pkgdir=/home/mrlarge/.gvm/pkgsets/go1.6.2/global/pkg/gomobile/pkg_android_arm -tags="" -gcflags=-shared -ldflags=-shared selphy failed: exit status 2
# selphy
/home/mrlarge/.gvm/gos/go1.6.2/pkg/tool/linux_amd64/link: -shared and -buildmode=pie are incompatible
This error is on a fresh install of ubuntu 16.04 LTS, gvm with go1.6.2 .
I've also tried other versions of go1.5. Same result.
Any help would leave me indebted....