Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3903

Camera board • Rebuilding rpicam-apps

$
0
0
I had a full install and build of libcamera and rpicam-apps on a Pi5 and was trying to get a newer copy than:
rpicam-apps build: 1.4.3
libcamera build: v0.2.0+46-075b54d5

I have removed the rpicam-apps source directory and then followed the steps for “Building rpicam-apps without building libcamera”.

At the “meson compile -C build” step in "Building rpicam-apps" I get the following errors:

Code:

wkeeling@pi5dev:~/rpicam-apps $ meson compile -C buildINFO: autodetecting backend as ninjaINFO: calculating backend command to run: /usr/bin/ninja -C /home/wkeeling/rpicam-apps/buildninja: Entering directory `/home/wkeeling/rpicam-apps/build'[6/21] Compiling C++ object rpicam_app.so.1.5.0.p/image_dng.cpp.oFAILED: rpicam_app.so.1.5.0.p/image_dng.cpp.o c++ -Irpicam_app.so.1.5.0.p -I. -I.. -Icore -I/usr/local/include/libcamera -I/usr/include -I/usr/include/aarch64-linux-gnu -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/local/include -I/usr/include/aarch64-linux-gnu/qt5/QtCore -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=c++17 -O3 -pedantic -Wno-unused-parameter -faligned-new -D_FILE_OFFSET_BITS=64 -Wno-psabi -ftree-vectorize -DLIBAV_PRESENT=1 -DLIBDRM_PRESENT=1 -DLIBEGL_PRESENT=1 -DQT_PRESENT=1 -fPIC -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -pthread -DBOOST_ALL_NO_LIB -MD -MQ rpicam_app.so.1.5.0.p/image_dng.cpp.o -MF rpicam_app.so.1.5.0.p/image_dng.cpp.o.d -o rpicam_app.so.1.5.0.p/image_dng.cpp.o -c ../image/dng.cpp../image/dng.cpp:73:20: error: 'RGGB_PISP_COMP1' is not a member of 'libcamera::formats'; did you mean 'RGGB16_PISP_COMP1'?   73 |         { formats::RGGB_PISP_COMP1, { "RGGB-16-PISP", 16, TIFF_RGGB, false, true } },      |                    ^~~~~~~~~~~~~~~      |                    RGGB16_PISP_COMP1../image/dng.cpp:74:20: error: 'GRBG_PISP_COMP1' is not a member of 'libcamera::formats'; did you mean 'GRBG16_PISP_COMP1'?   74 |         { formats::GRBG_PISP_COMP1, { "GRBG-16-PISP", 16, TIFF_GRBG, false, true } },      |                    ^~~~~~~~~~~~~~~      |                    GRBG16_PISP_COMP1../image/dng.cpp:75:20: error: 'GBRG_PISP_COMP1' is not a member of 'libcamera::formats'; did you mean 'GBRG16_PISP_COMP1'?   75 |         { formats::GBRG_PISP_COMP1, { "GBRG-16-PISP", 16, TIFF_GBRG, false, true } },      |                    ^~~~~~~~~~~~~~~      |                    GBRG16_PISP_COMP1../image/dng.cpp:76:20: error: 'BGGR_PISP_COMP1' is not a member of 'libcamera::formats'; did you mean 'BGGR16_PISP_COMP1'?   76 |         { formats::BGGR_PISP_COMP1, { "BGGR-16-PISP", 16, TIFF_BGGR, false, true } },      |                    ^~~~~~~~~~~~~~~      |                    BGGR16_PISP_COMP1../image/dng.cpp:77:1: error: could not convert '{{libcamera::formats::SRGGB10_CSI2P, {"RGGB-10", 10, TIFF_RGGB, true, false}}, {libcamera::formats::SGRBG10_CSI2P, {"GRBG-10", 10, TIFF_GRBG, true, false}}, {libcamera::formats::SBGGR10_CSI2P, {"BGGR-10", 10, TIFF_BGGR, true, false}}, {libcamera::formats::SGBRG10_CSI2P, {"GBRG-10", 10, TIFF_GBRG, true, false}}, {libcamera::formats::SRGGB10, {"RGGB-10", 10, TIFF_RGGB, false, false}}, {libcamera::formats::SGRBG10, {"GRBG-10", 10, TIFF_GRBG, false, false}}, {libcamera::formats::SBGGR10, {"BGGR-10", 10, TIFF_BGGR, false, false}}, {libcamera::formats::SGBRG10, {"GBRG-10", 10, TIFF_GBRG, false, false}}, {libcamera::formats::SRGGB12_CSI2P, {"RGGB-12", 12, TIFF_RGGB, true, false}}, {libcamera::formats::SGRBG12_CSI2P, {"GRBG-12", 12, TIFF_GRBG, true, false}}, {libcamera::formats::SBGGR12_CSI2P, {"BGGR-12", 12, TIFF_BGGR, true, false}}, {libcamera::formats::SGBRG12_CSI2P, {"GBRG-12", 12, TIFF_GBRG, true, false}}, {libcamera::formats::SRGGB12, {"RGGB-12", 12, TIFF_RGGB, false, false}}, {libcamera::formats::SGRBG12, {"GRBG-12", 12, TIFF_GRBG, false, false}}, {libcamera::formats::SBGGR12, {"BGGR-12", 12, TIFF_BGGR, false, false}}, {libcamera::formats::SGBRG12, {"GBRG-12", 12, TIFF_GBRG, false, false}}, {libcamera::formats::SRGGB16, {"RGGB-16", 16, TIFF_RGGB, false, false}}, {libcamera::formats::SGRBG16, {"GRBG-16", 16, TIFF_GRBG, false, false}}, {libcamera::formats::SBGGR16, {"BGGR-16", 16, TIFF_BGGR, false, false}}, {libcamera::formats::SGBRG16, {"GBRG-16", 16, TIFF_GBRG, false, false}}, {libcamera::formats::R10_CSI2P, {"BGGR-10", 10, TIFF_BGGR, true, false}}, {libcamera::formats::R10, {"BGGR-10", 10, TIFF_BGGR, false, false}}, {libcamera::formats::R12, {"BGGR-12", 12, TIFF_BGGR, false, false}}, {<expression error>, {"RGGB-16-PISP", 16, TIFF_RGGB, false, true}}, {<expression error>, {"GRBG-16-PISP", 16, TIFF_GRBG, false, true}}, {<expression error>, {"GBRG-16-PISP", 16, TIFF_GBRG, false, true}}, {<expression error>, {"BGGR-16-PISP", 16, TIFF_BGGR, false, true}}}' from '<brace-enclosed initializer list>' to 'const std::map<libcamera::PixelFormat, BayerFormat>'   77 | };      | ^      | |      | <brace-enclosed initializer list>[11/21] Compiling C++ object apps/rpicam-vid.p/rpicam_vid.cpp.oninja: build stopped: subcommand failed.
What am I missing? Do I need some cleanup for the older version?

Thanks

Statistics: Posted by wkeeling — Wed Aug 07, 2024 8:55 pm



Viewing all articles
Browse latest Browse all 3903

Trending Articles