Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ninja: Entering directory `build'
- [1/142] Compiling C++ object src/libcamera/libcamera.so.0.0.0.p/pipeline_simple_shaderClass.cpp.o
- FAILED: src/libcamera/libcamera.so.0.0.0.p/pipeline_simple_shaderClass.cpp.o
- 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
- ../src/libcamera/pipeline/simple/shaderClass.cpp: In member function ‘void Shader::compileErrors(unsigned int, const char*)’:
- ../src/libcamera/pipeline/simple/shaderClass.cpp:83:11: error: comparison with string literal results in unspecified behavior [-Werror=address]
- 83 | if (type != "PROGRAM") {
- | ~~~~~^~~~~~~~~~~~
- cc1plus: all warnings being treated as errors
- [4/142] Compiling C++ object src/libcamera/libcamera.so.0.0.0.p/pipeline_simple_converter_gl.cpp.o
- FAILED: src/libcamera/libcamera.so.0.0.0.p/pipeline_simple_converter_gl.cpp.o
- 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
- In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
- ../src/libcamera/pipeline/simple/converter_gl.h:25:42: error: ‘GlRenderTarget’ was not declared in this scope
- 25 | std::pair<std::unique_ptr<FrameBuffer>, GlRenderTarget> createBuffer(unsigned int index);
- | ^~~~~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:25:56: error: template argument 2 is invalid
- 25 | std::pair<std::unique_ptr<FrameBuffer>, GlRenderTarget> createBuffer(unsigned int index);
- | ^
- ../src/libcamera/pipeline/simple/converter_gl.h:26:22: error: ‘StreamConfiguration’ does not name a type
- 26 | int configure(const StreamConfiguration &inputCfg,
- | ^~~~~~~~~~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:27:15: error: ‘StreamConfiguration’ does not name a type
- 27 | const StreamConfiguration &outputCfg);
- | ^~~~~~~~~~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:29:3: error: ‘GLuint’ does not name a type; did you mean ‘uint’?
- 29 | GLuint texture;
- | ^~~~~~
- | uint
- ../src/libcamera/pipeline/simple/converter_gl.h:30:3: error: ‘EGLImageKHR’ does not name a type
- 30 | EGLImageKHR image;
- | ^~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:32:37: error: ‘Size’ has not been declared
- 32 | dmabuf_image import_dmabuf(int fd, Size pixelSize, libcamera::PixelFormat format);
- | ^~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:32:53: error: ‘libcamera::PixelFormat’ has not been declared
- 32 | dmabuf_image import_dmabuf(int fd, Size pixelSize, libcamera::PixelFormat format);
- | ^~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:38:3: error: ‘Size’ does not name a type
- 38 | Size size;
- | ^~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:44:2: error: ‘Shader’ does not name a type
- 44 | Shader shaderProgram;
- | ^~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:45:2: error: ‘Shader’ does not name a type
- 45 | Shader framebufferProgram;
- | ^~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:46:14: error: ‘GlRenderTarget’ was not declared in this scope
- 46 | std::vector<GlRenderTarget> outputBuffers;
- | ^~~~~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:46:28: error: template argument 1 is invalid
- 46 | std::vector<GlRenderTarget> outputBuffers;
- | ^
- ../src/libcamera/pipeline/simple/converter_gl.h:46:28: error: template argument 2 is invalid
- ../src/libcamera/pipeline/simple/converter_gl.h:51:2: error: ‘EGLDisplay’ does not name a type
- 51 | EGLDisplay dpy;
- | ^~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:52:2: error: ‘EGLSurface’ does not name a type
- 52 | EGLSurface srf;
- | ^~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:53:2: error: ‘EGLContext’ does not name a type
- 53 | EGLContext ctx;
- | ^~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp:34:5: error: no declaration matches ‘int libcamera::SimpleConverter::configure(const libcamera::StreamConfiguration&, const libcamera::StreamConfiguration&)’
- 34 | int SimpleConverter::configure(const StreamConfiguration &inputCfg,
- | ^~~~~~~~~~~~~~~
- In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
- ../src/libcamera/pipeline/simple/converter_gl.h:26:6: note: candidate is: ‘int libcamera::SimpleConverter::configure(const int&, const int&)’
- 26 | int configure(const StreamConfiguration &inputCfg,
- | ^~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:17:7: note: ‘class libcamera::SimpleConverter’ defined here
- 17 | class SimpleConverter
- | ^~~~~~~~~~~~~~~
- ../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> >*)’:
- ../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’
- 49 | outputBuffers.emplace_back(tex.second);
- | ^~~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp:49:34: error: request for member ‘second’ in ‘tex’, which is of non-class type ‘int’
- 49 | outputBuffers.emplace_back(tex.second);
- | ^~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp:50:36: error: request for member ‘first’ in ‘tex’, which is of non-class type ‘int’
- 50 | buffers->push_back(std::move(tex.first));
- | ^~~~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp: At global scope:
- ../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)’
- 55 | std::pair<std::unique_ptr<FrameBuffer>, GlRenderTarget> SimpleConverter::createBuffer(unsigned int index)
- | ^~~~~~~~~~~~~~~
- In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
- ../src/libcamera/pipeline/simple/converter_gl.h:25:58: note: candidate is: ‘int libcamera::SimpleConverter::createBuffer(unsigned int)’
- 25 | std::pair<std::unique_ptr<FrameBuffer>, GlRenderTarget> createBuffer(unsigned int index);
- | ^~~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:17:7: note: ‘class libcamera::SimpleConverter’ defined here
- 17 | class SimpleConverter
- | ^~~~~~~~~~~~~~~
- ../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)’
- 79 | SimpleConverter::dmabuf_image SimpleConverter::import_dmabuf(int fd, Size pixelSize, libcamera::PixelFormat format)
- | ^~~~~~~~~~~~~~~
- In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
- ../src/libcamera/pipeline/simple/converter_gl.h:32:15: note: candidate is: ‘libcamera::SimpleConverter::dmabuf_image libcamera::SimpleConverter::import_dmabuf(int, int, int)’
- 32 | dmabuf_image import_dmabuf(int fd, Size pixelSize, libcamera::PixelFormat format);
- | ^~~~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:17:7: note: ‘class libcamera::SimpleConverter’ defined here
- 17 | class SimpleConverter
- | ^~~~~~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp: In member function ‘void libcamera::SimpleConverter::start()’:
- ../src/libcamera/pipeline/simple/converter_gl.cpp:129:25: error: cannot convert ‘gbm_device*’ to ‘libcamera::gbm_device*’ in assignment
- 129 | gbm = gbm_create_device(fd);
- | ~~~~~~~~~~~~~~~~~^~~~
- | |
- | gbm_device*
- In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:3:
- /usr/include/gbm.h:46:8: note: class type ‘gbm_device’ is incomplete
- 46 | struct gbm_device;
- | ^~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp:134:2: error: ‘dpy’ was not declared in this scope
- 134 | dpy = eglGetPlatformDisplayEXT(EGL_PLATFORM_GBM_MESA, gbm, NULL);
- | ^~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp:146:2: error: ‘ctx’ was not declared in this scope
- 146 | ctx = eglCreateContext(dpy, config, EGL_NO_CONTEXT, NULL);
- | ^~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp:154:2: error: ‘shaderProgram’ was not declared in this scope
- 154 | shaderProgram.callShader("default.vert", "default.frag");
- | ^~~~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp:155:2: error: ‘framebufferProgram’ was not declared in this scope
- 155 | framebufferProgram.callShader("bayer_8.vert", "bayer_8.frag");
- | ^~~~~~~~~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp: In member function ‘std::unique_ptr<libcamera::FrameBuffer> libcamera::SimpleConverter::queueBuffers(libcamera::FrameBuffer*, libcamera::FrameBuffer*)’:
- ../src/libcamera/pipeline/simple/converter_gl.cpp:160:2: error: ‘framebufferProgram’ was not declared in this scope
- 160 | framebufferProgram.Activate();
- | ^~~~~~~~~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp:165:24: error: ‘struct libcamera::SimpleConverter::converterFormat’ has no member named ‘size’
- 165 | 1.0f / (informat.size.height - 1));
- | ^~~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp:166:80: error: ‘struct libcamera::SimpleConverter::converterFormat’ has no member named ‘size’
- 166 | glUniform2i(glGetUniformLocation(framebufferProgram.ID, "tex_size"), informat.size.width,
- | ^~~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp:167:16: error: ‘struct libcamera::SimpleConverter::converterFormat’ has no member named ‘size’
- 167 | informat.size.height);
- | ^~~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp:171:38: error: ‘shaderProgram’ was not declared in this scope
- 171 | GLuint uniID = glGetUniformLocation(shaderProgram.ID, "scale");
- | ^~~~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp:190:112: error: ‘struct libcamera::SimpleConverter::converterFormat’ has no member named ‘size’
- 190 | Texture home(mappedBuffers_[input].get(), GL_TEXTURE_2D, GL_TEXTURE0, GL_LUMINANCE, GL_UNSIGNED_BYTE,informat.size);
- | ^~~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp:171:9: error: unused variable ‘uniID’ [-Werror=unused-variable]
- 171 | GLuint uniID = glGetUniformLocation(shaderProgram.ID, "scale");
- | ^~~~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp: In member function ‘void libcamera::SimpleConverter::stop()’:
- ../src/libcamera/pipeline/simple/converter_gl.cpp:228:2: error: ‘shaderProgram’ was not declared in this scope
- 228 | shaderProgram.Delete();
- | ^~~~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp:230:20: error: ‘dpy’ was not declared in this scope
- 230 | eglDestroySurface(dpy, srf);
- | ^~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp:230:25: error: ‘srf’ was not declared in this scope; did you mean ‘erf’?
- 230 | eglDestroySurface(dpy, srf);
- | ^~~
- | erf
- ../src/libcamera/pipeline/simple/converter_gl.cpp:231:25: error: ‘ctx’ was not declared in this scope
- 231 | eglDestroyContext(dpy, ctx);
- | ^~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp:234:21: error: cannot convert ‘libcamera::gbm_device*’ to ‘gbm_device*’
- 234 | gbm_device_destroy(gbm);
- | ^~~
- | |
- | libcamera::gbm_device*
- In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:3:
- /usr/include/gbm.h:265:39: note: initializing argument 1 of ‘void gbm_device_destroy(gbm_device*)’
- 265 | gbm_device_destroy(struct gbm_device *gbm);
- | ~~~~~~~~~~~~~~~~~~~^~~
- In file included from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
- ../src/libcamera/pipeline/simple/converter_gl.h:59:9: note: class type ‘libcamera::gbm_device’ is incomplete
- 59 | struct gbm_device *gbm;
- | ^~~~~~~~~~
- In file included from /usr/include/c++/10/memory:83,
- from ../include/libcamera/base/class.h:10,
- from ../include/libcamera/internal/mapped_framebuffer.h:13,
- from ../src/libcamera/pipeline/simple/converter_gl.h:6,
- from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
- /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>]’:
- ../src/libcamera/pipeline/simple/converter_gl.cpp:222:45: required from here
- /usr/include/c++/10/bits/unique_ptr.h:962:30: error: no matching function for call to ‘libcamera::FrameBuffer::FrameBuffer(libcamera::FrameBuffer*&)’
- 962 | { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from ../include/libcamera/internal/mapped_framebuffer.h:17,
- from ../src/libcamera/pipeline/simple/converter_gl.h:6,
- from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
- ../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)’
- 62 | FrameBuffer(std::unique_ptr<Private> d,
- | ^~~~~~~~~~~
- ../include/libcamera/framebuffer.h:62:2: note: candidate expects 3 arguments, 1 provided
- ../include/libcamera/framebuffer.h:61:2: note: candidate: ‘libcamera::FrameBuffer::FrameBuffer(const std::vector<libcamera::FrameBuffer::Plane>&, unsigned int)’
- 61 | FrameBuffer(const std::vector<Plane> &planes, unsigned int cookie = 0);
- | ^~~~~~~~~~~
- ../include/libcamera/framebuffer.h:61:40: note: no known conversion for argument 1 from ‘libcamera::FrameBuffer*’ to ‘const std::vector<libcamera::FrameBuffer::Plane>&’
- 61 | FrameBuffer(const std::vector<Plane> &planes, unsigned int cookie = 0);
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
- In file included from /usr/include/c++/10/vector:66,
- from ../include/libcamera/internal/mapped_framebuffer.h:11,
- from ../src/libcamera/pipeline/simple/converter_gl.h:6,
- from ../src/libcamera/pipeline/simple/converter_gl.cpp:1:
- /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>*]’:
- /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>]’
- /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> >]’
- ../src/libcamera/pipeline/simple/converter_gl.cpp:52:10: required from here
- /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
- 137 | static_assert(is_constructible<_ValueType2, decltype(*__first)>::value,
- | ^~~~~
- cc1plus: all warnings being treated as errors
- [6/142] Compiling C++ object src/qcam/qcam.p/viewfinder_qt.cpp.o
- ninja: build stopped: subcommand failed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement