| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 29,677
» Latest member: Charlotten
» Forum threads: 16,251
» Forum posts: 117,164
Full Statistics
|
|
|
| compling itd / itgui for pinetime with go |
|
Posted by: arkadione - 07-10-2022, 03:41 AM - Forum: PostmarketOS on PinePhone
- Replies (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.
|
|
|
|
| can anyone suggest their working Linux bluetooth USB dongles to connect to Pinetime? |
|
Posted by: jahway603 - 07-09-2022, 08:53 PM - Forum: General Discussion on PineTime
- Replies (4)
|
 |
I really am loving my new Pinetime watch, but I've been having trouble connecting to it with the bluetooth USB dongles I have on Linux systems. The dongles are able to see other devices, and will eventually see the Pinetime, but it continues to fail to pair or connect with it. I've been able to use Gadgetbridge on Android to flash my Pinetime, but that requires the location permission so I would prefer to flash my Pinetime with a regular computer.
What bluetooth USB dongles (or chipsets) are other Pinetime users using on Linux to flash their watches?
|
|
|
|
| Idle tracking with PineTime: how versatile it is? |
|
Posted by: schaman - 07-09-2022, 06:02 PM - Forum: Development Discussion on PineTime
- Replies (1)
|
 |
Like nearly every office worker, I'm spending too much time sitting, and I often notice that only when it's quite late, and my legs are cramping. I bought a Fitbit, thinking that idle time tracking and notification is a basic use case for fitness trackers,and hence it's richly configurable, but it seems it's not. And neither for other trackers I've checked so far, in fact. The Fitbit accumulate data in every hour between :00 and :50, and if there was not enough movement, there is a gentle vibrating reminder. But if you miss that, there is no new reminder for 60 minutes. Plus if you do your 250 steps e.g. at 8:01am, and then you sit down,there is no reminder until 9:50. It's easy to see this is quite flawed.
Before I spend a lot of time studying the code, I would like to ask people who are more familiar with it: is the following is possible with PineTime? :
- wake up every 3 minutes, and check how much movement were made in the past 30 minutes (the numbers here should be configurable)
- if not enough (again, number of steps is configurable), vibrate
- do this only in the configurable time window, your work time
Could someone with a good overview give me a first hunch estimation whether this is feasible or not?
|
|
|
|
|