Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.9.0] Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work #19

Open
Traace opened this issue Feb 21, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@Traace
Copy link

Traace commented Feb 21, 2021

Affected Version: 0.9.0
Affected Platform: Windows (at least)

Problem:
Unable to run jellycli version 0.9.0. It crashes on launch. Version 0.8.1 works fine.

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

Steps to fix:
Maybe its enough to set CGO_ENABLED=1 as env var before building for windows

Workaround:
Use Version 0.8.1

@tryffel tryffel added the bug Something isn't working label Feb 21, 2021
@tryffel
Copy link
Owner

tryffel commented Mar 1, 2021

As a quick workaround, I somehow managed to run 0.9.0 in windows. Instructions:

  1. make sure you are connected to Jellyfin with e.g. version 0.8.0 and make sure config-file.jellycli is filled accordingly.
  2. Run 0.9.0, if it fails, edit config file and set player.enable_local_cache=False

Now jellycli 0.9.0 should work =)

I'm hoping to resolve the actual issue soon, though.

As for the actual issue, this was a problem with 0.8.1 and I disabled CGO_enabled back then (just didn't occur to users, because sqlite was added in 0.9.0):
https://cloud.drone.io/tryffel/jellycli/229/2/3

I think I will have to tweak the docker runtime for goreleaser, for cross-compilation to work.

EDIT: docker environment https://github.com/x1unix/docker-go-mingw works for windows builds, but not for Linux..

tryffel added a commit that referenced this issue Mar 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants