If you install latest hyprutils-git, these are the lib files
find /usr/lib -name "*hyprutils*" 2>/dev/null
/usr/lib/libhyprutils.so
/usr/lib/libhyprutils.so.10
/usr/lib/pkgconfig/hyprutils.pc
/usr/lib/libhyprutils.so.0.11.0
When you compile, it tried to link to libhyprutils.so.9 causing a warning and also make other component hypr* ecosystem error like for my case it's this
Error: hyprctl returned a non-zero exit code.
command:
hyprctl -j getoption decoration:screen_shader
stdout:
<empty>
stderr:
hyprctl: error while loading shared libraries: libhyprutils.so.9: cannot open shared object file: No such file or directory
Step to reproduce
- Clone the repo
- Run
cmake -DCMAKE_BUILD_TYPE=Release -B build
Output
-- The C compiler identification is GNU 15.2.1
-- The CXX compiler identification is GNU 15.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "2.5.1")
-- Checking for modules 'hyprtoolkit;pixman-1;libdrm;hyprutils>=0.10.2;hyprwire;icu-uc;hyprlang;libqalculate'
-- Found hyprtoolkit, version 0.4.1
-- Found pixman-1, version 0.46.4
-- Found libdrm, version 2.4.129
-- Found hyprutils, version 0.11.0
-- Found hyprwire, version 0.2.1
-- Found icu-uc, version 78.1
-- Found hyprlang, version 0.6.7
-- Found libqalculate, version 5.8.2
-- Configuring hyprlauncher in Release
-- Configuring done (0.5s)
-- Generating done (0.0s)
-- Build files have been written to: ~/hyprlauncher/build
- Run
cmake --build build --config Release
Output
[ 4%] Building CXX object CMakeFiles/hyprlauncher.dir/protocols/hyprlauncher_core-client.cpp.o
[ 9%] Building CXX object CMakeFiles/hyprlauncher.dir/protocols/hyprlauncher_core-server.cpp.o
[ 14%] Building CXX object CMakeFiles/hyprlauncher.dir/src/config/ConfigManager.cpp.o
[ 19%] Building CXX object CMakeFiles/hyprlauncher.dir/src/finders/Cache.cpp.o
[ 23%] Building CXX object CMakeFiles/hyprlauncher.dir/src/finders/Fuzzy.cpp.o
[ 28%] Building CXX object CMakeFiles/hyprlauncher.dir/src/finders/IFinder.cpp.o
[ 33%] Building CXX object CMakeFiles/hyprlauncher.dir/src/finders/IFinderResult.cpp.o
[ 38%] Building CXX object CMakeFiles/hyprlauncher.dir/src/finders/desktop/DesktopFinder.cpp.o
[ 42%] Building CXX object CMakeFiles/hyprlauncher.dir/src/finders/ipc/IPCFinder.cpp.o
[ 47%] Building CXX object CMakeFiles/hyprlauncher.dir/src/finders/math/MathFinder.cpp.o
[ 52%] Building CXX object CMakeFiles/hyprlauncher.dir/src/finders/unicode/UnicodeFinder.cpp.o
[ 57%] Building CXX object CMakeFiles/hyprlauncher.dir/src/i18n/Engine.cpp.o
[ 61%] Building CXX object CMakeFiles/hyprlauncher.dir/src/main.cpp.o
[ 66%] Building CXX object CMakeFiles/hyprlauncher.dir/src/query/QueryProcessor.cpp.o
[ 71%] Building CXX object CMakeFiles/hyprlauncher.dir/src/socket/ClientSocket.cpp.o
[ 76%] Building CXX object CMakeFiles/hyprlauncher.dir/src/socket/ServerSocket.cpp.o
[ 80%] Building CXX object CMakeFiles/hyprlauncher.dir/src/ui/ResultButton.cpp.o
[ 85%] Building CXX object CMakeFiles/hyprlauncher.dir/src/ui/UI.cpp.o
[ 90%] Linking CXX executable hyprlauncher
/usr/bin/ld: warning: libhyprutils.so.9, needed by /usr/lib/libhyprwire.so, not found (try using -rpath or -rpath-link)
[100%] Built target hyprlauncher
If you install latest hyprutils-git, these are the lib files
When you compile, it tried to link to libhyprutils.so.9 causing a warning and also make other component hypr* ecosystem error like for my case it's this
Step to reproduce
cmake -DCMAKE_BUILD_TYPE=Release -B buildOutput
cmake --build build --config ReleaseOutput