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

Arch linux builds need a meson prefix #105

Closed
Scottapotamas opened this issue Jul 6, 2023 · 3 comments
Closed

Arch linux builds need a meson prefix #105

Scottapotamas opened this issue Jul 6, 2023 · 3 comments

Comments

@Scottapotamas
Copy link

Got my orbtrace mini today and I've been speedrunning getting all the tooling going, coming from a SeggerGDBServer style setup.

Issue

Blindly following this repo's docs will lead overly keen Arch Linux users into a pretty typical error when any orb* tool tries to load liborb.so from the default install path /usr/local/lib/liborb.so.

orbtrace: error while loading shared libraries: liborb.so.0: cannot open shared object file: No such file or directory

Resolution

Arch Linux's packaging etiquette normally wants meson builds to be prefixed on /usr.

i.e. a more correct incantation for this repo's build is:

meson setup --prefix=/usr build

I'm happy to PR a note into the docs if you want.

@mubes
Copy link
Collaborator

mubes commented Jul 10, 2023

Hiya,
Yes, please generate a PR and add yourself to the CONTRIBUTORS file too. I can obviously make the change but it's easy to make a typo or miss something that's essential for the Arch case, whereas you can cut/paste it directly from a session.
Thanks
DAVE

@zyp
Copy link
Collaborator

zyp commented Jul 10, 2023

I don't think this is an Arch issue, all distros tends to want packages installed under the /usr prefix. The issue here is that you're not building a package, you're building nonpackaged software, and the convention is to install that under /usr/local to keep it separate from packaged software.

That said, the best way to solve this for Arch would be to write a PKGBUILD and have it included in AUR, so it becomes a package that gets installed in /usr. 🙂

@mubes
Copy link
Collaborator

mubes commented Jul 16, 2023

Fixed with a note in the readme in e3dba63. Thanks for the info.

@mubes mubes closed this as completed Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants