Open cgevans opened 8 months ago
I fixed the problem with just adding the header file
however after these packages compiled :
[ 4%] Building CXX object CMakeFiles/xdg-desktop-portal-hyprland.dir/src/core/PortalManager.cpp.o
[ 8%] Building CXX object CMakeFiles/xdg-desktop-portal-hyprland.dir/src/helpers/Log.cpp.o
[ 13%] Building CXX object CMakeFiles/xdg-desktop-portal-hyprland.dir/src/helpers/MiscFunctions.cpp.o
[ 17%] Building CXX object CMakeFiles/xdg-desktop-portal-hyprland.dir/src/helpers/Timer.cpp.o
[ 21%] Building CXX object CMakeFiles/xdg-desktop-portal-hyprland.dir/src/main.cpp.o
[ 26%] Building CXX object CMakeFiles/xdg-desktop-portal-hyprland.dir/src/portals/GlobalShortcuts.cpp.o
I have this :
xdg-desktop-portal-hyprland/src/portals/GlobalShortcuts.cpp:58:10: error: no match for ‘operator>>’ (operand types are ‘sdbus::MethodCall’ and ‘std::unordered_map<std::__cxx11::basic_string<char>, sdbus::Variant>’)
58 | call >> opts;
| ~~~~ ^~ ~~~~
| | |
| | std::unordered_map<std::__cxx11::basic_string<char>, sdbus::Variant>
| sdbus::MethodCall
Thanks
Yes, I should have clarified: the error message I pasted there is just the first error that shows up, a symptom of needing sdbus-cpp 1.4.0, not 1.2.0. Fixing that symptom just results in another error. The build process needs to be changed to depend on 1.4.0.
It appears that, if sdbus-cpp is not installed, then 1.4.0 will be built. If 1.4.0 is system-installed, then the build will also work. However, if an earlier version (eg, 1.2.0 is the latest version in Fedora 39) is installed, the build will fail (see below). The version of sdbus-cpp should probably be checked, if it is found.