Open ethancheez opened 1 year ago
@ethancheez I haven't tried building libcamera for a raspberry pi zero. As for the cross compilers I used, I got them from https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads
For the libcamera-aarch32.txt
file, do these have to be to the path of the cross compiler? Or is libcamera built using the native compilers?
[binaries]
c = 'arm-linux-gnueabihf-gcc'
cpp = 'arm-linux-gnueabihf-g++'
ar = 'arm-linux-gnueabihf-ar'
strip = 'arm-linux-gnueabihf-strip'
Also, if we are using an x86 machine, does the arm
have to be changed to x86_64
?
[host_machine]
system = 'linux'
cpu_family = 'arm'
cpu = 'arm'
endian = 'little'
The libcamera-aarch32.txt
has the path for the cross compilers. There's some info at https://github.com/raspberrypi/libcamera for building libcamera with native compilers. As for the second question - yes, I believe you would need to change the cpu
and cpu_family
entries to be x86_64
. There's a table in the meson build docs with the options you can use: https://mesonbuild.com/Reference-tables.html#cpu-families
@jwest115 Have you tested building libcamera for a Raspberry Pi Zero? Where did you get the cross compiler for the Raspberry Pi you used?
Building using a Rpi Zero cross-compiler produces these errors: