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

Since 0.16.1 libgpiod.so.2 is missing #84

Closed
schnitzeltony opened this issue Sep 16, 2024 · 7 comments
Closed

Since 0.16.1 libgpiod.so.2 is missing #84

schnitzeltony opened this issue Sep 16, 2024 · 7 comments

Comments

@schnitzeltony
Copy link

Hi,

started playing around with this plugin on Fedora. To get team mates up fast we created some automatic setup [1] which worked perfectly on several machines.

Now that VSCode updated plugin automatically, debugging stopped working. Diving into lead to:

/home/superandy/.pico-sdk/openocd/0.12.0+dev/openocd.exe: error while loading shared libraries: libgpiod.so.2

Tried to hack around by installing openocd from Fedora and do adjustments in launch.json to start Fedora's openocd.

That works for pico but does not work for pico2 - seems Fedora's openocd is not yet aware of pico2.

Ahh and deletion of ~/.pico-sdk/openocd/ as suggested in [2] did not help.

Suggestions welcome :)

[1] https://github.com/ZeraGmbH/fedora-setup/blob/master/setup-raspi-pico
[2] #83

@will-v-pi
Copy link
Collaborator

Actually relates to #40 - you’ll need to install libgpiod with your system’s package manager, and then it should work.

Feel free to open a PR to add a note to the README, like we added for #40

@schnitzeltony
Copy link
Author

Forgot to mention: Have done that but got a libgpiod.so.3

@schnitzeltony
Copy link
Author

Tried pragmatic approach:
Let my fedora-setup scripts install dependencies and build raspi-fork of openocd. Build works but debugging now complains with different error.
What configure options do you use to build openocd? Is this information public available?

@schnitzeltony
Copy link
Author

That turned into a blocker: your openocd fork seems to depend on libgpiod-1.x.x. Fedora ships libgpiod-2.x.x. So now I see compile errors for changed API

@will-v-pi
Copy link
Collaborator

The build system is public in the raspberrypi/pico-sdk-tools repository. We recently added libgpiod to all Linux builds, but given this issue I think the solution is to only add libgpiod to arm64 Linux builds, as it's only used by the extension when running on Raspberry Pis. I'll push a fix and update the extension

@schnitzeltony
Copy link
Author

Ahh OK - that is good news - so I can stop hacking further

Thanks so far

@schnitzeltony
Copy link
Author

Thanks for super quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants