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

Camera board • libcamera compile error

$
0
0
Dear Sirs

I recompile libcamera to add the new camera and currently I see below errors even using newly "git clone" libcamera environment.
(I didn't see the error last time and I could add the new camera by DKMS.)
I'm following the below instruction as it is.
https://www.raspberrypi.com/documentati ... -libcamera

Code:

pi@BW64Desktop:~/libcamera $ ninja -C buildninja: Entering directory `build'[16/210] Generating src/ipa-priv-key with a custom command......+..+......+....+...+..+....+............+..+.+.........+..................+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.................+..............+...+.........+......+.......+..+...+...+....+...+.....+...+.............+...........+.........+......+.+........+....+..+...+......+....+...+........+......+....+......+...+........+....+........+......+.+......+.................+......+.......+.....+....+...+..+.+........+......+..........+.....+.........+..........+...........+....+.....+.......+...+...........+.+..+...+....+.........+.....+.......+.....+.........+......+...+..........+......+.....+.+..+.+...........+......+....+........+......+...............+....+...+...+.................+....+......+.....+...+.........+.+.....+.......+.....+.........+.............+...+........+....+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++..+.+.........+.....+....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...+...+.....+....+...........+.........+.+..+.+..+.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.....+.+.................+.+...........+...+......+.......+..+.+............+..+............+...+.......+........+......+....+......+.....+.......+..+...+............+...+...+.+...+...+..+.+....................+...............+......+.+........+............+.........+.+..+.......+...+...............+.....+.+..+...+.+.....+....+......+.....+......+...+.+..........................+...+.......+.........+...+.....+.+..............+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[49/210] Generating src/libcamera/ipa_pub_key_cpp with a custom commandwriting RSA key[109/210] Compiling C++ object src/libcamera/libcamera.so.0.3.0.p/pipeline_rpi_pisp_pisp.cpp.oFAILED: src/libcamera/libcamera.so.0.3.0.p/pipeline_rpi_pisp_pisp.cpp.o c++ -Isrc/libcamera/libcamera.so.0.3.0.p -Isrc/libcamera -I../src/libcamera -Iinclude -I../include -I../subprojects/libyaml/include -Isubprojects/libyaml/__CMake_build/include -I../subprojects/libyaml/__CMake_build/include -Isubprojects/libyaml/__CMake_build -I../subprojects/libyaml/__CMake_build -Isubprojects/libyaml -I../subprojects/libyaml -Iinclude/libcamera -Iinclude/libcamera/ipa -Iinclude/libcamera/internal -Isrc/libcamera/proxy -I/usr/local/include/libpisp -I/usr/include/p11-kit-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c++17 -O3 -Wshadow -include /home/pi/libcamera/build/config.h -fPIC -DYAML_DECLARE_STATIC -D_CRT_SECURE_NO_WARNINGS -DLIBCAMERA_BASE_PRIVATE -MD -MQ src/libcamera/libcamera.so.0.3.0.p/pipeline_rpi_pisp_pisp.cpp.o -MF src/libcamera/libcamera.so.0.3.0.p/pipeline_rpi_pisp_pisp.cpp.o.d -o src/libcamera/libcamera.so.0.3.0.p/pipeline_rpi_pisp_pisp.cpp.o -c ../src/libcamera/pipeline/rpi/pisp/pisp.cppIn file included from /usr/include/c++/12/bits/stl_pair.h:60,                 from /usr/include/c++/12/bits/stl_algobase.h:64,                 from /usr/include/c++/12/algorithm:60,                 from ../src/libcamera/pipeline/rpi/pisp/pisp.cpp:8:/usr/include/c++/12/type_traits: In substitution of 窶・emplate<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type [with bool _Cond = false; _Tp = void]窶・../src/libcamera/pipeline/rpi/pisp/pisp.cpp:742:26:   required from here/usr/include/c++/12/type_traits:2614:11: error: no type named 窶・ype窶・in 窶・truct std::enable_if<false, void>窶・ 2614 |     using enable_if_t = typename enable_if<_Cond, _Tp>::type;      |           ^~~~~~~~~~~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:742:33: error: template argument 2 is invalid  742 |         SharedMemObject<FrontEnd> fe_;      |                                 ^../src/libcamera/pipeline/rpi/pisp/pisp.cpp:743:32: error: template argument 2 is invalid  743 |         SharedMemObject<BackEnd> be_;      |                                ^../src/libcamera/pipeline/rpi/pisp/pisp.cpp: In member function 窶・irtual bool libcamera::PipelineHandlerPiSP::match(libcamera::DeviceEnumerator*)窶・../src/libcamera/pipeline/rpi/pisp/pisp.cpp:909:61: error: template argument 2 is invalid  909 |                         pisp->fe_ = SharedMemObject<FrontEnd>      |                                                             ^../src/libcamera/pipeline/rpi/pisp/pisp.cpp:911:60: error: template argument 2 is invalid  911 |                         pisp->be_ = SharedMemObject<BackEnd>      |                                                            ^../src/libcamera/pipeline/rpi/pisp/pisp.cpp:914:40: error: request for member 窶惑d窶・in 窶湾isp->libcamera::PiSPCameraData::fe_窶・ which is of non-class type 窶亙nt窶・  914 |                         if (!pisp->fe_.fd().isValid() || !pisp->be_.fd().isValid()) {      |                                        ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:914:69: error: request for member 窶惑d窶・in 窶湾isp->libcamera::PiSPCameraData::be_窶・ which is of non-class type 窶亙nt窶・  914 |                         if (!pisp->fe_.fd().isValid() || !pisp->be_.fd().isValid()) {      |                                                                     ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp: In member function 窶・irtual int libcamera::PipelineHandlerPiSP::prepareBuffers(libcamera::Camera*)窶・../src/libcamera/pipeline/rpi/pisp/pisp.cpp:1011:18: error: base operand of 窶・>窶・is not a pointer 1011 |         data->be_->GetTdnOutputFormat(tdn);      |                  ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp: In member function 窶・irtual libcamera::CameraConfiguration::Status libcamera::PiSPCameraData::platformValidate(libcamera::RPi::RPiCameraConfiguration*) const窶・../src/libcamera/pipeline/rpi/pisp/pisp.cpp:1294:49: error: base operand of 窶・>窶・is not a pointer 1294 |                                              be_->GetMaxDownscale());      |                                                 ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp: In member function 窶・irtual int libcamera::PiSPCameraData::platformConfigure(const libcamera::RPi::RPiCameraConfiguration*)窶・../src/libcamera/pipeline/rpi/pisp/pisp.cpp:1500:68: error: base operand of 窶・>窶・is not a pointer 1500 |                                                                 be_->GetMaxDownscale());      |                                                                    ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:1537:12: error: base operand of 窶・>窶・is not a pointer 1537 |         be_->GetGlobal(global);      |            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:1540:12: error: base operand of 窶・>窶・is not a pointer 1540 |         be_->SetGlobal(global);      |            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp: In member function 窶亙nt libcamera::PiSPCameraData::configureCfe()窶・../src/libcamera/pipeline/rpi/pisp/pisp.cpp:1843:38: error: invalid type argument of unary 窶・窶・(have 窶亙nt窶・ 1843 |         std::scoped_lock<FrontEnd> l(*fe_);      |                                      ^~~~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:1846:12: error: base operand of 窶・>窶・is not a pointer 1846 |         fe_->GetGlobal(global);      |            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:1865:20: error: base operand of 窶・>窶・is not a pointer 1865 |                 fe_->SetCompress(0, compress);      |                    ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:1871:12: error: base operand of 窶・>窶・is not a pointer 1871 |         fe_->SetGlobal(global);      |            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:1872:12: error: base operand of 窶・>窶・is not a pointer 1872 |         fe_->SetInput(input);      |            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:1873:12: error: base operand of 窶・>窶・is not a pointer 1873 |         fe_->SetOutputFormat(0, image);      |            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp: In member function 窶話ool libcamera::PiSPCameraData::calculateCscConfiguration(const libcamera::V4L2DeviceFormat&, pisp_be_ccm_config&)窶・../src/libcamera/pipeline/rpi/pisp/pisp.cpp:1887:28: error: base operand of 窶・>窶・is not a pointer 1887 |                         be_->InitialiseYcbcr(csc, "jpeg");      |                            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:1889:28: error: base operand of 窶・>窶・is not a pointer 1889 |                         be_->InitialiseYcbcr(csc, "smpte170m");      |                            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:1891:28: error: base operand of 窶・>窶・is not a pointer 1891 |                         be_->InitialiseYcbcr(csc, "rec709");      |                            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:1897:28: error: base operand of 窶・>窶・is not a pointer 1897 |                         be_->InitialiseYcbcr(csc, "jpeg");      |                            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp: In member function 窶亙nt libcamera::PiSPCameraData::configureBe(const std::optional<libcamera::ColorSpace>&)窶・../src/libcamera/pipeline/rpi/pisp/pisp.cpp:1921:12: error: base operand of 窶・>窶・is not a pointer 1921 |         be_->GetGlobal(global);      |            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:1944:20: error: base operand of 窶・>窶・is not a pointer 1944 |                 be_->SetDecompress(decompress);      |                    ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:1957:28: error: base operand of 窶・>窶・is not a pointer 1957 |                         be_->SetCsc(0, csc);      |                            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:1963:20: error: base operand of 窶・>窶・is not a pointer 1963 |                 be_->SetSmartResize(0, resize);      |                    ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:1967:20: error: base operand of 窶・>窶・is not a pointer 1967 |                 be_->SetOutputFormat(0, outputFormat0);      |                    ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:1981:28: error: base operand of 窶・>窶・is not a pointer 1981 |                         be_->SetCsc(1, csc);      |                            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:1987:20: error: base operand of 窶・>窶・is not a pointer 1987 |                 be_->SetSmartResize(1, resize);      |                    ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:1991:20: error: base operand of 窶・>窶・is not a pointer 1991 |                 be_->SetOutputFormat(1, outputFormat1);      |                    ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:1999:12: error: base operand of 窶・>窶・is not a pointer 1999 |         be_->SetTdnOutputFormat(tdnFormat);      |            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2000:12: error: base operand of 窶・>窶・is not a pointer 2000 |         be_->SetTdnInputFormat(tdnFormat);      |            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2008:20: error: base operand of 窶・>窶・is not a pointer 2008 |                 be_->SetTdnDecompress(tdnDecompress);      |                    ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2009:20: error: base operand of 窶・>窶・is not a pointer 2009 |                 be_->SetTdnCompress(tdnCompress);      |                    ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2018:12: error: base operand of 窶・>窶・is not a pointer 2018 |         be_->SetStitchOutputFormat(stitchFormat);      |            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2019:12: error: base operand of 窶・>窶・is not a pointer 2019 |         be_->SetStitchInputFormat(stitchFormat);      |            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2028:20: error: base operand of 窶・>窶・is not a pointer 2028 |                 be_->SetStitchDecompress(stitchDecompress);      |                    ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2029:20: error: base operand of 窶・>窶・is not a pointer 2029 |                 be_->SetStitchCompress(stitchCompress);      |                    ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2043:28: error: base operand of 窶・>窶・is not a pointer 2043 |                         be_->InitialiseYcbcr(ccm, "jpeg");      |                            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2044:28: error: base operand of 窶・>窶・is not a pointer 2044 |                         be_->SetYcbcr(ccm);      |                            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2045:28: error: base operand of 窶・>窶・is not a pointer 2045 |                         be_->InitialiseYcbcrInverse(ccm, "jpeg");      |                            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2046:28: error: base operand of 窶・>窶・is not a pointer 2046 |                         be_->SetYcbcrInverse(ccm);      |                            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2049:28: error: base operand of 窶・>窶・is not a pointer 2049 |                         be_->InitialiseYcbcr(ccm, "jpeg");      |                            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2050:28: error: base operand of 窶・>窶・is not a pointer 2050 |                         be_->SetYcbcr(ccm);      |                            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2051:28: error: base operand of 窶・>窶・is not a pointer 2051 |                         be_->InitialiseYcbcrInverse(ccm, "jpeg");      |                            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2052:28: error: base operand of 窶・>窶・is not a pointer 2052 |                         be_->SetYcbcrInverse(ccm);      |                            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2054:28: error: base operand of 窶・>窶・is not a pointer 2054 |                         be_->InitialiseYcbcr(ccm, "rec709_full");      |                            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2055:28: error: base operand of 窶・>窶・is not a pointer 2055 |                         be_->SetYcbcr(ccm);      |                            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2056:28: error: base operand of 窶・>窶・is not a pointer 2056 |                         be_->InitialiseYcbcrInverse(ccm, "rec709_full");      |                            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2057:28: error: base operand of 窶・>窶・is not a pointer 2057 |                         be_->SetYcbcrInverse(ccm);      |                            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2071:12: error: base operand of 窶・>窶・is not a pointer 2071 |         be_->SetGlobal(global);      |            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2072:12: error: base operand of 窶・>窶・is not a pointer 2072 |         be_->SetInputFormat(inputFormat);      |            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp: In member function 窶・irtual void libcamera::PiSPCameraData::platformSetIspCrop()窶・../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2086:12: error: base operand of 窶・>窶・is not a pointer 2086 |         be_->SetCrop(beCrop);      |            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp: In member function 窶・irtual int libcamera::PiSPCameraData::platformInitIpa(libcamera::ipa::RPi::InitParams&)窶・../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2091:25: error: request for member 窶惑d窶・in 窶・(libcamera::PiSPCameraData*)this)->libcamera::PiSPCameraData::fe_窶・ which is of non-class type 窶亙nt窶・ 2091 |         params.fe = fe_.fd();      |                         ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2092:25: error: request for member 窶惑d窶・in 窶・(libcamera::PiSPCameraData*)this)->libcamera::PiSPCameraData::be_窶・ which is of non-class type 窶亙nt窶・ 2092 |         params.be = be_.fd();      |                         ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp: In member function 窶・oid libcamera::PiSPCameraData::prepareCfe()窶・../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2170:46: error: invalid type argument of unary 窶・窶・(have 窶亙nt窶・ 2170 |                 std::scoped_lock<FrontEnd> l(*fe_);      |                                              ^~~~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2172:20: error: base operand of 窶・>窶・is not a pointer 2172 |                 fe_->Prepare(reinterpret_cast<pisp_fe_config *>(configBuffer.data()));      |                    ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp: In member function 窶・oid libcamera::PiSPCameraData::prepareBe(uint32_t, bool)窶・../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2210:12: error: base operand of 窶・>窶・is not a pointer 2210 |         be_->Prepare(configBuffer);      |            ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp:2226:34: error: base operand of 窶・>窶・is not a pointer 2226 |                         of << be_->GetJsonConfig(configBuffer);      |                                  ^~../src/libcamera/pipeline/rpi/pisp/pisp.cpp: At global scope:../src/libcamera/pipeline/rpi/pisp/pisp.cpp:668:14: error: 窶・nsigned int libcamera::{anonymous}::calculateSwDownscale(const libcamera::V4L2DeviceFormat&, unsigned int, unsigned int)窶・defined but not used [-Werror=unused-function]  668 | unsigned int calculateSwDownscale(const V4L2DeviceFormat &format, unsigned int largestWidth,      |              ^~~~~~~~~~~~~~~~~~~~cc1plus: all warnings being treated as errors[114/210] Compiling C++ object src/libcamera/libcamera.so.0.3.0.p/pipeline_rpi_vc4_vc4.cpp.oninja: build stopped: subcommand failed.
It would be great to hear the solution.

sohonomura2020

Statistics: Posted by sohonomura2020 — Thu Jun 20, 2024 10:04 am



Viewing all articles
Browse latest Browse all 3843

Trending Articles