KZDKM / Hyprspace

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

Fail to install use hyprpm #43

Closed AhJi26 closed 1 month ago

AhJi26 commented 1 month ago
hyprpm add https://github.com/KZDKM/Hyprspace -v
[v] version returned: Hyprland, built from branch  at commit cba1ade848feac44b2eda677503900639581c3f4  (props: bump version to 0.40.0).
Date: Sat May 4 15:42:32 2024
Tag: v0.40.0, commits: 4606

flags: (if any)

[v] parsed commit cba1ade848feac44b2eda677503900639581c3f4 at branch  on Sat May 4 15:42:32 2024, commits 4606
✔ adding a new plugin repository from https://github.com/KZDKM/Hyprspace
  MAKE SURE that you trust the authors. DO NOT install random plugins without verifying the code and author.
  Are you sure? [Y/n] 

 ╍━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  0 / 5  Cloning the plugin re → Cloning https://github.com/KZDKM/Hyprspace                                  
 ╍━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  0 / 5  Cloning the plugin re✔ cloned                                                                       
 ━━━━━━━━━╍━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  1 / 5  Cloning the plugin re ━━━━━━━━━━╍━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  1 / 5  Reading the manifes✔ found hyprpm manifest                                                        
 ━━━━━━━━━━╍━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  1 / 5  Reading the manifes✔ parsed manifest, found 1 plugins:                                            
 ━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  2 / 5  Reading the manifes → Hyprspace by KZdkm version                                                  
 ━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  2 / 5  Reading the manifes → Manifest has 2 pins, checking                                               
 ━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  2 / 5  Reading the manifes✔ Hyprland headers OK                                                          
 → Building Hyprspace                                                          
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━━━━━━━━━━━  3 / 5  Building plugin(s)[v] shell returned:  -> cd /tmp/hyprpm/ahji && PKG_CONFIG_PATH="/home/ahji/.local/share/hyprpm/headersRoot/share/pkgconfig" make all
g++ -shared -fPIC --no-gnu-unique -Wall -g -DWLR_USE_UNSTABLE -std=c++23 -O2 `pkg-config --cflags pixman-1 libdrm hyprland` src/Input.cpp src/Layout.cpp src/main.cpp src/Overview.cpp src/Render.cpp -o Hyprspace.so
src/main.cpp:60:1: error: ‘CSharedPointer’ does not name a type
   60 | CSharedPointer<HOOK_CALLBACK_FN> g_pRenderHook;
      | ^~~~~~~~~~~~~~
src/main.cpp:61:1: error: ‘CSharedPointer’ does not name a type
   61 | CSharedPointer<HOOK_CALLBACK_FN> g_pConfigReloadHook;
      | ^~~~~~~~~~~~~~
src/main.cpp:62:1: error: ‘CSharedPointer’ does not name a type
   62 | CSharedPointer<HOOK_CALLBACK_FN> g_pOpenLayerHook;
      | ^~~~~~~~~~~~~~
src/main.cpp:63:1: error: ‘CSharedPointer’ does not name a type
   63 | CSharedPointer<HOOK_CALLBACK_FN> g_pCloseLayerHook;
      | ^~~~~~~~~~~~~~
src/main.cpp:64:1: error: ‘CSharedPointer’ does not name a type
   64 | CSharedPointer<HOOK_CALLBACK_FN> g_pMouseButtonHook;
      | ^~~~~~~~~~~~~~
src/main.cpp:65:1: error: ‘CSharedPointer’ does not name a type
   65 | CSharedPointer<HOOK_CALLBACK_FN> g_pMouseAxisHook;
      | ^~~~~~~~~~~~~~
src/main.cpp:66:1: error: ‘CSharedPointer’ does not name a type
   66 | CSharedPointer<HOOK_CALLBACK_FN> g_pTouchDownHook;
      | ^~~~~~~~~~~~~~
src/main.cpp:67:1: error: ‘CSharedPointer’ does not name a type
   67 | CSharedPointer<HOOK_CALLBACK_FN> g_pTouchUpHook;
      | ^~~~~~~~~~~~~~
src/main.cpp:68:1: error: ‘CSharedPointer’ does not name a type
   68 | CSharedPointer<HOOK_CALLBACK_FN> g_pSwipeBeginHook;
      | ^~~~~~~~~~~~~~
src/main.cpp:69:1: error: ‘CSharedPointer’ does not name a type
   69 | CSharedPointer<HOOK_CALLBACK_FN> g_pSwipeUpdateHook;
      | ^~~~~~~~~~~~~~
src/main.cpp:70:1: error: ‘CSharedPointer’ does not name a type
   70 | CSharedPointer<HOOK_CALLBACK_FN> g_pSwipeEndHook;
      | ^~~~~~~~~~~~~~
src/main.cpp:71:1: error: ‘CSharedPointer’ does not name a type
   71 | CSharedPointer<HOOK_CALLBACK_FN> g_pKeyPressHook;
      | ^~~~~~~~~~~~~~
src/main.cpp:72:1: error: ‘CSharedPointer’ does not name a type
   72 | CSharedPointer<HOOK_CALLBACK_FN> g_pSwitchWorkspaceHook;
      | ^~~~~~~~~~~~~~
src/main.cpp:73:1: error: ‘CSharedPointer’ does not name a type
   73 | CSharedPointer<HOOK_CALLBACK_FN> g_pAddMonitorHook;
      | ^~~~~~~~~~~~~~
src/main.cpp: In function ‘PLUGIN_DESCRIPTION_INFO pluginInit(void*)’:
src/main.cpp:460:5: error: ‘g_pConfigReloadHook’ was not declared in this scope
  460 |     g_pConfigReloadHook = HyprlandAPI::registerCallbackDynamic(pHandle, "configReloaded", [&] (void* thisptr, SCallbackInfo& info, std::any data) { reloadConfig(); });
      |     ^~~~~~~~~~~~~~~~~~~
src/main.cpp:467:5: error: ‘g_pRenderHook’ was not declared in this scope
  467 |     g_pRenderHook = HyprlandAPI::registerCallbackDynamic(pHandle, "render", onRender);
      |     ^~~~~~~~~~~~~
src/main.cpp:470:5: error: ‘g_pOpenLayerHook’ was not declared in this scope
  470 |     g_pOpenLayerHook = HyprlandAPI::registerCallbackDynamic(pHandle, "openLayer", [&] (void* thisptr, SCallbackInfo& info, std::any data) { g_layoutNeedsRefresh = true; });
      |     ^~~~~~~~~~~~~~~~
src/main.cpp:471:5: error: ‘g_pCloseLayerHook’ was not declared in this scope
  471 |     g_pCloseLayerHook = HyprlandAPI::registerCallbackDynamic(pHandle, "closeLayer", [&] (void* thisptr, SCallbackInfo& info, std::any data) { g_layoutNeedsRefresh = true; });
      |     ^~~~~~~~~~~~~~~~~
src/main.cpp:477:5: error: ‘g_pMouseButtonHook’ was not declared in this scope
  477 |     g_pMouseButtonHook = HyprlandAPI::registerCallbackDynamic(pHandle, "mouseButton", onMouseButton);
      |     ^~~~~~~~~~~~~~~~~~
src/main.cpp:478:5: error: ‘g_pMouseAxisHook’ was not declared in this scope
  478 |     g_pMouseAxisHook = HyprlandAPI::registerCallbackDynamic(pHandle, "mouseAxis", onMouseAxis);
      |     ^~~~~~~~~~~~~~~~
src/main.cpp:480:5: error: ‘g_pTouchDownHook’ was not declared in this scope
  480 |     g_pTouchDownHook = HyprlandAPI::registerCallbackDynamic(pHandle, "touchDown", onTouchDown);
      |     ^~~~~~~~~~~~~~~~
src/main.cpp:481:5: error: ‘g_pTouchUpHook’ was not declared in this scope
  481 |     g_pTouchUpHook = HyprlandAPI::registerCallbackDynamic(pHandle, "touchUp", onTouchUp);
      |     ^~~~~~~~~~~~~~
src/main.cpp:483:5: error: ‘g_pSwipeBeginHook’ was not declared in this scope
  483 |     g_pSwipeBeginHook = HyprlandAPI::registerCallbackDynamic(pHandle, "swipeBegin", onSwipeBegin);
      |     ^~~~~~~~~~~~~~~~~
src/main.cpp:484:5: error: ‘g_pSwipeUpdateHook’ was not declared in this scope
  484 |     g_pSwipeUpdateHook = HyprlandAPI::registerCallbackDynamic(pHandle, "swipeUpdate", onSwipeUpdate);
      |     ^~~~~~~~~~~~~~~~~~
src/main.cpp:485:5: error: ‘g_pSwipeEndHook’ was not declared in this scope
  485 |     g_pSwipeEndHook = HyprlandAPI::registerCallbackDynamic(pHandle, "swipeEnd", onSwipeEnd);
      |     ^~~~~~~~~~~~~~~
src/main.cpp:487:5: error: ‘g_pKeyPressHook’ was not declared in this scope
  487 |     g_pKeyPressHook = HyprlandAPI::registerCallbackDynamic(pHandle, "keyPress", onKeyPress);
      |     ^~~~~~~~~~~~~~~
src/main.cpp:489:5: error: ‘g_pSwitchWorkspaceHook’ was not declared in this scope
  489 |     g_pSwitchWorkspaceHook = HyprlandAPI::registerCallbackDynamic(pHandle, "workspace", onWorkspaceChange);
      |     ^~~~~~~~~~~~~~~~~~~~~~
src/main.cpp:500:5: error: ‘g_pAddMonitorHook’ was not declared in this scope
  500 |     g_pAddMonitorHook = HyprlandAPI::registerCallbackDynamic(pHandle, "monitorAdded", [&] (void* thisptr, SCallbackInfo& info, std::any data) { registerMonitors(); });
      |     ^~~~~~~~~~~~~~~~~
make: *** [Makefile:7: all] Error 1

✖ Plugin Hyprspace failed to build.                                            
  This likely means that the plugin is either outdated, not yet available for your version, or broken.
  If you are on -git, update first.
  Try re-running with -v to see more verbose output.

✔ all plugins built                                                            
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━  4 / 5  Installing reposito✔ installed repository                                                         
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━  4 / 5  Installing reposito✔ you can now enable the plugin(s) with hyprpm enable                          
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╍━━━━━━━━━  4 / 5  Installing reposito ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  5 / 5  Done! 
KZDKM commented 1 month ago

I was testing on git versions newer than 0.40 and did not realize, the newest commit should fix build.

AhJi26 commented 1 month ago

Thanks a lot! Works really well!