Advertisement
KunalA18

Compile-1

Jul 17th, 2022
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 18.89 KB | None | 0 0
  1. ninja: Entering directory `build'
  2. [1/142] Compiling C++ object src/libcamera/libcamera.so.0.0.0.p/pipeline_simple_shaderClass.cpp.o
  3. FAILED: src/libcamera/libcamera.so.0.0.0.p/pipeline_simple_shaderClass.cpp.o
  4. 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_shaderClass.cpp.o -MF src/libcamera/libcamera.so.0.0.0.p/pipeline_simple_shaderClass.cpp.o.d -o src/libcamera/libcamera.so.0.0.0.p/pipeline_simple_shaderClass.cpp.o -c ../src/libcamera/pipeline/simple/shaderClass.cpp
  5. ../src/libcamera/pipeline/simple/shaderClass.cpp: In member function ‘void Shader::compileErrors(unsigned int, const char*)’:
  6. ../src/libcamera/pipeline/simple/shaderClass.cpp:83:11: error: comparison with string literal results in unspecified behavior [-Werror=address]
  7.   83 |  if (type != "PROGRAM") {
  8.      |      ~~~~~^~~~~~~~~~~~
  9. cc1plus: all warnings being treated as errors
  10. [4/142] Compiling C++ object src/libcamera/libcamera.so.0.0.0.p/pipeline_simple_converter_gl.cpp.o
  11. FAILED: src/libcamera/libcamera.so.0.0.0.p/pipeline_simple_converter_gl.cpp.o
  12. 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
  13. In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  14. ../src/libcamera/pipeline/simple/converter_gl.h:25:42: error: ‘GlRenderTarget’ was not declared in this scope
  15.   25 |  std::pair<std::unique_ptr<FrameBuffer>, GlRenderTarget> createBuffer(unsigned int index);
  16.      |                                          ^~~~~~~~~~~~~~
  17. ../src/libcamera/pipeline/simple/converter_gl.h:25:56: error: template argument 2 is invalid
  18.   25 |  std::pair<std::unique_ptr<FrameBuffer>, GlRenderTarget> createBuffer(unsigned int index);
  19.      |                                                        ^
  20. ../src/libcamera/pipeline/simple/converter_gl.h:26:22: error: ‘StreamConfiguration’ does not name a type
  21.   26 |  int configure(const StreamConfiguration &inputCfg,
  22.      |                      ^~~~~~~~~~~~~~~~~~~
  23. ../src/libcamera/pipeline/simple/converter_gl.h:27:15: error: ‘StreamConfiguration’ does not name a type
  24.   27 |         const StreamConfiguration &outputCfg);
  25.      |               ^~~~~~~~~~~~~~~~~~~
  26. ../src/libcamera/pipeline/simple/converter_gl.h:29:3: error: ‘GLuint’ does not name a type; did you mean ‘uint’?
  27.   29 |   GLuint texture;
  28.      |   ^~~~~~
  29.      |   uint
  30. ../src/libcamera/pipeline/simple/converter_gl.h:30:3: error: ‘EGLImageKHR’ does not name a type
  31.   30 |   EGLImageKHR image;
  32.      |   ^~~~~~~~~~~
  33. ../src/libcamera/pipeline/simple/converter_gl.h:32:37: error: ‘Size’ has not been declared
  34.   32 |  dmabuf_image import_dmabuf(int fd, Size pixelSize, libcamera::PixelFormat format);
  35.      |                                     ^~~~
  36. ../src/libcamera/pipeline/simple/converter_gl.h:32:53: error: ‘libcamera::PixelFormat’ has not been declared
  37.   32 |  dmabuf_image import_dmabuf(int fd, Size pixelSize, libcamera::PixelFormat format);
  38.      |                                                     ^~~~~~~~~
  39. ../src/libcamera/pipeline/simple/converter_gl.h:38:3: error: ‘Size’ does not name a type
  40.   38 |   Size size;
  41.      |   ^~~~
  42. ../src/libcamera/pipeline/simple/converter_gl.h:44:2: error: ‘Shader’ does not name a type
  43.   44 |  Shader shaderProgram;
  44.      |  ^~~~~~
  45. ../src/libcamera/pipeline/simple/converter_gl.h:45:2: error: ‘Shader’ does not name a type
  46.   45 |  Shader framebufferProgram;
  47.      |  ^~~~~~
  48. ../src/libcamera/pipeline/simple/converter_gl.h:46:14: error: ‘GlRenderTarget’ was not declared in this scope
  49.   46 |  std::vector<GlRenderTarget> outputBuffers;
  50.      |              ^~~~~~~~~~~~~~
  51. ../src/libcamera/pipeline/simple/converter_gl.h:46:28: error: template argument 1 is invalid
  52.   46 |  std::vector<GlRenderTarget> outputBuffers;
  53.      |                            ^
  54. ../src/libcamera/pipeline/simple/converter_gl.h:46:28: error: template argument 2 is invalid
  55. ../src/libcamera/pipeline/simple/converter_gl.h:51:2: error: ‘EGLDisplay’ does not name a type
  56.   51 |  EGLDisplay dpy;
  57.      |  ^~~~~~~~~~
  58. ../src/libcamera/pipeline/simple/converter_gl.h:52:2: error: ‘EGLSurface’ does not name a type
  59.   52 |  EGLSurface srf;
  60.      |  ^~~~~~~~~~
  61. ../src/libcamera/pipeline/simple/converter_gl.h:53:2: error: ‘EGLContext’ does not name a type
  62.   53 |  EGLContext ctx;
  63.      |  ^~~~~~~~~~
  64. ../src/libcamera/pipeline/simple/converter_gl.cpp:34:5: error: no declaration matches ‘int libcamera::SimpleConverter::configure(const libcamera::StreamConfiguration&, const libcamera::StreamConfiguration&)’
  65.   34 | int SimpleConverter::configure(const StreamConfiguration &inputCfg,
  66.      |     ^~~~~~~~~~~~~~~
  67. In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  68. ../src/libcamera/pipeline/simple/converter_gl.h:26:6: note: candidate is: ‘int libcamera::SimpleConverter::configure(const int&, const int&)’
  69.   26 |  int configure(const StreamConfiguration &inputCfg,
  70.      |      ^~~~~~~~~
  71. ../src/libcamera/pipeline/simple/converter_gl.h:17:7: note: ‘class libcamera::SimpleConverter’ defined here
  72.   17 | class SimpleConverter
  73.      |       ^~~~~~~~~~~~~~~
  74. ../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> >*)’:
  75. ../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’
  76.   49 |   outputBuffers.emplace_back(tex.second);
  77.      |                 ^~~~~~~~~~~~
  78. ../src/libcamera/pipeline/simple/converter_gl.cpp:49:34: error: request for member ‘second’ in ‘tex’, which is of non-class type ‘int’
  79.   49 |   outputBuffers.emplace_back(tex.second);
  80.      |                                  ^~~~~~
  81. ../src/libcamera/pipeline/simple/converter_gl.cpp:50:36: error: request for member ‘first’ in ‘tex’, which is of non-class type ‘int’
  82.   50 |   buffers->push_back(std::move(tex.first));
  83.      |                                    ^~~~~
  84. ../src/libcamera/pipeline/simple/converter_gl.cpp: At global scope:
  85. ../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)’
  86.   55 | std::pair<std::unique_ptr<FrameBuffer>, GlRenderTarget> SimpleConverter::createBuffer(unsigned int index)
  87.      |                                                         ^~~~~~~~~~~~~~~
  88. In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  89. ../src/libcamera/pipeline/simple/converter_gl.h:25:58: note: candidate is: ‘int libcamera::SimpleConverter::createBuffer(unsigned int)’
  90.   25 |  std::pair<std::unique_ptr<FrameBuffer>, GlRenderTarget> createBuffer(unsigned int index);
  91.      |                                                          ^~~~~~~~~~~~
  92. ../src/libcamera/pipeline/simple/converter_gl.h:17:7: note: ‘class libcamera::SimpleConverter’ defined here
  93.   17 | class SimpleConverter
  94.      |       ^~~~~~~~~~~~~~~
  95. ../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)’
  96.   79 | SimpleConverter::dmabuf_image SimpleConverter::import_dmabuf(int fd, Size pixelSize, libcamera::PixelFormat format)
  97.      |                               ^~~~~~~~~~~~~~~
  98. In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  99. ../src/libcamera/pipeline/simple/converter_gl.h:32:15: note: candidate is: ‘libcamera::SimpleConverter::dmabuf_image libcamera::SimpleConverter::import_dmabuf(int, int, int)’
  100.   32 |  dmabuf_image import_dmabuf(int fd, Size pixelSize, libcamera::PixelFormat format);
  101.      |               ^~~~~~~~~~~~~
  102. ../src/libcamera/pipeline/simple/converter_gl.h:17:7: note: ‘class libcamera::SimpleConverter’ defined here
  103.   17 | class SimpleConverter
  104.      |       ^~~~~~~~~~~~~~~
  105. ../src/libcamera/pipeline/simple/converter_gl.cpp: In member function ‘void libcamera::SimpleConverter::start()’:
  106. ../src/libcamera/pipeline/simple/converter_gl.cpp:129:25: error: cannot convert ‘gbm_device*’ to ‘libcamera::gbm_device*’ in assignment
  107.  129 |  gbm = gbm_create_device(fd);
  108.      |        ~~~~~~~~~~~~~~~~~^~~~
  109.      |                         |
  110.      |                         gbm_device*
  111. In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:3:
  112. /usr/include/gbm.h:46:8: note: class type ‘gbm_device’ is incomplete
  113.   46 | struct gbm_device;
  114.      |        ^~~~~~~~~~
  115. ../src/libcamera/pipeline/simple/converter_gl.cpp:134:2: error: ‘dpy’ was not declared in this scope
  116.  134 |  dpy = eglGetPlatformDisplayEXT(EGL_PLATFORM_GBM_MESA, gbm, NULL);
  117.      |  ^~~
  118. ../src/libcamera/pipeline/simple/converter_gl.cpp:146:2: error: ‘ctx’ was not declared in this scope
  119.  146 |  ctx = eglCreateContext(dpy, config, EGL_NO_CONTEXT, NULL);
  120.      |  ^~~
  121. ../src/libcamera/pipeline/simple/converter_gl.cpp:154:2: error: ‘shaderProgram’ was not declared in this scope
  122.  154 |  shaderProgram.callShader("default.vert", "default.frag");
  123.      |  ^~~~~~~~~~~~~
  124. ../src/libcamera/pipeline/simple/converter_gl.cpp:155:2: error: ‘framebufferProgram’ was not declared in this scope
  125.  155 |  framebufferProgram.callShader("bayer_8.vert", "bayer_8.frag");
  126.      |  ^~~~~~~~~~~~~~~~~~
  127. ../src/libcamera/pipeline/simple/converter_gl.cpp: In member function ‘std::unique_ptr<libcamera::FrameBuffer> libcamera::SimpleConverter::queueBuffers(libcamera::FrameBuffer*, libcamera::FrameBuffer*)’:
  128. ../src/libcamera/pipeline/simple/converter_gl.cpp:160:2: error: ‘framebufferProgram’ was not declared in this scope
  129.  160 |  framebufferProgram.Activate();
  130.      |  ^~~~~~~~~~~~~~~~~~
  131. ../src/libcamera/pipeline/simple/converter_gl.cpp:165:24: error: ‘struct libcamera::SimpleConverter::converterFormat’ has no member named ‘size’
  132.  165 |       1.0f / (informat.size.height - 1));
  133.      |                        ^~~~
  134. ../src/libcamera/pipeline/simple/converter_gl.cpp:166:80: error: ‘struct libcamera::SimpleConverter::converterFormat’ has no member named ‘size’
  135.  166 |  glUniform2i(glGetUniformLocation(framebufferProgram.ID, "tex_size"), informat.size.width,
  136.      |                                                                                ^~~~
  137. ../src/libcamera/pipeline/simple/converter_gl.cpp:167:16: error: ‘struct libcamera::SimpleConverter::converterFormat’ has no member named ‘size’
  138.  167 |       informat.size.height);
  139.      |                ^~~~
  140. ../src/libcamera/pipeline/simple/converter_gl.cpp:171:38: error: ‘shaderProgram’ was not declared in this scope
  141.  171 |  GLuint uniID = glGetUniformLocation(shaderProgram.ID, "scale");
  142.      |                                      ^~~~~~~~~~~~~
  143. ../src/libcamera/pipeline/simple/converter_gl.cpp:190:112: error: ‘struct libcamera::SimpleConverter::converterFormat’ has no member named ‘size’
  144.  190 |  Texture home(mappedBuffers_[input].get(), GL_TEXTURE_2D, GL_TEXTURE0, GL_LUMINANCE, GL_UNSIGNED_BYTE,informat.size);
  145.      |                                                                                                                ^~~~
  146. ../src/libcamera/pipeline/simple/converter_gl.cpp:171:9: error: unused variable ‘uniID’ [-Werror=unused-variable]
  147.  171 |  GLuint uniID = glGetUniformLocation(shaderProgram.ID, "scale");
  148.      |         ^~~~~
  149. ../src/libcamera/pipeline/simple/converter_gl.cpp: In member function ‘void libcamera::SimpleConverter::stop()’:
  150. ../src/libcamera/pipeline/simple/converter_gl.cpp:228:2: error: ‘shaderProgram’ was not declared in this scope
  151.  228 |  shaderProgram.Delete();
  152.      |  ^~~~~~~~~~~~~
  153. ../src/libcamera/pipeline/simple/converter_gl.cpp:230:20: error: ‘dpy’ was not declared in this scope
  154.  230 |  eglDestroySurface(dpy, srf);
  155.      |                    ^~~
  156. ../src/libcamera/pipeline/simple/converter_gl.cpp:230:25: error: ‘srf’ was not declared in this scope; did you mean ‘erf’?
  157.  230 |  eglDestroySurface(dpy, srf);
  158.      |                         ^~~
  159.      |                         erf
  160. ../src/libcamera/pipeline/simple/converter_gl.cpp:231:25: error: ‘ctx’ was not declared in this scope
  161.  231 |  eglDestroyContext(dpy, ctx);
  162.      |                         ^~~
  163. ../src/libcamera/pipeline/simple/converter_gl.cpp:234:21: error: cannot convert ‘libcamera::gbm_device*’ to ‘gbm_device*’
  164.  234 |  gbm_device_destroy(gbm);
  165.      |                     ^~~
  166.      |                     |
  167.      |                     libcamera::gbm_device*
  168. In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:3:
  169. /usr/include/gbm.h:265:39: note:   initializing argument 1 of ‘void gbm_device_destroy(gbm_device*)’
  170.  265 | gbm_device_destroy(struct gbm_device *gbm);
  171.      |                    ~~~~~~~~~~~~~~~~~~~^~~
  172. In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  173. ../src/libcamera/pipeline/simple/converter_gl.h:59:9: note: class type ‘libcamera::gbm_device’ is incomplete
  174.   59 |  struct gbm_device *gbm;
  175.      |         ^~~~~~~~~~
  176. In file included from /usr/include/c++/10/memory:83,
  177.                 from ../include/libcamera/base/class.h:10,
  178.                 from ../include/libcamera/internal/mapped_framebuffer.h:13,
  179.                 from ../src/libcamera/pipeline/simple/converter_gl.h:6,
  180.                 from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  181. /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>]’:
  182. ../src/libcamera/pipeline/simple/converter_gl.cpp:222:45:   required from here
  183. /usr/include/c++/10/bits/unique_ptr.h:962:30: error: no matching function for call to ‘libcamera::FrameBuffer::FrameBuffer(libcamera::FrameBuffer*&)’
  184.  962 |     { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
  185.      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  186. In file included from ../include/libcamera/internal/mapped_framebuffer.h:17,
  187.                 from ../src/libcamera/pipeline/simple/converter_gl.h:6,
  188.                 from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  189. ../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)’
  190.   62 |  FrameBuffer(std::unique_ptr<Private> d,
  191.      |  ^~~~~~~~~~~
  192. ../include/libcamera/framebuffer.h:62:2: note:   candidate expects 3 arguments, 1 provided
  193. ../include/libcamera/framebuffer.h:61:2: note: candidate: ‘libcamera::FrameBuffer::FrameBuffer(const std::vector<libcamera::FrameBuffer::Plane>&, unsigned int)’
  194.   61 |  FrameBuffer(const std::vector<Plane> &planes, unsigned int cookie = 0);
  195.      |  ^~~~~~~~~~~
  196. ../include/libcamera/framebuffer.h:61:40: note:   no known conversion for argument 1 from ‘libcamera::FrameBuffer*’ to ‘const std::vector<libcamera::FrameBuffer::Plane>&’
  197.   61 |  FrameBuffer(const std::vector<Plane> &planes, unsigned int cookie = 0);
  198.      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
  199. In file included from /usr/include/c++/10/vector:66,
  200.                 from ../include/libcamera/internal/mapped_framebuffer.h:11,
  201.                 from ../src/libcamera/pipeline/simple/converter_gl.h:6,
  202.                 from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
  203. /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>*]’:
  204. /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>]’
  205. /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> >]’
  206. ../src/libcamera/pipeline/simple/converter_gl.cpp:52:10:   required from here
  207. /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
  208.  137 |       static_assert(is_constructible<_ValueType2, decltype(*__first)>::value,
  209.      |                                                                        ^~~~~
  210. cc1plus: all warnings being treated as errors
  211. [6/142] Compiling C++ object src/qcam/qcam.p/viewfinder_qt.cpp.o
  212. ninja: build stopped: subcommand failed.
  213.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement