Hi I've added a bug report: https://bugs.launchpad.net/go-onlineaccounts/+bug/1553559
Regards Sam Segers Op 28 feb. 2016 16:29 schreef "Sam Segers" <[email protected]>: > Hi > > Ok, I've seem to fix the issues with the following scripts I now use. > > To install the needed packages I do: > > sudo click chroot -a armhf -f ubuntu-sdk-15.04 -s vivid maint apt-get > update > sudo click chroot -a armhf -f ubuntu-sdk-15.04 -s vivid maint apt-get > install -y golang-go golang-go-linux-arm libglib2.0-dev:armhf > crossbuild-essential-armhf bzr libaccounts-glib-dev:armhf > mkdir temp > pushd temp > sudo click chroot -a armhf -f ubuntu-sdk-15.04 -s vivid maint apt-get > download libsignon-glib-dev:armhf libsignon-glib1:armhf signond-dev:armhf > sudo click chroot -a armhf -f ubuntu-sdk-15.04 -s vivid maint dpkg -i > --force-all *.deb > popd > > > Basically installing the conflicting packages with dpkg. After this apt is > ofc broken (because of the --force-all). > > And to build: > > click chroot -a armhf -f ubuntu-sdk-15.04 -s vivid run CGO_ENABLED=1 > GOARCH=arm GOARM=7 GOPATH=$GOPATH > PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig > CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ go build -ldflags > '-extld=arm-linux-gnueabihf-g++' && mv deezer > arm-linux-gnueabihf/deezer-scope > > > I'll do some testing now with the scope to see if everything is working. > > Regards > Sam Segers > > 2016-02-28 13:19 GMT+01:00 Sam Segers <[email protected]>: > >> Hi >> >> I tried to compile my golang scope following the directives given in >> https://developer.ubuntu.com/en/scopes/tutorials/developing-scopes-go/ >> but I've hit some issues. >> >> First not all needed packages were installed with the apt-get install >> command. I still needed: >> bzr (for go install) >> libaccounts-glib-dev:arm (for "launchpad.net/go-unityscopes/v2" to get >> build properly) >> >> I had to replace: >> >> click chroot -a armhf -f ubuntu-sdk-15.04 -s vivid run CGO_ENABLED=1 >> GOARCH=arm GOARM=7 >> PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig >> GOPATH=/usr/share/gocode/:~/dev-go CC=arm-linux-gnueabihf-gcc >> CXX=arm-linux-gnueabihf-g++ go build -ldflags >> '-extld=arm-linux-gnueabihf-g++' >> >> with: >> >> click chroot -a armhf -f ubuntu-sdk-15.04 -s vivid run CGO_ENABLED=1 >> GOARCH=arm GOARM=7 >> PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig >> GOPATH=~/dev-go CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ go >> build -ldflags '-extld=arm-linux-gnueabihf-g++' >> >> The difference is GOPATH=~/dev-go iso GOPATH=/usr/share/gocode/:~/dev-go. >> Otherwise it tries to install the dependencies in /usr/share/gocode (and >> off course fail). >> >> I also tried to use "launchpad.net/go-onlineaccounts/v1" in my go scope. >> But this needs libsignon-glib-dev:armhf to be installed, but this results >> in: >> >> $ sudo click chroot -a armhf -f ubuntu-sdk-15.04 -s vivid maint apt-get >> install libsignon-glib-dev:armhf >> Reading package lists... Done >> Building dependency tree >> Reading state information... Done >> Some packages could not be installed. This may mean that you have >> requested an impossible situation or if you are using the unstable >> distribution that some required packages have not yet been created >> or been moved out of Incoming. >> The following information may help to resolve the situation: >> The following packages have unmet dependencies: >> libsignon-glib-dev:armhf : Depends: gir1.2-signon-1.0:armhf but it is >> not going to be installed >> Depends: signond-dev:armhf but it is not >> going to be installed >> E: Unable to correct problems, you have held broken packages. >> Command returned 100: schroot -u root -c >> source:click-ubuntu-sdk-15.04-armhf -- apt-get install >> libsignon-glib-dev:armhf >> >> >> I used the prebuild chroot from the ubuntu-sdk team ppa. >> > >
-- Mailing list: https://launchpad.net/~ubuntu-phone Post to : [email protected] Unsubscribe : https://launchpad.net/~ubuntu-phone More help : https://help.launchpad.net/ListHelp

