akshettrj / watgbridge

A forwarder from WhatsApp to Telegram written in GoLang
MIT License
165 stars 40 forks source link

error #21

Closed X-Gorn closed 1 year ago

X-Gorn commented 1 year ago

getting this error while trying to run the go build

root@ubuntu-s-2vcpu-2gb-amd-sgp1-01:~/go/src/watgbridge# go build
go: downloading github.com/PaulSonOfLars/gotgbot/v2 v2.0.0-rc.15
go: downloading github.com/go-co-op/gocron v1.18.0
go: downloading go.uber.org/zap v1.24.0
go: downloading github.com/robfig/cron/v3 v3.0.1
go: downloading golang.org/x/sync v0.1.0
go: downloading go.uber.org/atomic v1.10.0
go: downloading go.uber.org/multierr v1.6.0
go: downloading go.mau.fi/whatsmeow v0.0.0-20230213175431-ec411f5b9afe
go: downloading gorm.io/driver/mysql v1.4.6
go: downloading gorm.io/driver/postgres v1.4.7
go: downloading gorm.io/driver/sqlite v1.4.4
go: downloading gorm.io/gorm v1.24.5
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/Benau/tgsconverter v0.0.0-20210809170556-99f4a4f6337f
go: downloading github.com/forPelevin/gomoji v1.1.8
go: downloading github.com/kolesa-team/go-webp v1.0.2
go: downloading github.com/lithammer/fuzzysearch v1.1.5
go: downloading golang.org/x/exp v0.0.0-20230213192124-5e25df0256eb
go: downloading google.golang.org/protobuf v1.28.1
go: downloading github.com/emersion/go-vcard v0.0.0-20220507122617-d4056df0ec4a
go: downloading github.com/jackc/pgx/v5 v5.3.0
go: downloading github.com/mattn/go-sqlite3 v1.14.16
go: downloading github.com/mdp/qrterminal/v3 v3.0.0
go: downloading github.com/go-sql-driver/mysql v1.7.0
go: downloading go.mau.fi/libsignal v0.1.0
go: downloading github.com/jinzhu/now v1.1.5
go: downloading github.com/Benau/go_rlottie v0.0.0-20210807002906-98c1b2421989
go: downloading github.com/av-elier/go-decimal-to-rational v0.0.0-20191127152832-89e6aad02ecf
go: downloading github.com/kettek/apng v0.0.0-20220823221153-ff692776a607
go: downloading github.com/sizeofint/webpanimation v0.0.0-20210809145948-1d2b32119882
go: downloading github.com/rivo/uniseg v0.4.3
go: downloading golang.org/x/text v0.7.0
go: downloading rsc.io/qr v0.2.0
go: downloading github.com/jinzhu/inflection v1.0.0
go: downloading github.com/gorilla/websocket v1.5.0
go: downloading golang.org/x/crypto v0.6.0
go: downloading filippo.io/edwards25519 v1.0.0
go: downloading github.com/jackc/pgpassfile v1.0.0
go: downloading github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a
# github.com/kolesa-team/go-webp/decoder
../../pkg/mod/github.com/kolesa-team/go-webp@v1.0.2/decoder/decoder.go:27:10: fatal error: webp/decode.h: No such file or directory
 #include <webp/decode.h>
          ^~~~~~~~~~~~~~~
compilation terminated.
# github.com/kolesa-team/go-webp/encoder
../../pkg/mod/github.com/kolesa-team/go-webp@v1.0.2/encoder/encoder.go:27:10: fatal error: webp/encode.h: No such file or directory
 #include <webp/encode.h>
          ^~~~~~~~~~~~~~~
compilation terminated.
root@ubuntu-s-2vcpu-2gb-amd-sgp1-01:~/go/src/watgbridge# go build
# github.com/kolesa-team/go-webp/decoder
../../pkg/mod/github.com/kolesa-team/go-webp@v1.0.2/decoder/decoder.go:27:10: fatal error: webp/decode.h: No such file or directory
 #include <webp/decode.h>
          ^~~~~~~~~~~~~~~
compilation terminated.
# github.com/kolesa-team/go-webp/encoder
../../pkg/mod/github.com/kolesa-team/go-webp@v1.0.2/encoder/encoder.go:27:10: fatal error: webp/encode.h: No such file or directory
 #include <webp/encode.h>
          ^~~~~~~~~~~~~~~
compilation terminated.

go version: go1.20.3 linux/amd64 system: ubuntu-20

akshettrj commented 1 year ago

I will try to make a docker image tomorrow, wait till then or try to install libwebp's latest version and then try to build because it requires webp C library

X-Gorn commented 1 year ago

thanks! now its working i'll be waiting for the docker support