marcus-crane / october

A simple GUI for retrieving Kobo highlights and syncing them with Readwise
https://october.utf9k.net
MIT License
171 stars 10 forks source link

Binary was compiled with 'CGO_ENABLED=0' error #40

Closed manikoutai closed 2 years ago

manikoutai commented 2 years ago

Hi, after installing October on my windows 10 machine, I am able to start it and it can see my Kobo. Meanwhile, when I click on it, I receive an error saying :

Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub.

What am I missing?

marcus-crane commented 2 years ago

Ah ok, I guess I need to explicitly enable CGO for Windows builds.

I haven't done extensive testing on Windows for a while but I'll release a new version shortly to fix this up. I personally use the macOS version and test the Windows version in a VM but I haven't done that in a little while.

marcus-crane commented 2 years ago

Hey there,

This should be fixed in v1.0.2 which I've just released. Thanks for pointing it out as this requirement apparently isn't a thing for macOS builds but it is needed for Windows. If you notice anything else, feel free to open another Github issue going forward but for now, I'll mark this as closed

leaanthony commented 2 years ago

@marcus-crane - You could always try https://pkg.go.dev/modernc.org/sqlite

marcus-crane commented 2 years ago

@leaanthony Ah, thanks! I'll have a look into it 🙂