Skip to content

Building failed on libcamera.so #179

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

Closed
promfin opened this issue Jan 31, 2025 · 2 comments
Closed

Building failed on libcamera.so #179

promfin opened this issue Jan 31, 2025 · 2 comments

Comments

@promfin
Copy link

promfin commented Jan 31, 2025

Hello

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=14
PRODUCT_INCLUDE_TAGS=com.android.mainline mainline_module_prebuilt_nightly
TARGET_PRODUCT=aosp_rpi5
TARGET_BUILD_VARIANT=userdebug
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a76
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=generic
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.15.0-131-generic-x86_64-Ubuntu-22.04.5-LTS
HOST_CROSS_OS=windows
BUILD_ID=AP2A.240905.003
OUT_DIR=/home/out

After 8 minutes of build received this error:

FAILED: ninja: 'home/out/target/product/rpi5/obj_arm/MESON_LIBCAMERA/install/usr/local/lib/libcamera-hal.so', needed by '/home/out/target/product/rpi5/obj_arm/SHARED_LIBRARIES/camera.libcamera_intermediates/LINKED/camera.libcamera.so', missing and no known rule to make it
09:47:12 ninja failed with: exit status 1

failed to build some targets (08:09 (mm:ss))

Tried few times on different servers. What can be wrong?

@KonstaT
Copy link
Member

KonstaT commented Jan 31, 2025

Possibly a duplicate of #74.

Have you set OUT_DIR environment variable? OUT_DIR=/home/out seems odd as OUT_DIR=out is expected. Mesa and libcamera are built with external meson build system which doesn't support using custom output directory.

Also the actual error message is somewhere before what you copy&pasted here.

@KonstaT
Copy link
Member

KonstaT commented Feb 12, 2025

Closing as there's been no update in a couple of weeks. Assuming most likely resolved by not setting custom OUT_DIR.

@KonstaT KonstaT closed this as completed Feb 12, 2025
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

No branches or pull requests

2 participants