[libcamera-devel] libcamera on Nokia N900

Laurent Pinchart laurent.pinchart at ideasonboard.com
Sun Aug 7 15:05:19 CEST 2022


Hi Pavel,

On Sun, Aug 07, 2022 at 02:22:08PM +0200, Pavel Machek wrote:
> Hi!
> 
> So... I tried to get libcamera to work on N900. I took latest Maemo
> Leste I could find, but meson there is too old for the build, so that
> would not work. Would 256MB RAM be enough for the build?

Did the N900 really have 256MB of RAM ? Oh my...

Cross-compilation is the best option I think.

> Next I tried cross-compiling from pinephone.

*from* the pinephone ? I'd recommend cross-compiling from a fast x86
machine :-)

> sudo apt install libc6-dev-armhf-cross/ libstdc++6-armhf-cross gcc-arm-linux-gnueabihf b\
> inutils-arm-linux-gnueabihf-dbg
> 
> meson build --reconfigure --cross-file cross_file.txt
> CROSS="--cross-file cross_file.txt" ninja -C build
> 
> Unfortunately, ninja tends to re-run meson during early stage of the
> build, which breaks cross-build.
> 
> If you have ideas how to get it to build, they are welcome.

I cross-compile libcamera nearly every day, so it's a well-supported
workflow. When ninja re-runs meson, it shouldn't lose the cross-file, it
doesn't wipe the meson state completely.

Can you try with a fresh build directory ?

mkdir build
cd build
meson setup --cross-file /path/to/cross_file.txt ..
ninja

Running ninja from the source directory and pointing it to the build
directory with -C should work equally well, but I don't usually do that,
so let's first try to get something working with my workflow and then
adapt it if needed.

Please provide complete logs if you run into issues.

-- 
Regards,

Laurent Pinchart


More information about the libcamera-devel mailing list