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

Cannot build for arm64 (aarch64) since the new 0.3.0 version #39

Open
ItzSiL3Nce opened this issue Oct 29, 2024 · 2 comments · May be fixed by #48
Open

Cannot build for arm64 (aarch64) since the new 0.3.0 version #39

ItzSiL3Nce opened this issue Oct 29, 2024 · 2 comments · May be fixed by #48

Comments

@ItzSiL3Nce
Copy link

Before upgrading to version 0.3.0, I could build an application using libcamera-rs as a dependency for aarch64.
With the new version I get linking errors in libcamera saying that they expect a elf64-x86-64 version of libcamera.
For now, I'm sticking to version 0.2.3 which works perfectly, but it's missing the updated constants.

@ItzSiL3Nce ItzSiL3Nce changed the title Cannot build arm64 (aarch64) since the new 2.3.0 version Cannot build for arm64 (aarch64) since the new 0.3.0 version Oct 29, 2024
@chemicstry
Copy link
Contributor

Could you give more information about your build setup? Are you cross-compiling on a x86 host?

@fishrockz
Copy link

So when cross compiling we have to be very careful what we build depend on, as it must be build able on the host.

when i cross compile i typically only have libcamera for the target so i can not build main line of this repo..

this repo depends on libcamera-sys for both dev (running build.sh) and build (building the final bin/lib)

I was able to cheat and get round this with main...fishrockz:libcamera-rs:willsalmon/extra-include but its a bit hacky, i hope to find a nicer way todo this and submit a patch.

@fishrockz fishrockz linked a pull request Dec 20, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

3 participants