Recamera OS Build issues

Hello,
I had some success building recamera OS on ubuntu VM but i was not very friendly because of performances.
I installed a physical Ubuntu (tried 20.04.06 , 22.04.05, and 24.04.01) and i fall always on error like this one :
config.status: executing libtool commands
make[2]: *** [Makefile:88: _all] Error 2
make[2]: Leaving directory ‘/home/jmc/reCamera-OS/output/sg2002_recamera_emmc/buildroot-2021.05’
make[1]: *** [Makefile:574: br-rootfs-pack] Error 2
make[1]: Leaving directory ‘/home/jmc/reCamera-OS/output/sg2002_recamera_emmc/build’
make: *** [Makefile:18: sg2002_recamera_emmc] Error 1

Any Idea to resolve this ?

Hi there,

Sounds like it’s too Big? The emmc and rootfs is paking it and it’s a NO go.
Try building the basic thing first . does it build?
let us know.
HTH
GL :slight_smile: PJ :v:
I asked AI…
Below are some common reasons and potential fixes when Buildroot (or a similar Yocto/embedded Linux build system) fails with an error like:

less

Copy code

config.status: executing libtool commands
make[2]: *** [Makefile:88: _all] Error 2
make[2]: Leaving directory ‘/home/jmc/reCamera-OS/output/sg2002_recamera_emmc/buildroot-2021.05’
make[1]: *** [Makefile:574: br-rootfs-pack] Error 2
make[1]: Leaving directory ‘/home/jmc/reCamera-OS/output/sg2002_recamera_emmc/build’
make: *** [Makefile:18: sg2002_recamera_emmc] Error 1

1. Install All Required Build Dependencies

On a fresh Ubuntu install, you may be missing some packages. Even if you installed a few, you might need additional dev libraries. Make sure you have:

  1. Basic build tools

bash

Copy code

sudo apt-get update
sudo apt-get install build-essential git
  1. Autoconf / Automake / Libtool

bash

Copy code

sudo apt-get install autoconf automake libtool
  1. Other build libs (commonly needed for Buildroot / Yocto):

bash

Copy code

sudo apt-get install bison flex texinfo gawk libncurses5-dev \
     libssl-dev cpio unzip rsync python3 xz-utils zlib1g-dev
  • Ubuntu 22.04 and later sometimes rename or reorganize packages, so adapt if necessary.
  1. chrpath (often needed for relocatable binaries in embedded builds):

bash

Copy code

sudo apt-get install chrpath
  1. bc (sometimes needed in kernel/uboot builds):

bash

Copy code

sudo apt-get install bc

If you’re missing any of the key dependencies, Buildroot’s configure scripts (which might run ./configure, config.status, etc.) can fail unexpectedly.

2. Delete and Re-Extract (Clean Rebuild)

Build systems like Buildroot can leave stale artifacts if a previous partial build failed. Try:

  1. Back up your config (e.g., .config) if you customized it.
  2. Completely remove or clean the output/ or build/ directory:

bash

Copy code

make clean

or

bash

Copy code

rm -rf output/* build/*
  1. Re-run your build from scratch:

bash

Copy code

make sg2002_recamera_emmc

Sometimes simply cleaning out the old partial build files resolves weird libtool or make errors.

3. Check the Host OS for Known Buildroot Quirks

  • Ubuntu 20.04 is usually fine, but if you’re on 22.04 or 24.04 (beta?), there could be issues with updated toolchains or certain out-of-date recipes in Buildroot 2021.05.
  • Some Buildroot versions don’t handle newer host compilers or glibc versions well. A patch or a newer Buildroot might be required.

4. Try a Docker or LXD Container

If you keep hitting weird errors on your main Ubuntu host, you could:

  1. Spin up a Docker container with an Ubuntu 20.04 or 22.04 base image.
  2. Install all the dev dependencies.
  3. Clone your recamera build environment into that container.
  4. Attempt the build in a clean, reproducible environment.

This approach often bypasses local OS differences and ensures you have exactly the libs Buildroot expects.

5. Double-Check the Buildroot/Project Docs

  • The recamera OS might have specific instructions: “If you’re using Ubuntu, install these packages….”
  • Some projects rely on environment variables or symlinks that might be missing. E.g., if JAVA_HOME or CC isn’t set, certain builds can fail in the configure step.
  • If it’s specifically failing at libtool commands, it might be that your host’s libtool version or environment doesn’t match what Buildroot expects.

6. Inspect the Logs

Look in output/sg2002_recamera_emmc/buildroot-2021.05 or the subdirectory where it was compiling the failing package:

  1. Look for “config.log” or any logs with actual error messages about missing headers, libraries, or “checking for something… no.”
  2. If the build triggered “Error 2” at a sub-step, the real error might appear just a few lines above in the logs.

Quick Check Summary

  1. Install all standard dev packages (build-essential, libtool, autoconf, automake, etc.).
  2. Clean the build directories thoroughly.
  3. Try Docker or an environment known to be stable for Buildroot 2021.05.
  4. Check logs for the true error cause.

Following these steps usually gets rid of the dreaded _all Error 2 messages in Buildroot or any embedded Linux environment. Good luck with your recamera OS build!

:v:

Thanks for your help.
Last night i analyzed all the make traces and i found that the package “expat_V2.4.1” is obsolet end not available anymore from sourceforge so ERR 404 during the download.
Actual version of expat is 4.6.9.
I tried to change de expat revision in buildroot (expat.mk) but without success.

Is there also some problem of sha fingerprint for musl-compat-headers and opkg-utils-0.4.3-br1.tar.gz

The buildroot 2021-05 used for reCamera-os seem to be obsolete.

After restoring reCamera project from my VM to my physical ubuntu 24.04 and installing libperc3, it’s build fine.
I made some diff between the both directory and the old recamera -OS is “0.1.4 (2024-11-12)” and it built fine, the newer is “0.1.4 (2024-12-23)” and it does’nt build.
may-be some builds tools requisite are not specify in the readme of reCamera-OS.

Hi there,

So would you conclude that in a VM it won’t build.? Only on a hard metal Host.
Let’s hope they see this and Figure it out, it will be essential to using it in real apps.

GL :slight_smile: PJ :v: