Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pi@raspberrypi:~/Desktop/compile/libcamera $ ninja -C build install
- ninja: Entering directory `build'
- [5/106] Compiling C++ object src/libcamera/libcamera.so.0.0.0.p/pipeline_simple_converter_gl.cpp.o
- FAILED: src/libcamera/libcamera.so.0.0.0.p/pipeline_simple_converter_gl.cpp.o
- c++ -Isrc/libcamera/libcamera.so.0.0.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 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Werror -std=c++17 -O0 -g -Wno-psabi -Wshadow -include /home/pi/Desktop/compile/libcamera/build/config.h -fPIC -DYAML_DECLARE_STATIC -D_CRT_SECURE_NO_WARNINGS -DLIBCAMERA_BASE_PRIVATE -MD -MQ src/libcamera/libcamera.so.0.0.0.p/pipeline_simple_converter_gl.cpp.o -MF src/libcamera/libcamera.so.0.0.0.p/pipeline_simple_converter_gl.cpp.o.d -o src/libcamera/libcamera.so.0.0.0.p/pipeline_simple_converter_gl.cpp.o -c ../src/libcamera/pipeline/simple/converter_gl.cpp
- In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
- ../src/libcamera/pipeline/simple/converter_gl.h:32:42: error: ‘GlRenderTarget’ was not declared in this scope
- 32 | std::pair<std::unique_ptr<FrameBuffer>, GlRenderTarget> createBuffer(unsigned int index);
- | ^~~~~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:32:56: error: template argument 2 is invalid
- 32 | std::pair<std::unique_ptr<FrameBuffer>, GlRenderTarget> createBuffer(unsigned int index);
- | ^
- ../src/libcamera/pipeline/simple/converter_gl.h:53:14: error: ‘GlRenderTarget’ was not declared in this scope
- 53 | std::vector<GlRenderTarget> outputBuffers;
- | ^~~~~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:53:28: error: template argument 1 is invalid
- 53 | std::vector<GlRenderTarget> outputBuffers;
- | ^
- ../src/libcamera/pipeline/simple/converter_gl.h:53:28: error: template argument 2 is invalid
- ../src/libcamera/pipeline/simple/converter_gl.cpp: In member function ‘int libcamera::SimpleConverter::configure(const libcamera::StreamConfiguration&, const libcamera::StreamConfiguration&)’:
- ../src/libcamera/pipeline/simple/converter_gl.cpp:38:1: error: no return statement in function returning non-void [-Werror=return-type]
- 38 | }
- | ^
- ../src/libcamera/pipeline/simple/converter_gl.cpp: In member function ‘std::vector<std::unique_ptr<libcamera::FrameBuffer> > libcamera::SimpleConverter::exportBuffers(unsigned int, std::vector<std::unique_ptr<libcamera::FrameBuffer> >*)’:
- ../src/libcamera/pipeline/simple/converter_gl.cpp:45:17: error: request for member ‘emplace_back’ in ‘((libcamera::SimpleConverter*)this)->libcamera::SimpleConverter::outputBuffers’, which is of non-class type ‘int’
- 45 | outputBuffers.emplace_back(tex.second);
- | ^~~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp:45:34: error: request for member ‘second’ in ‘tex’, which is of non-class type ‘int’
- 45 | outputBuffers.emplace_back(tex.second);
- | ^~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp:46:36: error: request for member ‘first’ in ‘tex’, which is of non-class type ‘int’
- 46 | buffers->push_back(std::move(tex.first));
- | ^~~~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp: At global scope:
- ../src/libcamera/pipeline/simple/converter_gl.cpp:51:57: error: no declaration matches ‘std::pair<std::unique_ptr<libcamera::FrameBuffer>, libcamera::GlRenderTarget> libcamera::SimpleConverter::createBuffer(unsigned int)’
- 51 | std::pair<std::unique_ptr<FrameBuffer>, GlRenderTarget> SimpleConverter::createBuffer(unsigned int index)
- | ^~~~~~~~~~~~~~~
- In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
- ../src/libcamera/pipeline/simple/converter_gl.h:32:58: note: candidate is: ‘int libcamera::SimpleConverter::createBuffer(unsigned int)’
- 32 | std::pair<std::unique_ptr<FrameBuffer>, GlRenderTarget> createBuffer(unsigned int index);
- | ^~~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:24:7: note: ‘class libcamera::SimpleConverter’ defined here
- 24 | class SimpleConverter
- | ^~~~~~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp: In member function ‘libcamera::SimpleConverter::dmabuf_image libcamera::SimpleConverter::import_dmabuf(int, libcamera::Size, libcamera::PixelFormat)’:
- ../src/libcamera/pipeline/simple/converter_gl.cpp:75:66: error: declaration of ‘fd’ shadows a member of ‘libcamera::SimpleConverter’ [-Werror=shadow]
- 75 | SimpleConverter::dmabuf_image SimpleConverter::import_dmabuf(int fd, Size pixelSize, libcamera::PixelFormat format)
- | ~~~~^~
- In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
- ../src/libcamera/pipeline/simple/converter_gl.h:63:6: note: shadowed declaration is here
- 63 | int fd;
- | ^~
- ../src/libcamera/pipeline/simple/converter_gl.cpp: In member function ‘void libcamera::SimpleConverter::start()’:
- ../src/libcamera/pipeline/simple/converter_gl.cpp:125:25: error: cannot convert ‘gbm_device*’ to ‘libcamera::gbm_device*’ in assignment
- 125 | gbm = gbm_create_device(fd);
- | ~~~~~~~~~~~~~~~~~^~~~
- | |
- | gbm_device*
- In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:3:
- /usr/include/gbm.h:46:8: note: class type ‘gbm_device’ is incomplete
- 46 | struct gbm_device;
- | ^~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp: In member function ‘void libcamera::SimpleConverter::stop()’:
- ../src/libcamera/pipeline/simple/converter_gl.cpp:228:21: error: cannot convert ‘libcamera::gbm_device*’ to ‘gbm_device*’
- 228 | gbm_device_destroy(gbm);
- | ^~~
- | |
- | libcamera::gbm_device*
- In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:3:
- /usr/include/gbm.h:265:39: note: initializing argument 1 of ‘void gbm_device_destroy(gbm_device*)’
- 265 | gbm_device_destroy(struct gbm_device *gbm);
- | ~~~~~~~~~~~~~~~~~~~^~~
- In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
- ../src/libcamera/pipeline/simple/converter_gl.h:67:9: note: class type ‘libcamera::gbm_device’ is incomplete
- 67 | struct gbm_device *gbm;
- | ^~~~~~~~~~
- In file included from /usr/include/c++/10/memory:83,
- from ../include/libcamera/base/class.h:10,
- from ../include/libcamera/base/log.h:15,
- from ../src/libcamera/pipeline/simple/converter_gl.h:10,
- from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
- /usr/include/c++/10/bits/unique_ptr.h: In instantiation of ‘typename std::_MakeUniq<_Tp>::__single_object std::make_unique(_Args&& ...) [with _Tp = libcamera::FrameBuffer; _Args = {libcamera::FrameBuffer*&}; typename std::_MakeUniq<_Tp>::__single_object = std::unique_ptr<libcamera::FrameBuffer>]’:
- ../src/libcamera/pipeline/simple/converter_gl.cpp:216:45: required from here
- /usr/include/c++/10/bits/unique_ptr.h:962:30: error: no matching function for call to ‘libcamera::FrameBuffer::FrameBuffer(libcamera::FrameBuffer*&)’
- 962 | { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from ../include/libcamera/stream.h:16,
- from ../src/libcamera/pipeline/simple/converter_gl.h:13,
- from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
- ../include/libcamera/framebuffer.h:62:2: note: candidate: ‘libcamera::FrameBuffer::FrameBuffer(std::unique_ptr<libcamera::FrameBuffer::Private>, const std::vector<libcamera::FrameBuffer::Plane>&, unsigned int)’
- 62 | FrameBuffer(std::unique_ptr<Private> d,
- | ^~~~~~~~~~~
- ../include/libcamera/framebuffer.h:62:2: note: candidate expects 3 arguments, 1 provided
- ../include/libcamera/framebuffer.h:61:2: note: candidate: ‘libcamera::FrameBuffer::FrameBuffer(const std::vector<libcamera::FrameBuffer::Plane>&, unsigned int)’
- 61 | FrameBuffer(const std::vector<Plane> &planes, unsigned int cookie = 0);
- | ^~~~~~~~~~~
- ../include/libcamera/framebuffer.h:61:40: note: no known conversion for argument 1 from ‘libcamera::FrameBuffer*’ to ‘const std::vector<libcamera::FrameBuffer::Plane>&’
- 61 | FrameBuffer(const std::vector<Plane> &planes, unsigned int cookie = 0);
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
- In file included from /usr/include/c++/10/memory:66,
- from ../include/libcamera/base/class.h:10,
- from ../include/libcamera/base/log.h:15,
- from ../src/libcamera/pipeline/simple/converter_gl.h:10,
- from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
- /usr/include/c++/10/bits/stl_uninitialized.h: In instantiation of ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const std::unique_ptr<libcamera::FrameBuffer>*, std::vector<std::unique_ptr<libcamera::FrameBuffer> > >; _ForwardIterator = std::unique_ptr<libcamera::FrameBuffer>*]’:
- /usr/include/c++/10/bits/stl_uninitialized.h:325:37: required from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator<const std::unique_ptr<libcamera::FrameBuffer>*, std::vector<std::unique_ptr<libcamera::FrameBuffer> > >; _ForwardIterator = std::unique_ptr<libcamera::FrameBuffer>*; _Tp = std::unique_ptr<libcamera::FrameBuffer>]’
- /usr/include/c++/10/bits/stl_vector.h:558:31: required from ‘std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = std::unique_ptr<libcamera::FrameBuffer>; _Alloc = std::allocator<std::unique_ptr<libcamera::FrameBuffer> >]’
- ../src/libcamera/pipeline/simple/converter_gl.cpp:48:10: required from here
- /usr/include/c++/10/bits/stl_uninitialized.h:137:72: error: static assertion failed: result type must be constructible from value type of input range
- 137 | static_assert(is_constructible<_ValueType2, decltype(*__first)>::value,
- | ^~~~~
- cc1plus: all warnings being treated as errors
- [10/106] Compiling C++ object test/v4l2_videodevice/dequeue_watchdog.p/dequeue_watchdog.cpp.o
- ninja: build stopped: subcommand failed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement