Closed fraschm1998 closed 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
I have updated Makefile and hyprpm.toml, please use make all
to build instead of meson, or alternatively use hyprpm
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
Any version after this commit should work: https://github.com/hyprwm/Hyprland/commit/ef23ef60c5641c5903f9cf40571ead7ad6aba1b9
meson setup ./builddir ./
meson-log.txt:
ls /home/epyc/Android/Sdk/ndk/26.2.11394342/toolchains/llvm/prebuilt/linux-x86_64/bin/