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

libcamera.so not recognized #1940

Closed
1 of 13 tasks
baloghzipbier opened this issue Jun 13, 2023 · 5 comments · Fixed by #1997
Closed
1 of 13 tasks

libcamera.so not recognized #1940

baloghzipbier opened this issue Jun 13, 2023 · 5 comments · Fixed by #1997
Labels
bug Something isn't working rpi-camera

Comments

@baloghzipbier
Copy link

Which version are you using?

v0.23.5

Which operating system are you using?

  • Linux amd64 standard
  • Linux amd64 Docker
  • Linux arm64 standard
  • Linux arm64 Docker
  • Linux arm7 standard
  • Linux arm7 Docker
  • Linux arm6 standard
  • Linux arm6 Docker
  • Windows amd64 standard
  • Windows amd64 Docker (WSL backend)
  • macOS amd64 standard
  • macOS amd64 Docker
  • Other (Yocto arm7 based on meta-rpi )

Describe the issue

My issue is when I start the app, i have this error:
ERR: libcamera is 64-bit, you need the 64-bit server version

I found what is causing, the "findLibrary" function checks the url with ldconfig is that contains the "arm-linux-gnueabihf" part.

func findLibrary(name string) (string, error) {

With the v0.22.0 my yocto environment works(without the check). Maybe we can check that somehow else is this an 32bit or 64bit OS?

my ldconfig -p is contains this
libcamera.so.0.0.4 (libc6) => /usr/lib/libcamera.so.0.0.4
libcamera-base.so.0.0.4 (libc6) => /usr/lib/libcamera-base.so.0.0.4

Describe how to replicate the issue

Did you attach the server logs?

no

Did you attach a network dump?

no

@aler9
Copy link
Member

aler9 commented Jun 27, 2023

Hello, due to #1644, the 32/64 bit check has to be performed on the library, not elsewhere. We can certainly find a better way to do it than checking the path name, for instance by analyzing the ELF header of the library, that may contain the 32/64 bit information.

@aler9
Copy link
Member

aler9 commented Jun 27, 2023

I've moved the 64 bit check from the path to the ELF header of the library, please test this nightly release and confirm that the fix works:

[link removed]

@baloghzipbier
Copy link
Author

I can confirm that is working in this way! Thanks!

@aler9
Copy link
Member

aler9 commented Jul 1, 2023

added in v0.23.7

Copy link
Contributor

github-actions bot commented Jan 3, 2024

This issue is being locked automatically because it has been closed for more than 6 months.
Please open a new issue in case you encounter a similar problem.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working rpi-camera
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants