Advertisement
KunalA18

compile-5

Jul 20th, 2022
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 12.61 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:60:26: error: ‘gbm_bo_get_fd_for_plane’ was not declared in this scope; did you mean ‘gbm_bo_get_handle_for_plane’?
  8.   60 |  unsigned int filedesc = gbm_bo_get_fd_for_plane(bo, 0);
  9.      |                          ^~~~~~~~~~~~~~~~~~~~~~~
  10.      |                          gbm_bo_get_handle_for_plane
  11. ../src/libcamera/pipeline/simple/converter_gl.cpp: In member function ‘int libcamera::SimpleConverter::queueBuffers(libcamera::FrameBuffer*, libcamera::FrameBuffer*)’:
  12. ../src/libcamera/pipeline/simple/converter_gl.cpp:160:68: error: unused parameter ‘output’ [-Werror=unused-parameter]
  13.  160 | int SimpleConverter::queueBuffers(FrameBuffer *input, FrameBuffer *output)
  14.      |                                                       ~~~~~~~~~~~~~^~~~~~
  15. In file included from /usr/include/arm-linux-gnueabihf/c++/10/bits/c++allocator.h:33,
  16.                 from /usr/include/c++/10/bits/allocator.h:46,
  17.                 from /usr/include/c++/10/bits/stl_tree.h:64,
  18.                 from /usr/include/c++/10/map:60,
  19.                 from ../src/libcamera/pipeline/simple/converter_gl.h:6,
  20.                 from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  21. /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> > >]’:
  22. /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> > > >]’
  23. /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> > >*]’
  24. /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> > >*]’
  25. /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> > >*]’
  26. /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> > >*]’
  27. /usr/include/c++/10/bits/stl_tree.h:1881:34:   [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
  28. /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> > >*]’
  29. /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> > >]’
  30. /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]’
  31. /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>]’
  32. /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&]’
  33. ../src/libcamera/pipeline/simple/converter_gl.cpp:48:40:   required from here
  34. /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>]’
  35.  150 |  { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
  36.      |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  37. In file included from /usr/include/c++/10/bits/stl_algobase.h:64,
  38.                 from /usr/include/c++/10/bits/stl_tree.h:63,
  39.                 from /usr/include/c++/10/map:60,
  40.                 from ../src/libcamera/pipeline/simple/converter_gl.h:6,
  41.                 from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  42. /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:
  43.  314 |       constexpr pair(const pair&) = default; ///< Copy constructor
  44.      |                 ^~~~
  45. /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>]’
  46. In file included from /usr/include/c++/10/memory:83,
  47.                 from ../include/libcamera/base/class.h:10,
  48.                 from ../include/libcamera/base/log.h:15,
  49.                 from ../src/libcamera/pipeline/simple/converter_gl.h:11,
  50.                 from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  51. /usr/include/c++/10/bits/unique_ptr.h:468:7: note: declared here
  52.  468 |       unique_ptr(const unique_ptr&) = delete;
  53.      |       ^~~~~~~~~~
  54. cc1plus: all warnings being treated as errors
  55. ninja: build stopped: subcommand failed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement