X4: Foundations gets stuck on launch

Hi! I am working on the Linux-native game X4: Foundations and would like to test the GOG build for regressions. I am able to run the Steam version fine (via Steam Runtime 1.0), but running the GOG version installed via Heroic just hands after pressing play (no game window is opened). I tried both the Flatpak and native (NixOS) versions of Heroic.

Editing the game's
testandlaunch
script to set
LD_DEBUG=libs
, I see a bunch of printing about missing X11 functions, like so (truncated because there are hundreds of these):
207491:    /lib/libX11.so.6: error: symbol lookup error: undefined symbol: XMissingExtension (fatal)

    207491:    /lib/libX11.so.6: error: symbol lookup error: undefined symbol: _XMissingExtension (fatal)

    207491:    /lib/libX11.so.6: error: symbol lookup error: undefined symbol: XextAddDisplay (fatal)

    207491:    /lib/libX11.so.6: error: symbol lookup error: undefined symbol: _XextAddDisplay (fatal)

    207491:    /lib/libX11.so.6: error: symbol lookup error: undefined symbol: XextCreateExtension (fatal)

    207491:    /lib/libX11.so.6: error: symbol lookup error: undefined symbol: _XextCreateExtension (fatal)

I also see near the end two SDL2 functions missing:
    207491:    lib/libSDL2-2.0.so.0: error: symbol lookup error: undefined symbol: udev_device_get_action (fatal)

    207491:    lib/libSDL2-2.0.so.0: error: symbol lookup error: undefined symbol: _udev_device_get_action (fatal)

I have attached the full log file. What am I doing wrong?
Was this page helpful?