soreau / pixdecor

Pixdecor plugin
MIT License
12 stars 3 forks source link

ninja subcommand failed #10

Closed Samson7 closed 6 months ago

Samson7 commented 6 months ago

os: Arch Linux (zen kernel) wayfire: 0.8.0-1d6ab59 (Mar 6 2024, branch 'master') wlroots: 0.17.1-1.1

I got this errors during ninja build: ninja: Entering directory build' [1/7] Compiling C++ object src/libpixdecor.so.p/deco-layout.cpp.o FAILED: src/libpixdecor.so.p/deco-layout.cpp.o c++ -Isrc/libpixdecor.so.p -Isrc -I../src -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/libpng16 -I/usr/include/sysprof-6 -I/usr/include/libdrm -I/usr/include/libevdev-1.0 -I/usr/include/libxml2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++17 -O0 -g -DWLR_USE_UNSTABLE -DWAYFIRE_PLUGIN -fPIC -pthread -MD -MQ src/libpixdecor.so.p/deco-layout.cpp.o -MF src/libpixdecor.so.p/deco-layout.cpp.o.d -o src/libpixdecor.so.p/deco-layout.cpp.o -c ../src/deco-layout.cpp In file included from ../src/deco-layout.cpp:5: /usr/include/wayfire/nonstd/wlroots-full.hpp:35:10: fatal error: wlr/types/wlr_output_damage.h: No such file or directory 35 | #include <wlr/types/wlr_output_damage.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. [2/7] Compiling C++ object src/libpixdecor.so.p/deco-theme.cpp.o FAILED: src/libpixdecor.so.p/deco-theme.cpp.o c++ -Isrc/libpixdecor.so.p -Isrc -I../src -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/libpng16 -I/usr/include/sysprof-6 -I/usr/include/libdrm -I/usr/include/libevdev-1.0 -I/usr/include/libxml2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++17 -O0 -g -DWLR_USE_UNSTABLE -DWAYFIRE_PLUGIN -fPIC -pthread -MD -MQ src/libpixdecor.so.p/deco-theme.cpp.o -MF src/libpixdecor.so.p/deco-theme.cpp.o.d -o src/libpixdecor.so.p/deco-theme.cpp.o -c ../src/deco-theme.cpp In file included from /usr/include/wlr/types/wlr_output.h:17, from /usr/include/wayfire/nonstd/wlroots.hpp:56, from /usr/include/wayfire/geometry.hpp:5, from /usr/include/wayfire/output.hpp:4, from /usr/include/wayfire/render-manager.hpp:3, from ../src/deco-theme.hpp:3, from ../src/deco-theme.cpp:1: /usr/include/wlr/render/wlr_renderer.h:78:67: error: expected primary-expression before ‘static’ 78 | void wlr_renderer_clear(struct wlr_renderer *r, const float color[static 4]); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:78:67: error: expected ‘]’ before ‘static’ 78 | void wlr_renderer_clear(struct wlr_renderer *r, const float color[static 4]); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:78:67: error: expected ‘)’ before ‘static’ 78 | void wlr_renderer_clear(struct wlr_renderer *r, const float color[static 4]); | ~ ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:78:67: error: expected initializer before ‘static’ 78 | void wlr_renderer_clear(struct wlr_renderer *r, const float color[static 4]); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:89:32: error: expected primary-expression before ‘static’ 89 | const float projection[static 9], int x, int y, float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:89:32: error: expected ‘]’ before ‘static’ 89 | const float projection[static 9], int x, int y, float alpha); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:89:32: error: expected ‘)’ before ‘static’ 89 | const float projection[static 9], int x, int y, float alpha); | ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:88:24: note: to match this ‘(’ 88 | bool wlr_render_texture(struct wlr_renderer *r, struct wlr_texture *texture, | ^ /usr/include/wlr/render/wlr_renderer.h:89:32: error: expected initializer before ‘static’ 89 | const float projection[static 9], int x, int y, float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:94:57: error: expected primary-expression before ‘static’ 94 | struct wlr_texture *texture, const float matrix[static 9], float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:94:57: error: expected ‘]’ before ‘static’ 94 | struct wlr_texture *texture, const float matrix[static 9], float alpha); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:94:57: error: expected ‘)’ before ‘static’ 94 | struct wlr_texture *texture, const float matrix[static 9], float alpha); | ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:93:36: note: to match this ‘(’ 93 | bool wlr_render_texture_with_matrix(struct wlr_renderer *r, | ^ /usr/include/wlr/render/wlr_renderer.h:94:57: error: expected initializer before ‘static’ 94 | struct wlr_texture *texture, const float matrix[static 9], float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:101:28: error: expected primary-expression before ‘static’ 101 | const float matrix[static 9], float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:101:28: error: expected ‘]’ before ‘static’ 101 | const float matrix[static 9], float alpha); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:101:28: error: expected ‘)’ before ‘static’ 101 | const float matrix[static 9], float alpha); | ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:99:39: note: to match this ‘(’ 99 | bool wlr_render_subtexture_with_matrix(struct wlr_renderer *r, | ^ /usr/include/wlr/render/wlr_renderer.h:101:28: error: expected initializer before ‘static’ 101 | const float matrix[static 9], float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:106:27: error: expected primary-expression before ‘static’ 106 | const float color[static 4], const float projection[static 9]); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:106:27: error: expected ‘]’ before ‘static’ 106 | const float color[static 4], const float projection[static 9]); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:106:27: error: expected ‘)’ before ‘static’ 106 | const float color[static 4], const float projection[static 9]); | ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:105:21: note: to match this ‘(’ 105 | void wlr_render_rect(struct wlr_renderer *r, const struct wlr_box *box, | ^ /usr/include/wlr/render/wlr_renderer.h:106:27: error: expected initializer before ‘static’ 106 | const float color[static 4], const float projection[static 9]); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:111:27: error: expected primary-expression before ‘static’ 111 | const float color[static 4], const float matrix[static 9]); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:111:27: error: expected ‘]’ before ‘static’ 111 | const float color[static 4], const float matrix[static 9]); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:111:27: error: expected ‘)’ before ‘static’ 111 | const float color[static 4], const float matrix[static 9]); | ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:110:33: note: to match this ‘(’ 110 | void wlr_render_quad_with_matrix(struct wlr_renderer *r, | ^ /usr/include/wlr/render/wlr_renderer.h:111:27: error: expected initializer before ‘static’ 111 | const float color[static 4], const float matrix[static 9]); | ^~~~~~ [3/7] Compiling C++ object src/libpixdecor.so.p/deco-effects.cpp.o FAILED: src/libpixdecor.so.p/deco-effects.cpp.o c++ -Isrc/libpixdecor.so.p -Isrc -I../src -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/libpng16 -I/usr/include/sysprof-6 -I/usr/include/libdrm -I/usr/include/libevdev-1.0 -I/usr/include/libxml2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++17 -O0 -g -DWLR_USE_UNSTABLE -DWAYFIRE_PLUGIN -fPIC -pthread -MD -MQ src/libpixdecor.so.p/deco-effects.cpp.o -MF src/libpixdecor.so.p/deco-effects.cpp.o.d -o src/libpixdecor.so.p/deco-effects.cpp.o -c ../src/deco-effects.cpp In file included from /usr/include/wlr/types/wlr_output.h:17, from /usr/include/wayfire/nonstd/wlroots.hpp:56, from /usr/include/wayfire/geometry.hpp:5, from /usr/include/wayfire/region.hpp:4, from /usr/include/wayfire/opengl.hpp:4, from /usr/include/wayfire/scene.hpp:3, from /usr/include/wayfire/debug.hpp:11, from ../src/deco-effects.cpp:31: /usr/include/wlr/render/wlr_renderer.h:78:67: error: expected primary-expression before ‘static’ 78 | void wlr_renderer_clear(struct wlr_renderer *r, const float color[static 4]); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:78:67: error: expected ‘]’ before ‘static’ 78 | void wlr_renderer_clear(struct wlr_renderer *r, const float color[static 4]); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:78:67: error: expected ‘)’ before ‘static’ 78 | void wlr_renderer_clear(struct wlr_renderer *r, const float color[static 4]); | ~ ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:78:67: error: expected initializer before ‘static’ 78 | void wlr_renderer_clear(struct wlr_renderer *r, const float color[static 4]); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:89:32: error: expected primary-expression before ‘static’ 89 | const float projection[static 9], int x, int y, float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:89:32: error: expected ‘]’ before ‘static’ 89 | const float projection[static 9], int x, int y, float alpha); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:89:32: error: expected ‘)’ before ‘static’ 89 | const float projection[static 9], int x, int y, float alpha); | ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:88:24: note: to match this ‘(’ 88 | bool wlr_render_texture(struct wlr_renderer *r, struct wlr_texture *texture, | ^ /usr/include/wlr/render/wlr_renderer.h:89:32: error: expected initializer before ‘static’ 89 | const float projection[static 9], int x, int y, float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:94:57: error: expected primary-expression before ‘static’ 94 | struct wlr_texture *texture, const float matrix[static 9], float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:94:57: error: expected ‘]’ before ‘static’ 94 | struct wlr_texture *texture, const float matrix[static 9], float alpha); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:94:57: error: expected ‘)’ before ‘static’ 94 | struct wlr_texture *texture, const float matrix[static 9], float alpha); | ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:93:36: note: to match this ‘(’ 93 | bool wlr_render_texture_with_matrix(struct wlr_renderer *r, | ^ /usr/include/wlr/render/wlr_renderer.h:94:57: error: expected initializer before ‘static’ 94 | struct wlr_texture *texture, const float matrix[static 9], float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:101:28: error: expected primary-expression before ‘static’ 101 | const float matrix[static 9], float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:101:28: error: expected ‘]’ before ‘static’ 101 | const float matrix[static 9], float alpha); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:101:28: error: expected ‘)’ before ‘static’ 101 | const float matrix[static 9], float alpha); | ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:99:39: note: to match this ‘(’ 99 | bool wlr_render_subtexture_with_matrix(struct wlr_renderer *r, | ^ /usr/include/wlr/render/wlr_renderer.h:101:28: error: expected initializer before ‘static’ 101 | const float matrix[static 9], float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:106:27: error: expected primary-expression before ‘static’ 106 | const float color[static 4], const float projection[static 9]); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:106:27: error: expected ‘]’ before ‘static’ 106 | const float color[static 4], const float projection[static 9]); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:106:27: error: expected ‘)’ before ‘static’ 106 | const float color[static 4], const float projection[static 9]); | ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:105:21: note: to match this ‘(’ 105 | void wlr_render_rect(struct wlr_renderer *r, const struct wlr_box *box, | ^ /usr/include/wlr/render/wlr_renderer.h:106:27: error: expected initializer before ‘static’ 106 | const float color[static 4], const float projection[static 9]); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:111:27: error: expected primary-expression before ‘static’ 111 | const float color[static 4], const float matrix[static 9]); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:111:27: error: expected ‘]’ before ‘static’ 111 | const float color[static 4], const float matrix[static 9]); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:111:27: error: expected ‘)’ before ‘static’ 111 | const float color[static 4], const float matrix[static 9]); | ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:110:33: note: to match this ‘(’ 110 | void wlr_render_quad_with_matrix(struct wlr_renderer *r, | ^ /usr/include/wlr/render/wlr_renderer.h:111:27: error: expected initializer before ‘static’ 111 | const float color[static 4], const float matrix[static 9]); | ^~~~~~ [4/7] Compiling C++ object src/libpixdecor.so.p/deco-button.cpp.o FAILED: src/libpixdecor.so.p/deco-button.cpp.o c++ -Isrc/libpixdecor.so.p -Isrc -I../src -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/libpng16 -I/usr/include/sysprof-6 -I/usr/include/libdrm -I/usr/include/libevdev-1.0 -I/usr/include/libxml2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++17 -O0 -g -DWLR_USE_UNSTABLE -DWAYFIRE_PLUGIN -fPIC -pthread -MD -MQ src/libpixdecor.so.p/deco-button.cpp.o -MF src/libpixdecor.so.p/deco-button.cpp.o.d -o src/libpixdecor.so.p/deco-button.cpp.o -c ../src/deco-button.cpp In file included from /usr/include/wlr/types/wlr_output.h:17, from /usr/include/wayfire/nonstd/wlroots.hpp:56, from /usr/include/wayfire/geometry.hpp:5, from /usr/include/wayfire/region.hpp:4, from /usr/include/wayfire/opengl.hpp:4, from ../src/deco-button.hpp:5, from ../src/deco-button.cpp:1: /usr/include/wlr/render/wlr_renderer.h:78:67: error: expected primary-expression before ‘static’ 78 | void wlr_renderer_clear(struct wlr_renderer *r, const float color[static 4]); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:78:67: error: expected ‘]’ before ‘static’ 78 | void wlr_renderer_clear(struct wlr_renderer *r, const float color[static 4]); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:78:67: error: expected ‘)’ before ‘static’ 78 | void wlr_renderer_clear(struct wlr_renderer *r, const float color[static 4]); | ~ ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:78:67: error: expected initializer before ‘static’ 78 | void wlr_renderer_clear(struct wlr_renderer *r, const float color[static 4]); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:89:32: error: expected primary-expression before ‘static’ 89 | const float projection[static 9], int x, int y, float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:89:32: error: expected ‘]’ before ‘static’ 89 | const float projection[static 9], int x, int y, float alpha); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:89:32: error: expected ‘)’ before ‘static’ 89 | const float projection[static 9], int x, int y, float alpha); | ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:88:24: note: to match this ‘(’ 88 | bool wlr_render_texture(struct wlr_renderer *r, struct wlr_texture *texture, | ^ /usr/include/wlr/render/wlr_renderer.h:89:32: error: expected initializer before ‘static’ 89 | const float projection[static 9], int x, int y, float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:94:57: error: expected primary-expression before ‘static’ 94 | struct wlr_texture *texture, const float matrix[static 9], float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:94:57: error: expected ‘]’ before ‘static’ 94 | struct wlr_texture *texture, const float matrix[static 9], float alpha); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:94:57: error: expected ‘)’ before ‘static’ 94 | struct wlr_texture *texture, const float matrix[static 9], float alpha); | ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:93:36: note: to match this ‘(’ 93 | bool wlr_render_texture_with_matrix(struct wlr_renderer *r, | ^ /usr/include/wlr/render/wlr_renderer.h:94:57: error: expected initializer before ‘static’ 94 | struct wlr_texture *texture, const float matrix[static 9], float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:101:28: error: expected primary-expression before ‘static’ 101 | const float matrix[static 9], float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:101:28: error: expected ‘]’ before ‘static’ 101 | const float matrix[static 9], float alpha); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:101:28: error: expected ‘)’ before ‘static’ 101 | const float matrix[static 9], float alpha); | ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:99:39: note: to match this ‘(’ 99 | bool wlr_render_subtexture_with_matrix(struct wlr_renderer *r, | ^ /usr/include/wlr/render/wlr_renderer.h:101:28: error: expected initializer before ‘static’ 101 | const float matrix[static 9], float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:106:27: error: expected primary-expression before ‘static’ 106 | const float color[static 4], const float projection[static 9]); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:106:27: error: expected ‘]’ before ‘static’ 106 | const float color[static 4], const float projection[static 9]); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:106:27: error: expected ‘)’ before ‘static’ 106 | const float color[static 4], const float projection[static 9]); | ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:105:21: note: to match this ‘(’ 105 | void wlr_render_rect(struct wlr_renderer *r, const struct wlr_box *box, | ^ /usr/include/wlr/render/wlr_renderer.h:106:27: error: expected initializer before ‘static’ 106 | const float color[static 4], const float projection[static 9]); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:111:27: error: expected primary-expression before ‘static’ 111 | const float color[static 4], const float matrix[static 9]); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:111:27: error: expected ‘]’ before ‘static’ 111 | const float color[static 4], const float matrix[static 9]); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:111:27: error: expected ‘)’ before ‘static’ 111 | const float color[static 4], const float matrix[static 9]); | ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:110:33: note: to match this ‘(’ 110 | void wlr_render_quad_with_matrix(struct wlr_renderer *r, | ^ /usr/include/wlr/render/wlr_renderer.h:111:27: error: expected initializer before ‘static’ 111 | const float color[static 4], const float matrix[static 9]); | ^~~~~~ [5/7] Compiling C++ object src/libpixdecor.so.p/decoration.cpp.o FAILED: src/libpixdecor.so.p/decoration.cpp.o c++ -Isrc/libpixdecor.so.p -Isrc -I../src -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/libpng16 -I/usr/include/sysprof-6 -I/usr/include/libdrm -I/usr/include/libevdev-1.0 -I/usr/include/libxml2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++17 -O0 -g -DWLR_USE_UNSTABLE -DWAYFIRE_PLUGIN -fPIC -pthread -MD -MQ src/libpixdecor.so.p/decoration.cpp.o -MF src/libpixdecor.so.p/decoration.cpp.o.d -o src/libpixdecor.so.p/decoration.cpp.o -c ../src/decoration.cpp In file included from /usr/include/wlr/types/wlr_output.h:17, from /usr/include/wayfire/nonstd/wlroots.hpp:56, from /usr/include/wayfire/geometry.hpp:5, from /usr/include/wayfire/view.hpp:11, from /usr/include/wayfire/signal-definitions.hpp:5, from /usr/include/wayfire/per-output-plugin.hpp:2, from ../src/decoration.cpp:1: /usr/include/wlr/render/wlr_renderer.h:78:67: error: expected primary-expression before ‘static’ 78 | void wlr_renderer_clear(struct wlr_renderer *r, const float color[static 4]); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:78:67: error: expected ‘]’ before ‘static’ 78 | void wlr_renderer_clear(struct wlr_renderer *r, const float color[static 4]); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:78:67: error: expected ‘)’ before ‘static’ 78 | void wlr_renderer_clear(struct wlr_renderer *r, const float color[static 4]); | ~ ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:78:67: error: expected initializer before ‘static’ 78 | void wlr_renderer_clear(struct wlr_renderer *r, const float color[static 4]); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:89:32: error: expected primary-expression before ‘static’ 89 | const float projection[static 9], int x, int y, float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:89:32: error: expected ‘]’ before ‘static’ 89 | const float projection[static 9], int x, int y, float alpha); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:89:32: error: expected ‘)’ before ‘static’ 89 | const float projection[static 9], int x, int y, float alpha); | ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:88:24: note: to match this ‘(’ 88 | bool wlr_render_texture(struct wlr_renderer *r, struct wlr_texture *texture, | ^ /usr/include/wlr/render/wlr_renderer.h:89:32: error: expected initializer before ‘static’ 89 | const float projection[static 9], int x, int y, float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:94:57: error: expected primary-expression before ‘static’ 94 | struct wlr_texture *texture, const float matrix[static 9], float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:94:57: error: expected ‘]’ before ‘static’ 94 | struct wlr_texture *texture, const float matrix[static 9], float alpha); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:94:57: error: expected ‘)’ before ‘static’ 94 | struct wlr_texture *texture, const float matrix[static 9], float alpha); | ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:93:36: note: to match this ‘(’ 93 | bool wlr_render_texture_with_matrix(struct wlr_renderer *r, | ^ /usr/include/wlr/render/wlr_renderer.h:94:57: error: expected initializer before ‘static’ 94 | struct wlr_texture *texture, const float matrix[static 9], float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:101:28: error: expected primary-expression before ‘static’ 101 | const float matrix[static 9], float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:101:28: error: expected ‘]’ before ‘static’ 101 | const float matrix[static 9], float alpha); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:101:28: error: expected ‘)’ before ‘static’ 101 | const float matrix[static 9], float alpha); | ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:99:39: note: to match this ‘(’ 99 | bool wlr_render_subtexture_with_matrix(struct wlr_renderer *r, | ^ /usr/include/wlr/render/wlr_renderer.h:101:28: error: expected initializer before ‘static’ 101 | const float matrix[static 9], float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:106:27: error: expected primary-expression before ‘static’ 106 | const float color[static 4], const float projection[static 9]); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:106:27: error: expected ‘]’ before ‘static’ 106 | const float color[static 4], const float projection[static 9]); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:106:27: error: expected ‘)’ before ‘static’ 106 | const float color[static 4], const float projection[static 9]); | ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:105:21: note: to match this ‘(’ 105 | void wlr_render_rect(struct wlr_renderer *r, const struct wlr_box *box, | ^ /usr/include/wlr/render/wlr_renderer.h:106:27: error: expected initializer before ‘static’ 106 | const float color[static 4], const float projection[static 9]); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:111:27: error: expected primary-expression before ‘static’ 111 | const float color[static 4], const float matrix[static 9]); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:111:27: error: expected ‘]’ before ‘static’ 111 | const float color[static 4], const float matrix[static 9]); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:111:27: error: expected ‘)’ before ‘static’ 111 | const float color[static 4], const float matrix[static 9]); | ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:110:33: note: to match this ‘(’ 110 | void wlr_render_quad_with_matrix(struct wlr_renderer *r, | ^ /usr/include/wlr/render/wlr_renderer.h:111:27: error: expected initializer before ‘static’ 111 | const float color[static 4], const float matrix[static 9]); | ^~~~~~ [6/7] Compiling C++ object src/libpixdecor.so.p/deco-subsurface.cpp.o FAILED: src/libpixdecor.so.p/deco-subsurface.cpp.o c++ -Isrc/libpixdecor.so.p -Isrc -I../src -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/libpng16 -I/usr/include/sysprof-6 -I/usr/include/libdrm -I/usr/include/libevdev-1.0 -I/usr/include/libxml2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++17 -O0 -g -DWLR_USE_UNSTABLE -DWAYFIRE_PLUGIN -fPIC -pthread -MD -MQ src/libpixdecor.so.p/deco-subsurface.cpp.o -MF src/libpixdecor.so.p/deco-subsurface.cpp.o.d -o src/libpixdecor.so.p/deco-subsurface.cpp.o -c ../src/deco-subsurface.cpp In file included from /usr/include/wlr/types/wlr_output.h:17, from /usr/include/wayfire/nonstd/wlroots.hpp:56, from /usr/include/wayfire/geometry.hpp:5, from ../src/deco-subsurface.cpp:1: /usr/include/wlr/render/wlr_renderer.h:78:67: error: expected primary-expression before ‘static’ 78 | void wlr_renderer_clear(struct wlr_renderer *r, const float color[static 4]); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:78:67: error: expected ‘]’ before ‘static’ 78 | void wlr_renderer_clear(struct wlr_renderer *r, const float color[static 4]); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:78:67: error: expected ‘)’ before ‘static’ 78 | void wlr_renderer_clear(struct wlr_renderer *r, const float color[static 4]); | ~ ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:78:67: error: expected initializer before ‘static’ 78 | void wlr_renderer_clear(struct wlr_renderer *r, const float color[static 4]); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:89:32: error: expected primary-expression before ‘static’ 89 | const float projection[static 9], int x, int y, float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:89:32: error: expected ‘]’ before ‘static’ 89 | const float projection[static 9], int x, int y, float alpha); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:89:32: error: expected ‘)’ before ‘static’ 89 | const float projection[static 9], int x, int y, float alpha); | ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:88:24: note: to match this ‘(’ 88 | bool wlr_render_texture(struct wlr_renderer *r, struct wlr_texture *texture, | ^ /usr/include/wlr/render/wlr_renderer.h:89:32: error: expected initializer before ‘static’ 89 | const float projection[static 9], int x, int y, float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:94:57: error: expected primary-expression before ‘static’ 94 | struct wlr_texture *texture, const float matrix[static 9], float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:94:57: error: expected ‘]’ before ‘static’ 94 | struct wlr_texture *texture, const float matrix[static 9], float alpha); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:94:57: error: expected ‘)’ before ‘static’ 94 | struct wlr_texture *texture, const float matrix[static 9], float alpha); | ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:93:36: note: to match this ‘(’ 93 | bool wlr_render_texture_with_matrix(struct wlr_renderer *r, | ^ /usr/include/wlr/render/wlr_renderer.h:94:57: error: expected initializer before ‘static’ 94 | struct wlr_texture *texture, const float matrix[static 9], float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:101:28: error: expected primary-expression before ‘static’ 101 | const float matrix[static 9], float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:101:28: error: expected ‘]’ before ‘static’ 101 | const float matrix[static 9], float alpha); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:101:28: error: expected ‘)’ before ‘static’ 101 | const float matrix[static 9], float alpha); | ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:99:39: note: to match this ‘(’ 99 | bool wlr_render_subtexture_with_matrix(struct wlr_renderer *r, | ^ /usr/include/wlr/render/wlr_renderer.h:101:28: error: expected initializer before ‘static’ 101 | const float matrix[static 9], float alpha); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:106:27: error: expected primary-expression before ‘static’ 106 | const float color[static 4], const float projection[static 9]); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:106:27: error: expected ‘]’ before ‘static’ 106 | const float color[static 4], const float projection[static 9]); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:106:27: error: expected ‘)’ before ‘static’ 106 | const float color[static 4], const float projection[static 9]); | ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:105:21: note: to match this ‘(’ 105 | void wlr_render_rect(struct wlr_renderer *r, const struct wlr_box *box, | ^ /usr/include/wlr/render/wlr_renderer.h:106:27: error: expected initializer before ‘static’ 106 | const float color[static 4], const float projection[static 9]); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:111:27: error: expected primary-expression before ‘static’ 111 | const float color[static 4], const float matrix[static 9]); | ^~~~~~ /usr/include/wlr/render/wlr_renderer.h:111:27: error: expected ‘]’ before ‘static’ 111 | const float color[static 4], const float matrix[static 9]); | ^~~~~~ | ] /usr/include/wlr/render/wlr_renderer.h:111:27: error: expected ‘)’ before ‘static’ 111 | const float color[static 4], const float matrix[static 9]); | ^~~~~~ | ) /usr/include/wlr/render/wlr_renderer.h:110:33: note: to match this ‘(’ 110 | void wlr_render_quad_with_matrix(struct wlr_renderer *r, | ^ /usr/include/wlr/render/wlr_renderer.h:111:27: error: expected initializer before ‘static’ 111 | const float color[static 4], const float matrix[static 9]); | ^~~~~~ ninja: build stopped: subcommand failed.

soreau commented 6 months ago

It appears that maybe it's finding an old version of wlroots. If you have wayfire installed to a nonstandard prefix, you might have to set PKG_CONFIG_PATH to the directory containing wayfire.pc before building pixdecor.

Samson7 commented 6 months ago

Found the issue, wayfire 0.8 not compatible with wlroots >= 0.17. So the solution is to uninstall wlroots then pacman -S wlroots0.16 then restart. But the new issue come in - pkg-config can't find wlroots0.16 so the solution is to define enviroment variable PKG_CONFIG_PATH like this: export PKG_CONFIG_PATH=/usr/lib/wayfire0.16/pkgconfig/