KZDKM / Hyprspace

Workspace overview plugin for Hyprland
GNU General Public License v2.0
285 stars 9 forks source link

Unknown compiler build error #1

Closed fraschm1998 closed 1 month ago

fraschm1998 commented 1 month ago

meson setup ./builddir ./

The Meson build system
Version: 1.4.0
Source dir: /home/epyc/bin/Hyprspace
Build dir: /home/epyc/bin/Hyprspace/builddir
Build type: native build
Project name: hyprspace
Project version: 0.1

meson.build:1:0: ERROR: Unknown compiler(s): [['/home/epyc/Android/Sdk/ndk/26.2.11394342/toolchains/llvm/prebuilt/linux-x86_64/bin/33-clang++']]
The following exception(s) were encountered:
Running `/home/epyc/Android/Sdk/ndk/26.2.11394342/toolchains/llvm/prebuilt/linux-x86_64/bin/33-clang++ --version` gave "[Errno 2] No such file or directory: '/home/epyc/Android/Sdk/ndk/26.2.11394342/toolchains/llvm/prebuilt/linux-x86_64/bin/33-clang++'"

A full log can be found at /home/epyc/bin/Hyprspace/builddir/meson-logs/meson-log.txt

meson-log.txt:

Build started at 2024-04-10T13:16:28.207098
Main binary: /usr/bin/python3.11
Build Options: 
Python system: Linux
The Meson build system
Version: 1.4.0
Source dir: /home/epyc/bin/Hyprspace
Build dir: /home/epyc/bin/Hyprspace/builddir
Build type: native build
Project name: hyprspace
Project version: 0.1
-----------
Detecting compiler via: `/home/epyc/Android/Sdk/ndk/26.2.11394342/toolchains/llvm/prebuilt/linux-x86_64/bin/33-clang++ --version` -> [Errno 2] No such file or directory: '/home/epyc/Android/Sdk/ndk/26.2.11394342/toolchains/llvm/prebuilt/linux-x86_64/bin/33-clang++'

meson.build:1:0: ERROR: Unknown compiler(s): [['/home/epyc/Android/Sdk/ndk/26.2.11394342/toolchains/llvm/prebuilt/linux-x86_64/bin/33-clang++']]
The following exception(s) were encountered:
Running `/home/epyc/Android/Sdk/ndk/26.2.11394342/toolchains/llvm/prebuilt/linux-x86_64/bin/33-clang++ --version` gave "[Errno 2] No such file or directory: '/home/epyc/Android/Sdk/ndk/26.2.11394342/toolchains/llvm/prebuilt/linux-x86_64/bin/33-clang++'"

ls /home/epyc/Android/Sdk/ndk/26.2.11394342/toolchains/llvm/prebuilt/linux-x86_64/bin/

aarch64-linux-android21-clang
aarch64-linux-android21-clang++
aarch64-linux-android22-clang
aarch64-linux-android22-clang++
aarch64-linux-android23-clang
aarch64-linux-android23-clang++
aarch64-linux-android24-clang
aarch64-linux-android24-clang++
aarch64-linux-android25-clang
aarch64-linux-android25-clang++
aarch64-linux-android26-clang
aarch64-linux-android26-clang++
aarch64-linux-android27-clang
aarch64-linux-android27-clang++
aarch64-linux-android28-clang
aarch64-linux-android28-clang++
aarch64-linux-android29-clang
aarch64-linux-android29-clang++
aarch64-linux-android30-clang
aarch64-linux-android30-clang++
aarch64-linux-android31-clang
aarch64-linux-android31-clang++
aarch64-linux-android32-clang
aarch64-linux-android32-clang++
aarch64-linux-android33-clang
aarch64-linux-android33-clang++
aarch64-linux-android34-clang
aarch64-linux-android34-clang++
armv7a-linux-androideabi21-clang
armv7a-linux-androideabi21-clang++
armv7a-linux-androideabi22-clang
armv7a-linux-androideabi22-clang++
armv7a-linux-androideabi23-clang
armv7a-linux-androideabi23-clang++
armv7a-linux-androideabi24-clang
armv7a-linux-androideabi24-clang++
armv7a-linux-androideabi25-clang
armv7a-linux-androideabi25-clang++
armv7a-linux-androideabi26-clang
armv7a-linux-androideabi26-clang++
armv7a-linux-androideabi27-clang
armv7a-linux-androideabi27-clang++
armv7a-linux-androideabi28-clang
armv7a-linux-androideabi28-clang++
armv7a-linux-androideabi29-clang
armv7a-linux-androideabi29-clang++
armv7a-linux-androideabi30-clang
armv7a-linux-androideabi30-clang++
armv7a-linux-androideabi31-clang
armv7a-linux-androideabi31-clang++
armv7a-linux-androideabi32-clang
armv7a-linux-androideabi32-clang++
armv7a-linux-androideabi33-clang
armv7a-linux-androideabi33-clang++
armv7a-linux-androideabi34-clang
armv7a-linux-androideabi34-clang++
bisect_driver.py
clang -> clang-17
clang++ -> clang
clang-17
clang-check
clang-format
clang-tidy
clang-tidy.sh
clangd
dsymutil
git-clang-format
i686-linux-android21-clang
i686-linux-android21-clang++
i686-linux-android22-clang
i686-linux-android22-clang++
i686-linux-android23-clang
i686-linux-android23-clang++
i686-linux-android24-clang
i686-linux-android24-clang++
i686-linux-android25-clang
i686-linux-android25-clang++
i686-linux-android26-clang
i686-linux-android26-clang++
i686-linux-android27-clang
i686-linux-android27-clang++
i686-linux-android28-clang
i686-linux-android28-clang++
i686-linux-android29-clang
i686-linux-android29-clang++
i686-linux-android30-clang
i686-linux-android30-clang++
i686-linux-android31-clang
i686-linux-android31-clang++
i686-linux-android32-clang
i686-linux-android32-clang++
i686-linux-android33-clang
i686-linux-android33-clang++
i686-linux-android34-clang
i686-linux-android34-clang++
ld -> ld.lld
ld.lld -> lld
ld64.lld -> lld
lld
lld-link -> lld
lldb
lldb-argdumper
lldb.sh
llvm-addr2line -> llvm-symbolizer
llvm-ar
llvm-as
llvm-bolt
llvm-cfi-verify
llvm-config
llvm-cov
llvm-cxxfilt
llvm-dis
llvm-dwarfdump
llvm-dwp
llvm-ifs
llvm-lib -> llvm-ar
llvm-link
llvm-lipo
llvm-ml
llvm-modextract
llvm-nm
llvm-objcopy
llvm-objdump
llvm-profdata
llvm-ranlib -> llvm-ar
llvm-rc
llvm-readelf -> llvm-readobj
llvm-readobj
llvm-size
llvm-strings
llvm-strip -> llvm-objcopy
llvm-symbolizer
llvm-windres -> llvm-rc
merge-fdata
remote_toolchain_inputs
sancov
sanstats
scan-build
scan-view
x86_64-linux-android21-clang
x86_64-linux-android21-clang++
x86_64-linux-android22-clang
x86_64-linux-android22-clang++
x86_64-linux-android23-clang
x86_64-linux-android23-clang++
x86_64-linux-android24-clang
x86_64-linux-android24-clang++
x86_64-linux-android25-clang
x86_64-linux-android25-clang++
x86_64-linux-android26-clang
x86_64-linux-android26-clang++
x86_64-linux-android27-clang
x86_64-linux-android27-clang++
x86_64-linux-android28-clang
x86_64-linux-android28-clang++
x86_64-linux-android29-clang
x86_64-linux-android29-clang++
x86_64-linux-android30-clang
x86_64-linux-android30-clang++
x86_64-linux-android31-clang
x86_64-linux-android31-clang++
x86_64-linux-android32-clang
x86_64-linux-android32-clang++
x86_64-linux-android33-clang
x86_64-linux-android33-clang++
x86_64-linux-android34-clang
x86_64-linux-android34-clang++
yasm
fraschm1998 commented 1 month ago

fixed with: export CXX=/home/epyc/Android/Sdk/ndk/26.2.11394342/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++

but now get this compilation error (using latest git):

[1/6] Compiling C++ object libhyprspace.so.p/src_Input.cpp.o
FAILED: libhyprspace.so.p/src_Input.cpp.o 
/home/epyc/Android/Sdk/ndk/26.2.11394342/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -Ilibhyprspace.so.p -I. -I.. -I/usr/include/hyprland/protocols -I/usr/include/hyprland/wlroots -I/usr/include/pixman-1 -I/usr/include/libdrm -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O0 -g -DWLR_USE_UNSTABLE -std=c++2b -fPIC -MD -MQ libhyprspace.so.p/src_Input.cpp.o -MF libhyprspace.so.p/src_Input.cpp.o.d -o libhyprspace.so.p/src_Input.cpp.o -c ../src/Input.cpp
In file included from ../src/Input.cpp:2:
../src/Globals.hpp:10:68: error: unknown type name 'PHLWORKSPACE'
typedef void (*tRenderWorkspaceWindows)(CHyprRenderer*, CMonitor*, PHLWORKSPACE, timespec*);
                                                                   ^
../src/Globals.hpp:16:51: error: unknown type name 'PHLWORKSPACE'
typedef void (*tChangeWorkspace)(CMonitor*, const PHLWORKSPACE&, bool, bool, bool);
                                                  ^
../src/Globals.hpp:18:64: error: unknown type name 'PHLWORKSPACE'
typedef SWorkspaceRule(*tGetWorkspaceRuleFor)(CConfigManager*, PHLWORKSPACE);
                                                               ^
../src/Input.cpp:49:40: error: member reference type 'CWorkspace *' is a pointer; did you mean to use '->'?
    if (targetWindow && targetWorkspace.get() && !pressed) {
                        ~~~~~~~~~~~~~~~^
                                       ->
../src/Input.cpp:49:41: error: no member named 'get' in 'CWorkspace'
    if (targetWindow && targetWorkspace.get() && !pressed) {
                        ~~~~~~~~~~~~~~~ ^
../src/Input.cpp:68:53: error: member reference type 'CWorkspace *' is a pointer; did you mean to use '->'?
    else if (Config::exitOnClick && !targetWorkspace.get() && active && couldExit && !pressed) hide();
                                     ~~~~~~~~~~~~~~~^
                                                    ->
../src/Input.cpp:68:54: error: no member named 'get' in 'CWorkspace'
    else if (Config::exitOnClick && !targetWorkspace.get() && active && couldExit && !pressed) hide();
                                     ~~~~~~~~~~~~~~~ ^
../src/Input.cpp:75:132: error: non-constant-expression cannot be narrowed from type 'int' to 'double' in initializer list [-Wc++11-narrowing]
    CBox widgetBox = {getOwner()->vecPosition.x, getOwner()->vecPosition.y - curYOffset.value(), getOwner()->vecTransformedSize.x, Config::panelHeight}; //TODO: update size on monitor change
                                                                                                                                   ^~~~~~~~~~~~~~~~~~~
../src/Input.cpp:75:132: note: insert an explicit cast to silence this issue
    CBox widgetBox = {getOwner()->vecPosition.x, getOwner()->vecPosition.y - curYOffset.value(), getOwner()->vecTransformedSize.x, Config::panelHeight}; //TODO: update size on monitor change
                                                                                                                                   ^~~~~~~~~~~~~~~~~~~
                                                                                                                                   static_cast<double>( )
8 errors generated.
[2/6] Compiling C++ object libhyprspace.so.p/src_Overview.cpp.o
FAILED: libhyprspace.so.p/src_Overview.cpp.o 
/home/epyc/Android/Sdk/ndk/26.2.11394342/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -Ilibhyprspace.so.p -I. -I.. -I/usr/include/hyprland/protocols -I/usr/include/hyprland/wlroots -I/usr/include/pixman-1 -I/usr/include/libdrm -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O0 -g -DWLR_USE_UNSTABLE -std=c++2b -fPIC -MD -MQ libhyprspace.so.p/src_Overview.cpp.o -MF libhyprspace.so.p/src_Overview.cpp.o.d -o libhyprspace.so.p/src_Overview.cpp.o -c ../src/Overview.cpp
In file included from ../src/Overview.cpp:2:
../src/Globals.hpp:10:68: error: unknown type name 'PHLWORKSPACE'
typedef void (*tRenderWorkspaceWindows)(CHyprRenderer*, CMonitor*, PHLWORKSPACE, timespec*);
                                                                   ^
../src/Globals.hpp:16:51: error: unknown type name 'PHLWORKSPACE'
typedef void (*tChangeWorkspace)(CMonitor*, const PHLWORKSPACE&, bool, bool, bool);
                                                  ^
../src/Globals.hpp:18:64: error: unknown type name 'PHLWORKSPACE'
typedef SWorkspaceRule(*tGetWorkspaceRuleFor)(CConfigManager*, PHLWORKSPACE);
                                                               ^
3 errors generated.
[3/6] Compiling C++ object libhyprspace.so.p/src_Render.cpp.o
FAILED: libhyprspace.so.p/src_Render.cpp.o 
/home/epyc/Android/Sdk/ndk/26.2.11394342/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -Ilibhyprspace.so.p -I. -I.. -I/usr/include/hyprland/protocols -I/usr/include/hyprland/wlroots -I/usr/include/pixman-1 -I/usr/include/libdrm -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O0 -g -DWLR_USE_UNSTABLE -std=c++2b -fPIC -MD -MQ libhyprspace.so.p/src_Render.cpp.o -MF libhyprspace.so.p/src_Render.cpp.o.d -o libhyprspace.so.p/src_Render.cpp.o -c ../src/Render.cpp
In file included from ../src/Render.cpp:2:
../src/Globals.hpp:10:68: error: unknown type name 'PHLWORKSPACE'
typedef void (*tRenderWorkspaceWindows)(CHyprRenderer*, CMonitor*, PHLWORKSPACE, timespec*);
                                                                   ^
../src/Globals.hpp:16:51: error: unknown type name 'PHLWORKSPACE'
typedef void (*tChangeWorkspace)(CMonitor*, const PHLWORKSPACE&, bool, bool, bool);
                                                  ^
../src/Globals.hpp:18:64: error: unknown type name 'PHLWORKSPACE'
typedef SWorkspaceRule(*tGetWorkspaceRuleFor)(CConfigManager*, PHLWORKSPACE);
                                                               ^
../src/Render.cpp:4:61: error: unknown type name 'PHLWORKSPACE'
void renderWindowStub(CWindow* pWindow, CMonitor* pMonitor, PHLWORKSPACE pWorkspaceOverride, CBox rectOverride, timespec* time) {
                                                            ^
../src/Render.cpp:8:38: error: no member named 'm_pWorkspace' in 'CWindow'; did you mean 'm_iWorkspaceID'?
    const auto oWorkspace = pWindow->m_pWorkspace;
                                     ^~~~~~~~~~~~
                                     m_iWorkspaceID
/usr/include/hyprland/src/helpers/../desktop/Window.hpp:257:17: note: 'm_iWorkspaceID' declared here
    int         m_iWorkspaceID        = -1;
                ^
../src/Render.cpp:17:77: error: no member named 'enabled' in 'SRenderModifData'
    const auto oRenderModifEnable = g_pHyprOpenGL->m_RenderData.renderModif.enabled;
                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
../src/Render.cpp:22:45: error: no member named 'enabled' in 'SRenderModifData'
    g_pHyprOpenGL->m_RenderData.renderModif.enabled = true;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
../src/Render.cpp:23:14: error: no member named 'm_pWorkspace' in 'CWindow'; did you mean 'm_iWorkspaceID'?
    pWindow->m_pWorkspace = pWorkspaceOverride;
             ^~~~~~~~~~~~
             m_iWorkspaceID
/usr/include/hyprland/src/helpers/../desktop/Window.hpp:257:17: note: 'm_iWorkspaceID' declared here
    int         m_iWorkspaceID        = -1;
                ^
../src/Render.cpp:39:14: error: no member named 'm_pWorkspace' in 'CWindow'; did you mean 'm_iWorkspaceID'?
    pWindow->m_pWorkspace = oWorkspace;
             ^~~~~~~~~~~~
             m_iWorkspaceID
/usr/include/hyprland/src/helpers/../desktop/Window.hpp:257:17: note: 'm_iWorkspaceID' declared here
    int         m_iWorkspaceID        = -1;
                ^
../src/Render.cpp:48:45: error: no member named 'enabled' in 'SRenderModifData'
    g_pHyprOpenGL->m_RenderData.renderModif.enabled = oRenderModifEnable;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
../src/Render.cpp:90:117: error: non-constant-expression cannot be narrowed from type 'int' to 'double' in initializer list [-Wc++11-narrowing]
    CBox widgetBox = {owner->vecPosition.x, owner->vecPosition.y - curYOffset.value(), owner->vecTransformedSize.x, Config::panelHeight}; //TODO: update size on monitor change
                                                                                                                    ^~~~~~~~~~~~~~~~~~~
../src/Render.cpp:90:117: note: insert an explicit cast to silence this issue
    CBox widgetBox = {owner->vecPosition.x, owner->vecPosition.y - curYOffset.value(), owner->vecTransformedSize.x, Config::panelHeight}; //TODO: update size on monitor change
                                                                                                                    ^~~~~~~~~~~~~~~~~~~
                                                                                                                    static_cast<double>( )
../src/Render.cpp:146:16: error: comparison between pointer and integer ('CWorkspace *' and 'int')
        if (ws == owner->activeWorkspace) {
            ~~ ^  ~~~~~~~~~~~~~~~~~~~~~~
../src/Render.cpp:175:36: error: comparison between pointer and integer ('int' and 'CWorkspace *')
        if (owner->activeWorkspace == ws) {
            ~~~~~~~~~~~~~~~~~~~~~~ ^  ~~
../src/Render.cpp:185:24: error: no member named 'm_pWorkspace' in 'CWindow'
                if (w->m_pWorkspace == ws && !w->m_bIsFloating) {
                    ~~~^
../src/Render.cpp:201:24: error: no member named 'm_pWorkspace' in 'CWindow'
                if (w->m_pWorkspace == ws && w->m_bIsFloating && ws->getLastFocusedWindow() != w.get()) {
                    ~~~^
../src/Render.cpp:231:36: error: comparison between pointer and integer ('int' and 'CWorkspace *')
        if (owner->activeWorkspace != ws) {
            ~~~~~~~~~~~~~~~~~~~~~~ ^  ~~
16 errors generated.
[4/6] Compiling C++ object libhyprspace.so.p/src_Layout.cpp.o
FAILED: libhyprspace.so.p/src_Layout.cpp.o 
/home/epyc/Android/Sdk/ndk/26.2.11394342/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -Ilibhyprspace.so.p -I. -I.. -I/usr/include/hyprland/protocols -I/usr/include/hyprland/wlroots -I/usr/include/pixman-1 -I/usr/include/libdrm -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O0 -g -DWLR_USE_UNSTABLE -std=c++2b -fPIC -MD -MQ libhyprspace.so.p/src_Layout.cpp.o -MF libhyprspace.so.p/src_Layout.cpp.o.d -o libhyprspace.so.p/src_Layout.cpp.o -c ../src/Layout.cpp
In file included from ../src/Layout.cpp:2:
../src/Globals.hpp:10:68: error: unknown type name 'PHLWORKSPACE'
typedef void (*tRenderWorkspaceWindows)(CHyprRenderer*, CMonitor*, PHLWORKSPACE, timespec*);
                                                                   ^
../src/Globals.hpp:16:51: error: unknown type name 'PHLWORKSPACE'
typedef void (*tChangeWorkspace)(CMonitor*, const PHLWORKSPACE&, bool, bool, bool);
                                                  ^
../src/Globals.hpp:18:64: error: unknown type name 'PHLWORKSPACE'
typedef SWorkspaceRule(*tGetWorkspaceRuleFor)(CConfigManager*, PHLWORKSPACE);
                                                               ^
../src/Layout.cpp:11:83: error: member reference type 'int' is not a pointer
                if (ws->m_iMonitorID == ownerID && ws->m_iID != oActiveWorkspace->m_iID) {
                                                                ~~~~~~~~~~~~~~~~  ^
../src/Layout.cpp:12:49: error: assigning to 'int' from incompatible type 'std::unique_ptr<CWorkspace>'
                    pMonitor->activeWorkspace = ws;
                                                ^~
5 errors generated.
[5/6] Compiling C++ object libhyprspace.so.p/src_main.cpp.o
FAILED: libhyprspace.so.p/src_main.cpp.o 
/home/epyc/Android/Sdk/ndk/26.2.11394342/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -Ilibhyprspace.so.p -I. -I.. -I/usr/include/hyprland/protocols -I/usr/include/hyprland/wlroots -I/usr/include/pixman-1 -I/usr/include/libdrm -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O0 -g -DWLR_USE_UNSTABLE -std=c++2b -fPIC -MD -MQ libhyprspace.so.p/src_main.cpp.o -MF libhyprspace.so.p/src_main.cpp.o.d -o libhyprspace.so.p/src_main.cpp.o -c ../src/main.cpp
In file included from ../src/main.cpp:5:
../src/Globals.hpp:10:68: error: unknown type name 'PHLWORKSPACE'
typedef void (*tRenderWorkspaceWindows)(CHyprRenderer*, CMonitor*, PHLWORKSPACE, timespec*);
                                                                   ^
../src/Globals.hpp:16:51: error: unknown type name 'PHLWORKSPACE'
typedef void (*tChangeWorkspace)(CMonitor*, const PHLWORKSPACE&, bool, bool, bool);
                                                  ^
../src/Globals.hpp:18:64: error: unknown type name 'PHLWORKSPACE'
typedef SWorkspaceRule(*tGetWorkspaceRuleFor)(CConfigManager*, PHLWORKSPACE);
                                                               ^
../src/main.cpp:56:23: warning: 'pluginAPIVersion' has C-linkage specified, but returns user-defined type 'string' (aka 'basic_string<char>') which is incompatible with C [-Wreturn-type-c-linkage]
APICALL EXPORT string PLUGIN_API_VERSION() {
                      ^
/usr/include/hyprland/src/plugins/PluginAPI.hpp:77:37: note: expanded from macro 'PLUGIN_API_VERSION'
#define PLUGIN_API_VERSION          pluginAPIVersion
                                    ^
../src/main.cpp:71:75: error: unknown type name 'PHLWORKSPACE'
void hkRenderWorkspaceWindows(CHyprRenderer* thisptr, CMonitor* pMonitor, PHLWORKSPACE pWorkspace, timespec* now) {
                                                                          ^
../src/main.cpp:102:49: error: unknown type name 'PHLWORKSPACE'
void hkChangeWorkspace(CMonitor* thisptr, const PHLWORKSPACE& pWorkspace, bool internal, bool noMouseMove, bool noFocus) {
                                                ^
../src/main.cpp:112:63: error: unknown type name 'PHLWORKSPACE'
SWorkspaceRule hkGetWorkspaceRuleFor(CConfigManager* thisptr, PHLWORKSPACE pWorkspace) {
                                                              ^
../src/main.cpp:248:40: warning: 'pluginInit' has C-linkage specified, but returns user-defined type 'PLUGIN_DESCRIPTION_INFO' which is incompatible with C [-Wreturn-type-c-linkage]
APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE inHandle) {
                                       ^
/usr/include/hyprland/src/plugins/PluginAPI.hpp:87:30: note: expanded from macro 'PLUGIN_INIT'
#define PLUGIN_INIT          pluginInit
                             ^
2 warnings and 6 errors generated.
ninja: build stopped: subcommand failed.
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja
KZDKM commented 1 month ago

I have updated Makefile and hyprpm.toml, please use make all to build instead of meson, or alternatively use hyprpm

KZDKM commented 1 month ago

Also your header appears to be the main release version, in the latest git headers hyprland has largely replaced CWorkspace* with PHLWORKSPACE type, make sure to update to the latest git commit and hyprpm update to fetch the headers

KZDKM commented 1 month ago

Any version after this commit should work: https://github.com/hyprwm/Hyprland/commit/ef23ef60c5641c5903f9cf40571ead7ad6aba1b9