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'
- [3/80] 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
- ../src/libcamera/pipeline/simple/converter_gl.cpp: In member function ‘std::pair<std::unique_ptr<libcamera::FrameBuffer>, libcamera::GlRenderTarget> libcamera::SimpleConverter::createBuffer()’:
- ../src/libcamera/pipeline/simple/converter_gl.cpp:60:26: error: ‘gbm_bo_get_fd_for_plane’ was not declared in this scope; did you mean ‘gbm_bo_get_handle_for_plane’?
- 60 | unsigned int filedesc = gbm_bo_get_fd_for_plane(bo, 0);
- | ^~~~~~~~~~~~~~~~~~~~~~~
- | gbm_bo_get_handle_for_plane
- ../src/libcamera/pipeline/simple/converter_gl.cpp: In member function ‘int libcamera::SimpleConverter::queueBuffers(libcamera::FrameBuffer*, libcamera::FrameBuffer*)’:
- ../src/libcamera/pipeline/simple/converter_gl.cpp:160:68: error: unused parameter ‘output’ [-Werror=unused-parameter]
- 160 | int SimpleConverter::queueBuffers(FrameBuffer *input, FrameBuffer *output)
- | ~~~~~~~~~~~~~^~~~~~
- In file included from /usr/include/arm-linux-gnueabihf/c++/10/bits/c++allocator.h:33,
- from /usr/include/c++/10/bits/allocator.h:46,
- from /usr/include/c++/10/bits/stl_tree.h:64,
- from /usr/include/c++/10/map:60,
- from ../src/libcamera/pipeline/simple/converter_gl.h:6,
- from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
- /usr/include/c++/10/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> >; _Args = {const std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer, std::default_delete<libcamera::MappedFrameBuffer> > >&}; _Tp = std::_Rb_tree_node<std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> > >]’:
- /usr/include/c++/10/bits/alloc_traits.h:512:17: required from ‘static void std::allocator_traits<std::allocator<_Tp1> >::construct(std::allocator_traits<std::allocator<_Tp1> >::allocator_type&, _Up*, _Args&& ...) [with _Up = std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> >; _Args = {const std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer, std::default_delete<libcamera::MappedFrameBuffer> > >&}; _Tp = std::_Rb_tree_node<std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> > >; std::allocator_traits<std::allocator<_Tp1> >::allocator_type = std::allocator<std::_Rb_tree_node<std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> > > >]’
- /usr/include/c++/10/bits/stl_tree.h:618:32: required from ‘void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_construct_node(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type, _Args&& ...) [with _Args = {const std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer, std::default_delete<libcamera::MappedFrameBuffer> > >&}; _Key = libcamera::FrameBuffer*; _Val = std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> >; _KeyOfValue = std::_Select1st<std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> > >; _Compare = std::less<libcamera::FrameBuffer*>; _Alloc = std::allocator<std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> > >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type = std::_Rb_tree_node<std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> > >*]’
- /usr/include/c++/10/bits/stl_tree.h:635:21: required from ‘std::_Rb_tree_node<_Val>* std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_create_node(_Args&& ...) [with _Args = {const std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer, std::default_delete<libcamera::MappedFrameBuffer> > >&}; _Key = libcamera::FrameBuffer*; _Val = std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> >; _KeyOfValue = std::_Select1st<std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> > >; _Compare = std::less<libcamera::FrameBuffer*>; _Alloc = std::allocator<std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> > >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type = std::_Rb_tree_node<std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> > >*]’
- /usr/include/c++/10/bits/stl_tree.h:552:32: required from ‘std::_Rb_tree_node<_Val>* std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Alloc_node::operator()(_Arg&&) const [with _Arg = const std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> >&; _Key = libcamera::FrameBuffer*; _Val = std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> >; _KeyOfValue = std::_Select1st<std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> > >; _Compare = std::less<libcamera::FrameBuffer*>; _Alloc = std::allocator<std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> > >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type = std::_Rb_tree_node<std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> > >*]’
- /usr/include/c++/10/bits/stl_tree.h:662:33: required from ‘std::_Rb_tree_node<_Val>* std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_clone_node(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Link_type, _NodeGen&) [with _NodeGen = std::_Rb_tree<libcamera::FrameBuffer*, std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> >, std::_Select1st<std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> > >, std::less<libcamera::FrameBuffer*>, std::allocator<std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> > > >::_Alloc_node; _Key = libcamera::FrameBuffer*; _Val = std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> >; _KeyOfValue = std::_Select1st<std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> > >; _Compare = std::less<libcamera::FrameBuffer*>; _Alloc = std::allocator<std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> > >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type = std::_Rb_tree_node<std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> > >*; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Link_type = const std::_Rb_tree_node<std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> > >*]’
- /usr/include/c++/10/bits/stl_tree.h:1881:34: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
- /usr/include/c++/10/bits/stl_tree.h:908:16: required from ‘std::_Rb_tree_node<_Val>* std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_copy(const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&) [with _Key = libcamera::FrameBuffer*; _Val = std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> >; _KeyOfValue = std::_Select1st<std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> > >; _Compare = std::less<libcamera::FrameBuffer*>; _Alloc = std::allocator<std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> > >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type = std::_Rb_tree_node<std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> > >*]’
- /usr/include/c++/10/bits/stl_tree.h:946:23: required from ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Rb_tree(const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&) [with _Key = libcamera::FrameBuffer*; _Val = std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> >; _KeyOfValue = std::_Select1st<std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> > >; _Compare = std::less<libcamera::FrameBuffer*>; _Alloc = std::allocator<std::pair<libcamera::FrameBuffer* const, std::unique_ptr<libcamera::MappedFrameBuffer> > >]’
- /usr/include/c++/10/bits/stl_map.h:207:7: required from ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = libcamera::GlRenderTarget; _Args = {libcamera::GlRenderTarget&}; _Tp = libcamera::GlRenderTarget]’
- /usr/include/c++/10/bits/alloc_traits.h:512:17: required from ‘static void std::allocator_traits<std::allocator<_Tp1> >::construct(std::allocator_traits<std::allocator<_Tp1> >::allocator_type&, _Up*, _Args&& ...) [with _Up = libcamera::GlRenderTarget; _Args = {libcamera::GlRenderTarget&}; _Tp = libcamera::GlRenderTarget; std::allocator_traits<std::allocator<_Tp1> >::allocator_type = std::allocator<libcamera::GlRenderTarget>]’
- /usr/include/c++/10/bits/vector.tcc:115:30: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {libcamera::GlRenderTarget&}; _Tp = libcamera::GlRenderTarget; _Alloc = std::allocator<libcamera::GlRenderTarget>; std::vector<_Tp, _Alloc>::reference = libcamera::GlRenderTarget&]’
- ../src/libcamera/pipeline/simple/converter_gl.cpp:48:40: required from here
- /usr/include/c++/10/ext/new_allocator.h:150:4: error: use of deleted function ‘constexpr std::pair<_T1, _T2>::pair(const std::pair<_T1, _T2>&) [with _T1 = libcamera::FrameBuffer* const; _T2 = std::unique_ptr<libcamera::MappedFrameBuffer>]’
- 150 | { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from /usr/include/c++/10/bits/stl_algobase.h:64,
- from /usr/include/c++/10/bits/stl_tree.h:63,
- from /usr/include/c++/10/map:60,
- from ../src/libcamera/pipeline/simple/converter_gl.h:6,
- from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
- /usr/include/c++/10/bits/stl_pair.h:314:17: note: ‘constexpr std::pair<_T1, _T2>::pair(const std::pair<_T1, _T2>&) [with _T1 = libcamera::FrameBuffer* const; _T2 = std::unique_ptr<libcamera::MappedFrameBuffer>]’ is implicitly deleted because the default definition would be ill-formed:
- 314 | constexpr pair(const pair&) = default; ///< Copy constructor
- | ^~~~
- /usr/include/c++/10/bits/stl_pair.h:314:17: error: use of deleted function ‘std::unique_ptr<_Tp, _Dp>::unique_ptr(const std::unique_ptr<_Tp, _Dp>&) [with _Tp = libcamera::MappedFrameBuffer; _Dp = std::default_delete<libcamera::MappedFrameBuffer>]’
- 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:11,
- from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
- /usr/include/c++/10/bits/unique_ptr.h:468:7: note: declared here
- 468 | unique_ptr(const unique_ptr&) = delete;
- | ^~~~~~~~~~
- cc1plus: all warnings being treated as errors
- ninja: build stopped: subcommand failed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement