Thinking with Time Machine

Thinking with Time Machine

Zbyt mało ocen
Solution to game not open on Linux
Autorstwa: Mono
For Linux gamers who receive a 'libGL error', this guide will help.
2
   
Przyznaj nagrodę
Ulubione
Ulubione
Usuń z ulubionych
Step 1: Get the Error Message in Terminal
Once we installed Thinking with Time Machine(or TWTM), clicking 'Launch', the game simply won't open. For the Steam doesn't offer a debug mechanism, we must start the game manually from Command-Line:
  • Navigate to Game root directory in Terminal.
  • Start game with
    ./TWTM.sh -game TWTM
If you receive similar errors as below, then proceed.
libGL error: MESA-LOADER: failed to open radeonsi (search paths /usr/lib/i386-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri) libGL error: failed to load driver: radeonsi libGL error: MESA-LOADER: failed to open radeonsi (search paths /usr/lib/i386-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri) libGL error: failed to load driver: radeonsi libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib/i386-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri) libGL error: failed to load driver: swrast X Error of failed request: GLXBadContext Major opcode of failed request: 156 (GLX) Minor opcode of failed request: 6 (X_GLXIsDirect) Serial number of failed request: 88 Current serial number in output stream: 87
Step 2: Check Dependencies
(Contents below are based on Debian/Ubuntu distros, if you are using Arch/RHEL/SUSE etc., please choose the corresponding commands.)

Be sure you have 3 packages mesa-utils mesa-va-drivers libgl1-mesa-dri installed:
dpkg -l mesa-utils mesa-va-drivers libgl1-mesa-dri

Here is my output(truncated):

$ dpkg -l mesa-utils mesa-va-drivers libgl1-mesa-dri Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-========================-======================-================-============= ii libgl1-mesa-dri:amd64 20.0.8-0ubuntu1~18.0 amd64 ... ii libgl1-mesa-dri:i386 20.0.8-0ubuntu1~18.0 i386 ... ii mesa-utils 8.4.0-1 amd64 ... ii mesa-va-drivers:amd64 20.0.8-0ubuntu1~18.0 amd64 ...

Step 3: Solution
Causation Explained
TWTM is a 32-bit game, and it require i386 libraries to launch.
By default, the launch script will use libraries that bundled with the game, instead of which in the system, as TWTM.sh indicated:
export LD_LIBRARY_PATH="${GAMEROOT}"/bin:$LD_LIBRARY_PATH

If the 3 packages mentioned above have only amd64 versions available in your system, the bundled libstdc++ library will not play nice with them, and cause problems.

Therefore, we can have two kinds of solutions to this issue:

Solution One(RECOMMENDED): Remove integrated libstdc++
By removing libstdc++ bundled with game, it will fall back on the system default version.
Inside game root directory, run:
$ rm bin/libstdc++.so.6
This should solve the problem.

Solution Two: Install i386 dependencies
(Note that this could affect other games on your computer, so not recommended.)
sudo dpkg --add-architecture i386 sudo apt install libgl1-mesa-dri:i386 mesa-utils:i386 mesa-va-drivers:i386
Then restart X session.
Komentarzy: 23
rvidal 3 kwietnia o 20:35 
thanks, solution one worked fine
Tomasart1 7 sierpnia 2023 o 9:31 
ay proton exists
TheSquareDude 17 grudnia 2022 o 14:27 
@SIGI10(HUN) yeah who is mr. jobs
sigi 18 września 2022 o 4:46 
who the hell is steve jobs
icallacharlo.ic 27 maja 2022 o 19:47 
:D
:steamhappy:
icallacharlo.ic 27 maja 2022 o 19:46 
Hp
ML_DL 29 marca 2022 o 6:06 
Somehow it’s been stable. I don’t know how, maybe it’s just because I’m using a Dell Optiplex with decent hardware.
ML_DL 29 marca 2022 o 6:04 
I mean.. I did end up switching back to Windows after all. I still have the hard drive with Linux on it, but I got a newer PC and installed Windows on it since it can run it excellently!

Currently running Win11 on my laptop and desktop, very happy with it tbh, but I need to install WSL lol
funker23 28 marca 2022 o 17:25 
Was hoping the guide would say to install windows. I mean I guess this is better, but it would have been funny.
Mono  [autor] 6 grudnia 2021 o 3:06 
[quote]
Install portal 2

Set launch options:

"../Portal\ 2/portal2_linux -game ../Thinking\ with\ Time\ Machine/TWTM # %command%
[/quote]

Yes, this is also a good solution, using an existing game engine to run this game.