Advertisement
KunalA18

compile-2

Jul 18th, 2022
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 15.42 KB | None | 0 0
  1. pi@raspberrypi:~/Desktop/compile/libcamera $ ninja -C build install
  2. ninja: Entering directory `build'
  3. [5/123] 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:27:42: error: ‘GlRenderTarget’ was not declared in this scope
  8.   27 |  std::pair<std::unique_ptr<FrameBuffer>, GlRenderTarget> createBuffer(unsigned int index);
  9.      |                                          ^~~~~~~~~~~~~~
  10. ../src/libcamera/pipeline/simple/converter_gl.h:27:56: error: template argument 2 is invalid
  11.   27 |  std::pair<std::unique_ptr<FrameBuffer>, GlRenderTarget> createBuffer(unsigned int index);
  12.      |                                                        ^
  13. ../src/libcamera/pipeline/simple/converter_gl.h:28:22: error: ‘StreamConfiguration’ does not name a type
  14.   28 |  int configure(const StreamConfiguration &inputCfg,
  15.      |                      ^~~~~~~~~~~~~~~~~~~
  16. ../src/libcamera/pipeline/simple/converter_gl.h:29:15: error: ‘StreamConfiguration’ does not name a type
  17.   29 |         const StreamConfiguration &outputCfg);
  18.      |               ^~~~~~~~~~~~~~~~~~~
  19. ../src/libcamera/pipeline/simple/converter_gl.h:31:3: error: ‘GLuint’ does not name a type; did you mean ‘uint’?
  20.   31 |   GLuint texture;
  21.      |   ^~~~~~
  22.      |   uint
  23. ../src/libcamera/pipeline/simple/converter_gl.h:32:3: error: ‘EGLImageKHR’ does not name a type
  24.   32 |   EGLImageKHR image;
  25.      |   ^~~~~~~~~~~
  26. ../src/libcamera/pipeline/simple/converter_gl.h:34:53: error: ‘libcamera::PixelFormat’ has not been declared
  27.   34 |  dmabuf_image import_dmabuf(int fd, Size pixelSize, libcamera::PixelFormat format);
  28.      |                                                     ^~~~~~~~~
  29. ../src/libcamera/pipeline/simple/converter_gl.h:46:2: error: ‘Shader’ does not name a type
  30.   46 |  Shader shaderProgram;
  31.      |  ^~~~~~
  32. ../src/libcamera/pipeline/simple/converter_gl.h:47:2: error: ‘Shader’ does not name a type
  33.   47 |  Shader framebufferProgram;
  34.      |  ^~~~~~
  35. ../src/libcamera/pipeline/simple/converter_gl.h:48:14: error: ‘GlRenderTarget’ was not declared in this scope
  36.   48 |  std::vector<GlRenderTarget> outputBuffers;
  37.      |              ^~~~~~~~~~~~~~
  38. ../src/libcamera/pipeline/simple/converter_gl.h:48:28: error: template argument 1 is invalid
  39.   48 |  std::vector<GlRenderTarget> outputBuffers;
  40.      |                            ^
  41. ../src/libcamera/pipeline/simple/converter_gl.h:48:28: error: template argument 2 is invalid
  42. ../src/libcamera/pipeline/simple/converter_gl.h:59:2: error: ‘EGLDisplay’ does not name a type
  43.   59 |  EGLDisplay dpy;
  44.      |  ^~~~~~~~~~
  45. ../src/libcamera/pipeline/simple/converter_gl.h:60:2: error: ‘EGLSurface’ does not name a type
  46.   60 |  EGLSurface srf;
  47.      |  ^~~~~~~~~~
  48. ../src/libcamera/pipeline/simple/converter_gl.h:61:2: error: ‘EGLContext’ does not name a type
  49.   61 |  EGLContext ctx;
  50.      |  ^~~~~~~~~~
  51. ../src/libcamera/pipeline/simple/converter_gl.cpp:34:5: error: no declaration matches ‘int libcamera::SimpleConverter::configure(const libcamera::StreamConfiguration&, const libcamera::StreamConfiguration&)’
  52.   34 | int SimpleConverter::configure(const StreamConfiguration &inputCfg,
  53.      |     ^~~~~~~~~~~~~~~
  54. In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  55. ../src/libcamera/pipeline/simple/converter_gl.h:28:6: note: candidate is: ‘int libcamera::SimpleConverter::configure(const int&, const int&)’
  56.   28 |  int configure(const StreamConfiguration &inputCfg,
  57.      |      ^~~~~~~~~
  58. ../src/libcamera/pipeline/simple/converter_gl.h:19:7: note: ‘class libcamera::SimpleConverter’ defined here
  59.   19 | class SimpleConverter
  60.      |       ^~~~~~~~~~~~~~~
  61. ../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> >*)’:
  62. ../src/libcamera/pipeline/simple/converter_gl.cpp:49:17: error: request for member ‘emplace_back’ in ‘((libcamera::SimpleConverter*)this)->libcamera::SimpleConverter::outputBuffers’, which is of non-class type ‘int’
  63.   49 |   outputBuffers.emplace_back(tex.second);
  64.      |                 ^~~~~~~~~~~~
  65. ../src/libcamera/pipeline/simple/converter_gl.cpp:49:34: error: request for member ‘second’ in ‘tex’, which is of non-class type ‘int’
  66.   49 |   outputBuffers.emplace_back(tex.second);
  67.      |                                  ^~~~~~
  68. ../src/libcamera/pipeline/simple/converter_gl.cpp:50:36: error: request for member ‘first’ in ‘tex’, which is of non-class type ‘int’
  69.   50 |   buffers->push_back(std::move(tex.first));
  70.      |                                    ^~~~~
  71. ../src/libcamera/pipeline/simple/converter_gl.cpp: At global scope:
  72. ../src/libcamera/pipeline/simple/converter_gl.cpp:55:57: error: no declaration matches ‘std::pair<std::unique_ptr<libcamera::FrameBuffer>, libcamera::GlRenderTarget> libcamera::SimpleConverter::createBuffer(unsigned int)’
  73.   55 | std::pair<std::unique_ptr<FrameBuffer>, GlRenderTarget> SimpleConverter::createBuffer(unsigned int index)
  74.      |                                                         ^~~~~~~~~~~~~~~
  75. In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  76. ../src/libcamera/pipeline/simple/converter_gl.h:27:58: note: candidate is: ‘int libcamera::SimpleConverter::createBuffer(unsigned int)’
  77.   27 |  std::pair<std::unique_ptr<FrameBuffer>, GlRenderTarget> createBuffer(unsigned int index);
  78.      |                                                          ^~~~~~~~~~~~
  79. ../src/libcamera/pipeline/simple/converter_gl.h:19:7: note: ‘class libcamera::SimpleConverter’ defined here
  80.   19 | class SimpleConverter
  81.      |       ^~~~~~~~~~~~~~~
  82. ../src/libcamera/pipeline/simple/converter_gl.cpp:79:31: error: no declaration matches ‘libcamera::SimpleConverter::dmabuf_image libcamera::SimpleConverter::import_dmabuf(int, libcamera::Size, libcamera::PixelFormat)’
  83.   79 | SimpleConverter::dmabuf_image SimpleConverter::import_dmabuf(int fd, Size pixelSize, libcamera::PixelFormat format)
  84.      |                               ^~~~~~~~~~~~~~~
  85. In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  86. ../src/libcamera/pipeline/simple/converter_gl.h:34:15: note: candidate is: ‘libcamera::SimpleConverter::dmabuf_image libcamera::SimpleConverter::import_dmabuf(int, libcamera::Size, int)’
  87.   34 |  dmabuf_image import_dmabuf(int fd, Size pixelSize, libcamera::PixelFormat format);
  88.      |               ^~~~~~~~~~~~~
  89. ../src/libcamera/pipeline/simple/converter_gl.h:19:7: note: ‘class libcamera::SimpleConverter’ defined here
  90.   19 | class SimpleConverter
  91.      |       ^~~~~~~~~~~~~~~
  92. ../src/libcamera/pipeline/simple/converter_gl.cpp: In member function ‘void libcamera::SimpleConverter::start()’:
  93. ../src/libcamera/pipeline/simple/converter_gl.cpp:129:25: error: cannot convert ‘gbm_device*’ to ‘libcamera::gbm_device*’ in assignment
  94.  129 |  gbm = gbm_create_device(fd);
  95.      |        ~~~~~~~~~~~~~~~~~^~~~
  96.      |                         |
  97.      |                         gbm_device*
  98. In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:3:
  99. /usr/include/gbm.h:46:8: note: class type ‘gbm_device’ is incomplete
  100.   46 | struct gbm_device;
  101.      |        ^~~~~~~~~~
  102. ../src/libcamera/pipeline/simple/converter_gl.cpp:134:2: error: ‘dpy’ was not declared in this scope
  103.  134 |  dpy = eglGetPlatformDisplayEXT(EGL_PLATFORM_GBM_MESA, gbm, NULL);
  104.      |  ^~~
  105. ../src/libcamera/pipeline/simple/converter_gl.cpp:146:2: error: ‘ctx’ was not declared in this scope
  106.  146 |  ctx = eglCreateContext(dpy, config, EGL_NO_CONTEXT, NULL);
  107.      |  ^~~
  108. ../src/libcamera/pipeline/simple/converter_gl.cpp:154:2: error: ‘shaderProgram’ was not declared in this scope
  109.  154 |  shaderProgram.callShader("default.vert", "default.frag");
  110.      |  ^~~~~~~~~~~~~
  111. ../src/libcamera/pipeline/simple/converter_gl.cpp:155:2: error: ‘framebufferProgram’ was not declared in this scope
  112.  155 |  framebufferProgram.callShader("bayer_8.vert", "bayer_8.frag");
  113.      |  ^~~~~~~~~~~~~~~~~~
  114. ../src/libcamera/pipeline/simple/converter_gl.cpp: In member function ‘std::unique_ptr<libcamera::FrameBuffer> libcamera::SimpleConverter::queueBuffers(libcamera::FrameBuffer*, libcamera::FrameBuffer*)’:
  115. ../src/libcamera/pipeline/simple/converter_gl.cpp:160:2: error: ‘framebufferProgram’ was not declared in this scope
  116.  160 |  framebufferProgram.Activate();
  117.      |  ^~~~~~~~~~~~~~~~~~
  118. ../src/libcamera/pipeline/simple/converter_gl.cpp: In member function ‘void libcamera::SimpleConverter::stop()’:
  119. ../src/libcamera/pipeline/simple/converter_gl.cpp:226:2: error: ‘shaderProgram’ was not declared in this scope
  120.  226 |  shaderProgram.Delete();
  121.      |  ^~~~~~~~~~~~~
  122. ../src/libcamera/pipeline/simple/converter_gl.cpp:228:20: error: ‘dpy’ was not declared in this scope
  123.  228 |  eglDestroySurface(dpy, srf);
  124.      |                    ^~~
  125. ../src/libcamera/pipeline/simple/converter_gl.cpp:228:25: error: ‘srf’ was not declared in this scope; did you mean ‘erf’?
  126.  228 |  eglDestroySurface(dpy, srf);
  127.      |                         ^~~
  128.      |                         erf
  129. ../src/libcamera/pipeline/simple/converter_gl.cpp:229:25: error: ‘ctx’ was not declared in this scope
  130.  229 |  eglDestroyContext(dpy, ctx);
  131.      |                         ^~~
  132. ../src/libcamera/pipeline/simple/converter_gl.cpp:232:21: error: cannot convert ‘libcamera::gbm_device*’ to ‘gbm_device*’
  133.  232 |  gbm_device_destroy(gbm);
  134.      |                     ^~~
  135.      |                     |
  136.      |                     libcamera::gbm_device*
  137. In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:3:
  138. /usr/include/gbm.h:265:39: note:   initializing argument 1 of ‘void gbm_device_destroy(gbm_device*)’
  139.  265 | gbm_device_destroy(struct gbm_device *gbm);
  140.      |                    ~~~~~~~~~~~~~~~~~~~^~~
  141. In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  142. ../src/libcamera/pipeline/simple/converter_gl.h:62:9: note: class type ‘libcamera::gbm_device’ is incomplete
  143.   62 |  struct gbm_device *gbm;
  144.      |         ^~~~~~~~~~
  145. In file included from /usr/include/c++/10/memory:83,
  146.                 from ../include/libcamera/base/class.h:10,
  147.                 from ../include/libcamera/base/log.h:15,
  148.                 from ../src/libcamera/pipeline/simple/converter_gl.h:10,
  149.                 from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  150. /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>]’:
  151. ../src/libcamera/pipeline/simple/converter_gl.cpp:220:45:   required from here
  152. /usr/include/c++/10/bits/unique_ptr.h:962:30: error: no matching function for call to ‘libcamera::FrameBuffer::FrameBuffer(libcamera::FrameBuffer*&)’
  153.  962 |     { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
  154.      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  155. In file included from ../include/libcamera/internal/mapped_framebuffer.h:17,
  156.                 from ../src/libcamera/pipeline/simple/converter_gl.h:13,
  157.                 from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  158. ../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)’
  159.   62 |  FrameBuffer(std::unique_ptr<Private> d,
  160.      |  ^~~~~~~~~~~
  161. ../include/libcamera/framebuffer.h:62:2: note:   candidate expects 3 arguments, 1 provided
  162. ../include/libcamera/framebuffer.h:61:2: note: candidate: ‘libcamera::FrameBuffer::FrameBuffer(const std::vector<libcamera::FrameBuffer::Plane>&, unsigned int)’
  163.   61 |  FrameBuffer(const std::vector<Plane> &planes, unsigned int cookie = 0);
  164.      |  ^~~~~~~~~~~
  165. ../include/libcamera/framebuffer.h:61:40: note:   no known conversion for argument 1 from ‘libcamera::FrameBuffer*’ to ‘const std::vector<libcamera::FrameBuffer::Plane>&’
  166.   61 |  FrameBuffer(const std::vector<Plane> &planes, unsigned int cookie = 0);
  167.      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
  168. In file included from /usr/include/c++/10/memory:66,
  169.                 from ../include/libcamera/base/class.h:10,
  170.                 from ../include/libcamera/base/log.h:15,
  171.                 from ../src/libcamera/pipeline/simple/converter_gl.h:10,
  172.                 from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  173. /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>*]’:
  174. /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>]’
  175. /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> >]’
  176. ../src/libcamera/pipeline/simple/converter_gl.cpp:52:10:   required from here
  177. /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
  178.  137 |       static_assert(is_constructible<_ValueType2, decltype(*__first)>::value,
  179.      |                                                                        ^~~~~
  180. [10/123] Compiling C++ object test/ipc/unixsocket_ipc.p/unixsocket_ipc.cpp.o
  181. ninja: build stopped: subcommand failed.
  182.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement