Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pi@raspberrypi:~/Desktop/compile/libcamera $ ninja -C build install
- ninja: Entering directory `build'
- [5/123] 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:27:42: error: ‘GlRenderTarget’ was not declared in this scope
- 27 | std::pair<std::unique_ptr<FrameBuffer>, GlRenderTarget> createBuffer(unsigned int index);
- | ^~~~~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:27:56: error: template argument 2 is invalid
- 27 | std::pair<std::unique_ptr<FrameBuffer>, GlRenderTarget> createBuffer(unsigned int index);
- | ^
- ../src/libcamera/pipeline/simple/converter_gl.h:28:22: error: ‘StreamConfiguration’ does not name a type
- 28 | int configure(const StreamConfiguration &inputCfg,
- | ^~~~~~~~~~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:29:15: error: ‘StreamConfiguration’ does not name a type
- 29 | const StreamConfiguration &outputCfg);
- | ^~~~~~~~~~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:31:3: error: ‘GLuint’ does not name a type; did you mean ‘uint’?
- 31 | GLuint texture;
- | ^~~~~~
- | uint
- ../src/libcamera/pipeline/simple/converter_gl.h:32:3: error: ‘EGLImageKHR’ does not name a type
- 32 | EGLImageKHR image;
- | ^~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:34:53: error: ‘libcamera::PixelFormat’ has not been declared
- 34 | dmabuf_image import_dmabuf(int fd, Size pixelSize, libcamera::PixelFormat format);
- | ^~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:46:2: error: ‘Shader’ does not name a type
- 46 | Shader shaderProgram;
- | ^~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:47:2: error: ‘Shader’ does not name a type
- 47 | Shader framebufferProgram;
- | ^~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:48:14: error: ‘GlRenderTarget’ was not declared in this scope
- 48 | std::vector<GlRenderTarget> outputBuffers;
- | ^~~~~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:48:28: error: template argument 1 is invalid
- 48 | std::vector<GlRenderTarget> outputBuffers;
- | ^
- ../src/libcamera/pipeline/simple/converter_gl.h:48:28: error: template argument 2 is invalid
- ../src/libcamera/pipeline/simple/converter_gl.h:59:2: error: ‘EGLDisplay’ does not name a type
- 59 | EGLDisplay dpy;
- | ^~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:60:2: error: ‘EGLSurface’ does not name a type
- 60 | EGLSurface srf;
- | ^~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:61:2: error: ‘EGLContext’ does not name a type
- 61 | 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:28:6: note: candidate is: ‘int libcamera::SimpleConverter::configure(const int&, const int&)’
- 28 | int configure(const StreamConfiguration &inputCfg,
- | ^~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:19:7: note: ‘class libcamera::SimpleConverter’ defined here
- 19 | 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:27:58: note: candidate is: ‘int libcamera::SimpleConverter::createBuffer(unsigned int)’
- 27 | std::pair<std::unique_ptr<FrameBuffer>, GlRenderTarget> createBuffer(unsigned int index);
- | ^~~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:19:7: note: ‘class libcamera::SimpleConverter’ defined here
- 19 | 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:34:15: note: candidate is: ‘libcamera::SimpleConverter::dmabuf_image libcamera::SimpleConverter::import_dmabuf(int, libcamera::Size, int)’
- 34 | dmabuf_image import_dmabuf(int fd, Size pixelSize, libcamera::PixelFormat format);
- | ^~~~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.h:19:7: note: ‘class libcamera::SimpleConverter’ defined here
- 19 | 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: In member function ‘void libcamera::SimpleConverter::stop()’:
- ../src/libcamera/pipeline/simple/converter_gl.cpp:226:2: error: ‘shaderProgram’ was not declared in this scope
- 226 | shaderProgram.Delete();
- | ^~~~~~~~~~~~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp:228:20: error: ‘dpy’ was not declared in this scope
- 228 | eglDestroySurface(dpy, srf);
- | ^~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp:228:25: error: ‘srf’ was not declared in this scope; did you mean ‘erf’?
- 228 | eglDestroySurface(dpy, srf);
- | ^~~
- | erf
- ../src/libcamera/pipeline/simple/converter_gl.cpp:229:25: error: ‘ctx’ was not declared in this scope
- 229 | eglDestroyContext(dpy, ctx);
- | ^~~
- ../src/libcamera/pipeline/simple/converter_gl.cpp:232:21: error: cannot convert ‘libcamera::gbm_device*’ to ‘gbm_device*’
- 232 | 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:62:9: note: class type ‘libcamera::gbm_device’ is incomplete
- 62 | struct gbm_device *gbm;
- | ^~~~~~~~~~
- In file included from /usr/include/c++/10/memory:83,
- from ../include/libcamera/base/class.h:10,
- from ../include/libcamera/base/log.h:15,
- from ../src/libcamera/pipeline/simple/converter_gl.h:10,
- 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:220: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:13,
- 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/memory:66,
- from ../include/libcamera/base/class.h:10,
- from ../include/libcamera/base/log.h:15,
- from ../src/libcamera/pipeline/simple/converter_gl.h:10,
- 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,
- | ^~~~~
- [10/123] Compiling C++ object test/ipc/unixsocket_ipc.p/unixsocket_ipc.cpp.o
- ninja: build stopped: subcommand failed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement