Advertisement
KunalA18

compile-3

Jul 18th, 2022
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 11.14 KB | None | 0 0
  1. pi@raspberrypi:~/Desktop/compile/libcamera $ ninja -C build install
  2. ninja: Entering directory `build'
  3. [5/106] 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. In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  7. ../src/libcamera/pipeline/simple/converter_gl.h:32:42: error: ‘GlRenderTarget’ was not declared in this scope
  8.   32 |  std::pair<std::unique_ptr<FrameBuffer>, GlRenderTarget> createBuffer(unsigned int index);
  9.      |                                          ^~~~~~~~~~~~~~
  10. ../src/libcamera/pipeline/simple/converter_gl.h:32:56: error: template argument 2 is invalid
  11.   32 |  std::pair<std::unique_ptr<FrameBuffer>, GlRenderTarget> createBuffer(unsigned int index);
  12.      |                                                        ^
  13. ../src/libcamera/pipeline/simple/converter_gl.h:53:14: error: ‘GlRenderTarget’ was not declared in this scope
  14.   53 |  std::vector<GlRenderTarget> outputBuffers;
  15.      |              ^~~~~~~~~~~~~~
  16. ../src/libcamera/pipeline/simple/converter_gl.h:53:28: error: template argument 1 is invalid
  17.   53 |  std::vector<GlRenderTarget> outputBuffers;
  18.      |                            ^
  19. ../src/libcamera/pipeline/simple/converter_gl.h:53:28: error: template argument 2 is invalid
  20. ../src/libcamera/pipeline/simple/converter_gl.cpp: In member function ‘int libcamera::SimpleConverter::configure(const libcamera::StreamConfiguration&, const libcamera::StreamConfiguration&)’:
  21. ../src/libcamera/pipeline/simple/converter_gl.cpp:38:1: error: no return statement in function returning non-void [-Werror=return-type]
  22.   38 | }
  23.      | ^
  24. ../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> >*)’:
  25. ../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’
  26.   45 |   outputBuffers.emplace_back(tex.second);
  27.      |                 ^~~~~~~~~~~~
  28. ../src/libcamera/pipeline/simple/converter_gl.cpp:45:34: error: request for member ‘second’ in ‘tex’, which is of non-class type ‘int’
  29.   45 |   outputBuffers.emplace_back(tex.second);
  30.      |                                  ^~~~~~
  31. ../src/libcamera/pipeline/simple/converter_gl.cpp:46:36: error: request for member ‘first’ in ‘tex’, which is of non-class type ‘int’
  32.   46 |   buffers->push_back(std::move(tex.first));
  33.      |                                    ^~~~~
  34. ../src/libcamera/pipeline/simple/converter_gl.cpp: At global scope:
  35. ../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)’
  36.   51 | std::pair<std::unique_ptr<FrameBuffer>, GlRenderTarget> SimpleConverter::createBuffer(unsigned int index)
  37.      |                                                         ^~~~~~~~~~~~~~~
  38. In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  39. ../src/libcamera/pipeline/simple/converter_gl.h:32:58: note: candidate is: ‘int libcamera::SimpleConverter::createBuffer(unsigned int)’
  40.   32 |  std::pair<std::unique_ptr<FrameBuffer>, GlRenderTarget> createBuffer(unsigned int index);
  41.      |                                                          ^~~~~~~~~~~~
  42. ../src/libcamera/pipeline/simple/converter_gl.h:24:7: note: ‘class libcamera::SimpleConverter’ defined here
  43.   24 | class SimpleConverter
  44.      |       ^~~~~~~~~~~~~~~
  45. ../src/libcamera/pipeline/simple/converter_gl.cpp: In member function ‘libcamera::SimpleConverter::dmabuf_image libcamera::SimpleConverter::import_dmabuf(int, libcamera::Size, libcamera::PixelFormat)’:
  46. ../src/libcamera/pipeline/simple/converter_gl.cpp:75:66: error: declaration of ‘fd’ shadows a member of ‘libcamera::SimpleConverter’ [-Werror=shadow]
  47.   75 | SimpleConverter::dmabuf_image SimpleConverter::import_dmabuf(int fd, Size pixelSize, libcamera::PixelFormat format)
  48.      |                                                              ~~~~^~
  49. In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  50. ../src/libcamera/pipeline/simple/converter_gl.h:63:6: note: shadowed declaration is here
  51.   63 |  int fd;
  52.      |      ^~
  53. ../src/libcamera/pipeline/simple/converter_gl.cpp: In member function ‘void libcamera::SimpleConverter::start()’:
  54. ../src/libcamera/pipeline/simple/converter_gl.cpp:125:25: error: cannot convert ‘gbm_device*’ to ‘libcamera::gbm_device*’ in assignment
  55.  125 |  gbm = gbm_create_device(fd);
  56.      |        ~~~~~~~~~~~~~~~~~^~~~
  57.      |                         |
  58.      |                         gbm_device*
  59. In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:3:
  60. /usr/include/gbm.h:46:8: note: class type ‘gbm_device’ is incomplete
  61.   46 | struct gbm_device;
  62.      |        ^~~~~~~~~~
  63. ../src/libcamera/pipeline/simple/converter_gl.cpp: In member function ‘void libcamera::SimpleConverter::stop()’:
  64. ../src/libcamera/pipeline/simple/converter_gl.cpp:228:21: error: cannot convert ‘libcamera::gbm_device*’ to ‘gbm_device*’
  65.  228 |  gbm_device_destroy(gbm);
  66.      |                     ^~~
  67.      |                     |
  68.      |                     libcamera::gbm_device*
  69. In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:3:
  70. /usr/include/gbm.h:265:39: note:   initializing argument 1 of ‘void gbm_device_destroy(gbm_device*)’
  71.  265 | gbm_device_destroy(struct gbm_device *gbm);
  72.      |                    ~~~~~~~~~~~~~~~~~~~^~~
  73. In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  74. ../src/libcamera/pipeline/simple/converter_gl.h:67:9: note: class type ‘libcamera::gbm_device’ is incomplete
  75.   67 |  struct gbm_device *gbm;
  76.      |         ^~~~~~~~~~
  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:10,
  81.                 from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  82. /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>]’:
  83. ../src/libcamera/pipeline/simple/converter_gl.cpp:216:45:   required from here
  84. /usr/include/c++/10/bits/unique_ptr.h:962:30: error: no matching function for call to ‘libcamera::FrameBuffer::FrameBuffer(libcamera::FrameBuffer*&)’
  85.  962 |     { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
  86.      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  87. In file included from ../include/libcamera/stream.h:16,
  88.                 from ../src/libcamera/pipeline/simple/converter_gl.h:13,
  89.                 from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  90. ../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)’
  91.   62 |  FrameBuffer(std::unique_ptr<Private> d,
  92.      |  ^~~~~~~~~~~
  93. ../include/libcamera/framebuffer.h:62:2: note:   candidate expects 3 arguments, 1 provided
  94. ../include/libcamera/framebuffer.h:61:2: note: candidate: ‘libcamera::FrameBuffer::FrameBuffer(const std::vector<libcamera::FrameBuffer::Plane>&, unsigned int)’
  95.   61 |  FrameBuffer(const std::vector<Plane> &planes, unsigned int cookie = 0);
  96.      |  ^~~~~~~~~~~
  97. ../include/libcamera/framebuffer.h:61:40: note:   no known conversion for argument 1 from ‘libcamera::FrameBuffer*’ to ‘const std::vector<libcamera::FrameBuffer::Plane>&’
  98.   61 |  FrameBuffer(const std::vector<Plane> &planes, unsigned int cookie = 0);
  99.      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
  100. In file included from /usr/include/c++/10/memory:66,
  101.                 from ../include/libcamera/base/class.h:10,
  102.                 from ../include/libcamera/base/log.h:15,
  103.                 from ../src/libcamera/pipeline/simple/converter_gl.h:10,
  104.                 from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  105. /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>*]’:
  106. /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>]’
  107. /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> >]’
  108. ../src/libcamera/pipeline/simple/converter_gl.cpp:48:10:   required from here
  109. /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
  110.  137 |       static_assert(is_constructible<_ValueType2, decltype(*__first)>::value,
  111.      |                                                                        ^~~~~
  112. cc1plus: all warnings being treated as errors
  113. [10/106] Compiling C++ object test/v4l2_videodevice/dequeue_watchdog.p/dequeue_watchdog.cpp.o
  114. ninja: build stopped: subcommand failed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement