Dependency issues when trying to run the GOG version of The Witcher 2 [solved]

Hey everyone.

I bought The Witcher 2 on sale at GOG a few days ago to play in Linux, however once I run their installer and go to run the game (start.sh) I get a boatload of dependency errors. Below is a list of the issues I'm running into. I found a few things on google, but they are mostly pertaining to Ubuntu and none of it was very clear. Any suggestions? I'm running Antergos (arch) 64 bit with the nvidia proprietary graphics drivers.

stephen@Stephen-Desktop-Antergos:~/GOG Games/The Witcher 2 Assassins Of Kings Enhanced Edition $ bash start.sh
Running The Witcher 2: Assassins Of Kings - Enhanced Edition
./desktop-launcher: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
./desktop-launcher failed to start due to the following dependancy problems:
	linux-gate.so.1 (0xf7743000)
	libgtk-x11-2.0.so.0 => not found
	libgdk-x11-2.0.so.0 => not found
	libcairo.so.2 => not found
	libglib-2.0.so.0 => /usr/lib32/libglib-2.0.so.0 (0xf75e3000)
	libgobject-2.0.so.0 => /usr/lib32/libgobject-2.0.so.0 (0xf7586000)
	libgdk_pixbuf-2.0.so.0 => not found
	libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf7410000)
	libm.so.6 => /usr/lib32/libm.so.6 (0xf73c3000)
	libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf73a8000)
	libc.so.6 => /usr/lib32/libc.so.6 (0xf71ee000)
	libpthread.so.0 => /usr/lib32/libpthread.so.0 (0xf71d0000)
	libpcre.so.1 => /usr/lib32/libpcre.so.1 (0xf715b000)
	libffi.so.6 => /usr/lib32/libffi.so.6 (0xf7152000)
	/lib/ld-linux.so.2 (0xf7744000)

ok, well, that was fast. I managed to fix it... I think.

Followed some instructions highlighted in the following Reddit post.

Specifically:

$ yaourt -S lib32-sdl2 lib32-libsdl2_image lib32-libidn lib32-rtmpdump

$ sudo ln -s /usr/lib32/librtmp.so /usr/lib32/librtmp.so.0

$ cd ~/GOG\ Games/The\ Witcher\ 2\ Assassins\ Of\ Kings\ Enhanced\ Edition/

$ LD_PRELOAD="$HOME/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libcurl.so.4" ./witcher2

I ran the last line after installing the libraries from the first line and everything seems to be happy.
I'll leave this here for other members and everyone else on the internet.

1 Like

Yeah just need to keep in mind steam and gog doesn't have any automatic dependency resolution. Just need to look up the libraries and install them from the package manager keeping on mind if its a 32 bit programming youll need the lib32 version of the library.