Advertisement
KunalA18

compile-4

Jul 19th, 2022
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 16.05 KB | None | 0 0
  1. pi@raspberrypi:~/Desktop/compile/libcamera $ ninja -C build install
  2. ninja: Entering directory `build'
  3. [3/80] Compiling C++ object src/libcamera/libcamera.so.0.0.0.p/pipeline_simple_converter_gl.cpp.o
  4. FAILED: src/libcamera/libcamera.so.0.0.0.p/pipeline_simple_converter_gl.cpp.o
  5. 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
  6. ../src/libcamera/pipeline/simple/converter_gl.cpp: In member function ‘std::pair<std::unique_ptr<libcamera::FrameBuffer>, libcamera::GlRenderTarget> libcamera::SimpleConverter::createBuffer()’:
  7. ../src/libcamera/pipeline/simple/converter_gl.cpp:54:26: error: ‘gbm_bo_get_fd_for_plane’ was not declared in this scope; did you mean ‘gbm_bo_get_handle_for_plane’?
  8.   54 |  unsigned int filedesc = gbm_bo_get_fd_for_plane(bo, 0);
  9.      |                          ^~~~~~~~~~~~~~~~~~~~~~~
  10.      |                          gbm_bo_get_handle_for_plane
  11. In file included from /usr/include/c++/10/memory:83,
  12.                 from ../include/libcamera/base/class.h:10,
  13.                 from ../include/libcamera/base/log.h:15,
  14.                 from ../src/libcamera/pipeline/simple/converter_gl.h:11,
  15.                 from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  16. /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>]’:
  17. ../src/libcamera/pipeline/simple/converter_gl.cpp:216:45:   required from here
  18. /usr/include/c++/10/bits/unique_ptr.h:962:30: error: no matching function for call to ‘libcamera::FrameBuffer::FrameBuffer(libcamera::FrameBuffer*&)’
  19.  962 |     { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
  20.      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  21. In file included from ../include/libcamera/stream.h:16,
  22.                 from ../src/libcamera/pipeline/simple/converter_gl.h:14,
  23.                 from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  24. ../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)’
  25.   62 |  FrameBuffer(std::unique_ptr<Private> d,
  26.      |  ^~~~~~~~~~~
  27. ../include/libcamera/framebuffer.h:62:2: note:   candidate expects 3 arguments, 1 provided
  28. ../include/libcamera/framebuffer.h:61:2: note: candidate: ‘libcamera::FrameBuffer::FrameBuffer(const std::vector<libcamera::FrameBuffer::Plane>&, unsigned int)’
  29.   61 |  FrameBuffer(const std::vector<Plane> &planes, unsigned int cookie = 0);
  30.      |  ^~~~~~~~~~~
  31. ../include/libcamera/framebuffer.h:61:40: note:   no known conversion for argument 1 from ‘libcamera::FrameBuffer*’ to ‘const std::vector<libcamera::FrameBuffer::Plane>&’
  32.   61 |  FrameBuffer(const std::vector<Plane> &planes, unsigned int cookie = 0);
  33.      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
  34. In file included from /usr/include/c++/10/memory:66,
  35.                 from ../include/libcamera/base/class.h:10,
  36.                 from ../include/libcamera/base/log.h:15,
  37.                 from ../src/libcamera/pipeline/simple/converter_gl.h:11,
  38.                 from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  39. /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>*]’:
  40. /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>]’
  41. /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> >]’
  42. ../src/libcamera/pipeline/simple/converter_gl.cpp:48:10:   required from here
  43. /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
  44.  137 |       static_assert(is_constructible<_ValueType2, decltype(*__first)>::value,
  45.      |                                                                        ^~~~~
  46. In file included from /usr/include/arm-linux-gnueabihf/c++/10/bits/c++allocator.h:33,
  47.                 from /usr/include/c++/10/bits/allocator.h:46,
  48.                 from /usr/include/c++/10/bits/stl_tree.h:64,
  49.                 from /usr/include/c++/10/map:60,
  50.                 from ../src/libcamera/pipeline/simple/converter_gl.h:6,
  51.                 from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  52. /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> > >]’:
  53. /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> > > >]’
  54. /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> > >*]’
  55. /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> > >*]’
  56. /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> > >*]’
  57. /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> > >*]’
  58. /usr/include/c++/10/bits/stl_tree.h:1881:34:   [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
  59. /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> > >*]’
  60. /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> > >]’
  61. /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]’
  62. /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>]’
  63. /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&]’
  64. ../src/libcamera/pipeline/simple/converter_gl.cpp:45:40:   required from here
  65. /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>]’
  66.  150 |  { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
  67.      |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  68. In file included from /usr/include/c++/10/bits/stl_algobase.h:64,
  69.                 from /usr/include/c++/10/bits/stl_tree.h:63,
  70.                 from /usr/include/c++/10/map:60,
  71.                 from ../src/libcamera/pipeline/simple/converter_gl.h:6,
  72.                 from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  73. /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:
  74.  314 |       constexpr pair(const pair&) = default; ///< Copy constructor
  75.      |                 ^~~~
  76. /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>]’
  77. In file included from /usr/include/c++/10/memory:83,
  78.                 from ../include/libcamera/base/class.h:10,
  79.                 from ../include/libcamera/base/log.h:15,
  80.                 from ../src/libcamera/pipeline/simple/converter_gl.h:11,
  81.                 from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  82. /usr/include/c++/10/bits/unique_ptr.h:468:7: note: declared here
  83.  468 |       unique_ptr(const unique_ptr&) = delete;
  84.      |       ^~~~~~~~~~
  85. ninja: build stopped: subcommand failed.
  86.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement