X-plane plugin incompatible with steam libcurl on linux
Posted: Sun Dec 26, 2021 6:29 am
Hi there,
I've noticed some previous threads about libcurl, and that the plugin is now compiled against libcurl 4. However, even though I have libcurl 4 installed on my system, the Air Manager plugin fails to initialize; it cannot load the libcurl.so.4 successfully. There is something about the libcurl that ships with steam that doesn't work with the Air Plugin.
I've gathered that between libcurl 4.2 and 4.4 there's a change in the CURL_OPENSSL dependency.
This does work:
However, after I make this change, X-Plane crashes every time I quit. There's nothing in Log.txt apart from "--=={This application has crashed!}==--" but I have verified this is the reason. This isn't entirely optimal! Is there a way to rebuild the plugin to avoid this issue? Perhaps against an older version of libcurl4 (i.e. 4.2?).
I'm using Ubuntu 20.04, with these packages installed:
I've noticed some previous threads about libcurl, and that the plugin is now compiled against libcurl 4. However, even though I have libcurl 4 installed on my system, the Air Manager plugin fails to initialize; it cannot load the libcurl.so.4 successfully. There is something about the libcurl that ships with steam that doesn't work with the Air Plugin.
Code: Select all
dlerror:/home/coljac/.local/share/Steam/ubuntu12_32/steam-runtime/pinned_libs_64/libcurl.so.4: version `CURL_OPENSSL_4' not found (required by /ssd/steam/steamapps/common/X-Plane 11/Resources/plugins/Air Plugin/64/lin.xpl)
This does work:
Code: Select all
cd /home/coljac/.local/share/Steam/ubuntu12_32/steam-runtime/pinned_libs_64/
# libcurl.so.4 is symlinked to /home/coljac/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/x86_64-linux-gnu/libcurl.so.4.2.0
ln -s /home/coljac/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/x86_64-linux-gnu/libcurl.so.4.2.0 oldlibcurl
rm libcurl.so.4
ln -s /usr/lib/x86_64-linux-gnu/libcurl.so.4 libcurl.so.4
I'm using Ubuntu 20.04, with these packages installed:
Code: Select all
libcurl4-openssl-dev/focal-updates,focal-security,now 7.68.0-1ubuntu2.7 amd64
libcurl4/focal-updates,focal-security,now 7.68.0-1ubuntu2.7 amd64