hoehermann / purple-gowhatsapp

Pidgin/libpurple plug-in for WhatsApp Web.
GNU General Public License v3.0
287 stars 35 forks source link

Building fails on Arch Linux #82

Closed 0zuna closed 3 years ago

0zuna commented 3 years ago

REBUILD $ make update-dep fatal: no es un repositorio git: '/purple-gowhatsapp/go/src/github.com/Rhymen/go-whatsapp/.git' go get -u github.com/skip2/go-qrcode go: downloading github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e go get -u github.com/gabriel-vasile/mimetype go: downloading github.com/gabriel-vasile/mimetype v1.3.0 go: downloading golang.org/x/net v0.0.0-20210505024714-0287a6fb4125 go: downloading golang.org/x/net v0.0.0-20210614182718-04defd469f4e go get -u github.com/Rhymen/go-whatsapp go: downloading github.com/Rhymen/go-whatsapp v0.1.1 go: downloading github.com/gorilla/websocket v1.4.1 go: downloading github.com/pkg/errors v0.8.1 go: downloading github.com/golang/protobuf v1.3.0 go: downloading golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 go: downloading github.com/pkg/errors v0.9.1 go: downloading github.com/gorilla/websocket v1.4.2 go: downloading github.com/golang/protobuf v1.5.2 go: downloading golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a go: downloading google.golang.org/protobuf v1.26.0 touch -d "" /home/dimitri/programs/purple-gowhatsapp/go/pkg/linux_amd64/github.com/Rhymen/go-whatsapp.a touch: no se puede efectuar `touch' sobre '/home/dimitri/programs/purple-gowhatsapp/go/pkg/linux_amd64/github.com/Rhymen/go-whatsapp.a': No existe el fichero o el directorio make: *** [Makefile:45: update-dep] Error 1

0zuna commented 3 years ago

log from old bin gowhatsapp.so: error during login: error decoding login resp: json: cannot unmarshal array into Go value of type map[string]interface {}

hoehermann commented 3 years ago

fatal: no es un repositorio git: '/purple-gowhatsapp/go/src/github.com/Rhymen/go-whatsapp/.git'

GOPATH seems to be pointing to a non-existent location. Please check your local build environment. A build-bot provides updated nightly binaries for Ubuntu 20.04 which may work on other distributions, too.

cannot unmarshal array into Go value of type map[string]interface {}

This is a by-product of go-whatsapp using an outdated version string. Mentioned in #81.

0zuna commented 3 years ago

GOPATH seems to be pointing to a non-existent location. Please check your local build environment. A build-bot provides updated nightly binaries for Ubuntu 20.04 which may work on other distributions, too.

i am get: error during login: error decoding login resp: json: cannot unmarshal array into Go value of type map[string]interface {} from the last binaries

GOPATH is in makefile: export GOPATH?=$(CURDIR)/go

i get this in only make:

[dimitri@nabuconodosor purple-gowhatsapp]$ make go get github.com/Rhymen/go-whatsapp go get github.com/skip2/go-qrcode go get github.com/gabriel-vasile/mimetype go build -buildmode=c-archive -o purplegwa.a purplegwa.go purplegwa-media.go purplegwa.go:87:2: no required module provides package github.com/Rhymen/go-whatsapp: go.mod file not found in current directory or any parent directory; see 'go help modules' purplegwa-media.go:29:2: no required module provides package github.com/gabriel-vasile/mimetype: go.mod file not found in current directory or any parent directory; see 'go help modules' purplegwa.go:88:2: no required module provides package github.com/pkg/errors: go.mod file not found in current directory or any parent directory; see 'go help modules' purplegwa.go:89:2: no required module provides package github.com/skip2/go-qrcode: go.mod file not found in current directory or any parent directory; see 'go help modules' make: *** [Makefile:54: purplegwa.a] Error 1

0zuna commented 3 years ago

hello @hoehermann i tried today the current binari from nightly binaries rename current to current.so and only this is working (current date 2021-06-16 00:30). only this is working with the last updates i am working in ArchLinux Thanks n.n

hoehermann commented 3 years ago

rename current to current.so and only this is working (current date 2021-06-16 00:30).

Good to hear that the binary is working for you.

i am working in ArchLinux

I cannot possibly provide assistance to build on all the distributions, so I focus on Ubuntu only. Reports on the AUR state building fails on Arch Linux. A patch is provided, but I should install Arch Linux to test it myself. I probably will not be doing that anytime soon. Pull requests are welcome.

0zuna commented 3 years ago

hello @hoehermann i resolved the bug please accept the pull request n.n

0zuna commented 3 years ago

thanks for accept this solve the problem in AUR