compling itd / itgui for pinetime with go
#1
I am trying to get the ITD daemon to work in Postmarket. 

I am feeling extremely silly that I can't figure this out. i recently moved from mobian to postmarket. i compiled it in mobian but am struggling to compile it in postmarket.

https://gitea.arsenm.dev/Arsen6331/itd
- Readme says to do make & sudo make install but alpine go only has build.

Code:
pine64-pinephone:~/itd$ [b]go build[/b]
go: downloading github.com/gen2brain/dlgs v0.0.0-20211108104213-bade24837f0b
go: downloading github.com/knadh/koanf v1.4.0
go: downloading github.com/godbus/dbus/v5 v5.0.6
go: downloading github.com/mattn/go-isatty v0.0.14
go: downloading github.com/rs/zerolog v1.26.1
go: downloading go.arsenm.dev/infinitime v0.0.0-20220511202257-9ed74726c478
go: downloading go.arsenm.dev/lrpc v0.0.0-20220513001344-3bcc01fdb6a0
go: downloading modernc.org/sqlite v1.17.2
go: downloading github.com/pelletier/go-toml v1.9.3
go: downloading github.com/fsnotify/fsnotify v1.5.1
go: downloading github.com/mitchellh/copystructure v1.2.0
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading golang.org/x/sys v0.0.0-20220408201424-a24fb2fb8a0f
go: downloading github.com/muka/go-bluetooth v0.0.0-20220219050759-674a63b8741a
go: downloading github.com/fxamacker/cbor/v2 v2.4.0
go: downloading github.com/mozillazg/go-pinyin v0.19.0
go: downloading golang.org/x/text v0.3.7
go: downloading github.com/vmihailenco/msgpack/v5 v5.3.5
go: downloading github.com/gofrs/uuid v4.2.0+incompatible
go: downloading golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4
go: downloading github.com/mitchellh/reflectwalk v1.0.2
go: downloading github.com/sirupsen/logrus v1.8.1
go: downloading github.com/fatih/structs v1.1.0
go: downloading github.com/x448/float16 v0.8.4
go: downloading github.com/vmihailenco/tagparser/v2 v2.0.0
go: downloading modernc.org/libc v1.16.7
go: downloading github.com/google/uuid v1.3.0
go: downloading modernc.org/mathutil v1.4.1
go: downloading modernc.org/memory v1.1.1
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0
main.go:42:12: pattern version.txt: no matching files found


Didn't finish. I tried searching online for what this means but to no avail.

I tried to also compile the ITD GUI app.


Code:
pine64-pinephone:~/itd$ [b]go build ./cmd/itgui[/b]
go: downloading fyne.io/fyne/v2 v2.1.4
go: downloading github.com/metal3d/fyne-x v0.0.0-20220508095732-177117e583fb
go: downloading github.com/yuin/goldmark v1.4.4
go: downloading github.com/fredbi/uri v0.0.0-20181227131451-3dcfdacbaaf3
go: downloading github.com/go-gl/glfw/v3.3/glfw v0.0.0-20211204153444-caad923f49f4
go: downloading github.com/goki/freetype v0.0.0-20181231101311-fa8a33aabaff
go: downloading github.com/srwiley/oksvg v0.0.0-20211120171407-1837d6608d8c
go: downloading github.com/srwiley/rasterx v0.0.0-20210519020934-456a8d69b780
go: downloading golang.org/x/image v0.0.0-20211028202545-6944b10bf410
go: downloading github.com/go-gl/gl v0.0.0-20211210172815-726fda9656d6
# github.com/go-gl/glfw/v3.3/glfw
In file included from ./glfw/src/../include/GLFW/glfw3.h:108,
                from ./glfw/src/internal.h:49,
                from ./glfw/src/context.c:30,
                from ../go/pkg/mod/github.com/go-gl/glfw/v3.3/glfw@v0.0.0-20211204153444-caad923f49f4/c_glfw.go:4:
/usr/lib/gcc/aarch64-alpine-linux-musl/11.2.1/include/stdint.h:9:26: error: no include path in which to search for stdint.h
    9 | # include_next <stdint.h>
      |                          ^
In file included from ./glfw/src/internal.h:188,
                from ./glfw/src/context.c:30,
                from ../go/pkg/mod/github.com/go-gl/glfw/v3.3/glfw@v0.0.0-20211204153444-caad923f49f4/c_glfw.go:4:
./glfw/src/x11_platform.h:28:10: fatal error: unistd.h: No such file or directory
  28 | #include <unistd.h>
      |          ^~~~~~~~~~
compilation terminated.
# github.com/go-gl/gl/v3.1/gles2
../go/pkg/mod/github.com/go-gl/gl@v0.0.0-20211210172815-726fda9656d6/v3.1/gles2/conversions.go:12:11: fatal error: stdlib.h: No such file or directory
  12 | // #include <stdlib.h>
      |          ^~~~~~~~~~
compilation terminated.


I have even less idea what is happening here.

Before I file an issue at the ITD repository I want to check there isn't some silly mistake on my end here.

- how do I compile ITD?
- or is there another way to make Pinetime work with PostmarketOS?

Thank you for reading and for any suggestions you may offer. Smile
  Reply
#2
I think itd reguires systemd - so it wll not work without extra effort Smile

Siglo works (as good as Siglo does but it works)
Amazfish works somehow but I think it also requires systemd for some features - mostly the background daemon

I use Siglo and it is good enough for me. (I am not using it fo notifications or some other fancy things)
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)