Open Algorithm0 opened 5 months ago
@Algorithm0
I've often had linker errors when re-building gamescope if I'm not building from scratch
Try doing: (I'm adding an optional --buildtype=debugoptimized
because otherwise compiler optimizations are off by default)
meson setup build --reconfigure --wipe --buildtype=debugoptimized
git submodule update
ninja -C build
@Algorithm0
I've often had linker errors when re-building gamescope if I'm not building from scratch Try doing: (I'm adding an optional
--buildtype=debugoptimized
because otherwise compiler optimizations are off by default)meson setup build --reconfigure --wipe --buildtype=debugoptimized git submodule update ninja -C build
I tried what you said, but unfortunately it didn't help. I see the same error with destructor not found.
Yeah! I found the problem. My repository was missing the libeis-devel
package. It’s strange that the meson didn’t tell me this during configuration.
I found two interesting lines in the src/meson.build
:
...
eis_dep = dependency('libeis-1.0', required : get_option('input_emulation'))
...
gamescope_cpp_args += '-DHAVE_LIBEIS=@0@'.format(eis_dep.found().to_int())
...
At the same time, the entire file src/InputEmulation.cpp
is surrounded by #if HAVE_LIBEIS
. And this file contains the definition of the destructor, and all the methods for the GamescopeInputServer
class.
Correction suggestion:
Fix src/meson.build
so that a configuration error is thrown if there is no dependency "libeis"
OS: Fedora 40 Workstation Compiler: gcc (GCC) 14.0.1 20240411 (Red Hat 14.0.1-0) Gamescope versions: 3.14.5 (6a73edd) Build commands (after fix):
Errors: