Jump to content
The Dark Mod Forums
Sign in to follow this  
Ladro

Cannot run TDM on Kubuntu 18.04 [Solved]

Recommended Posts

Hello guys :-D

 

I've installed Kubuntu the latest 18.04, and KDE rocks (far far far better then Gnome, IMHO, Plasma evolved incredibly). The problem is: I cannot run my lovely TDM :-(

 

If I launch it from shell ("./thedarkmod.x86") as I was doing in the past versions of Ubuntu, I receive this message:

error while loading shared libraries: libXext.so.6: cannot open shared object file: No such file or directory

I tried with "apt search" to find out about this library and:

libxext-dev/bionic 2:1.3.3-1 amd64
  X11 miscellaneous extensions library (development headers)

libxext-doc/bionic,bionic 2:1.3.3-1 all
  X11 miscellaneous extensions library (documentation)

libxext6/bionic,now 2:1.3.3-1 amd64 [installato]
  X11 miscellaneous extension library

libxext6-dbg/bionic 2:1.3.3-1 amd64
  X11 miscellaneous extensions library (debug package)

libxmu-dev/bionic 2:1.1.2-2 amd64
  X11 miscellaneous utility library (development headers)

libxmu6/bionic,now 2:1.1.2-2 amd64 [installato]
  X11 miscellaneous utility library

libxmu6-dbg/bionic 2:1.1.2-2 amd64
  X11 miscellaneous utility library (debug package)

libxmuu-dev/bionic 2:1.1.2-2 amd64
  X11 miscellaneous micro-utility library (development headers)
                                                                                                                                                                                         
libxmuu1/bionic,now 2:1.1.2-2 amd64 [installato]                                                                                                                                         
  X11 miscellaneous micro-utility library                                                                                                                                                
                                                                                                                                                                                         
libxmuu1-dbg/bionic 2:1.1.2-2 amd64                                                                                                                                                      
  X11 miscellaneous micro-utility library (debug package)

So the "libxext6" is installed.

 

Any suggestions to solve this?

Edited by Ladro

Share this post


Link to post
Share on other sites

OK. The reason it's not working is because DarkMod is still a 32-bit application. You have only got the 64-bit version of those libraries installed.

 

Try this:

sudo apt-get install libxext6:i386

 

...and similar for any other libraries that aren't installed by default.

Share this post


Link to post
Share on other sites

Ok guys, thanks for replies :-D

 

As suggested, I installed also libxxf86vm1 (32 bit version), that was requested.

 

So the 32 bit libraries are there... But now I cannot run because:

[...]
execing Darkmod.cfg
Couldn't exec autoexec.cfg - file does not exist.
I18N: SetLanguage: 'english'.
I18N: Found no character remapping for english.
I18N: 1229 strings read from strings/english.lang
I18N: 'strings/fm/english.lang' not found.
----- Initializing Sound System ------
sound system initialized.
--------------------------------------
----- R_InitOpenGL -----
Setup X display connection
dlopen(libGL.so.1)
dlopen(libGL.so.1)
idRenderSystem::Shutdown()
signal caught: Segmentation fault
si_code 1
Was in fatal error shutdown: Unable to initialize OpenGL
Trying to exit gracefully..
About to exit with code 0

So now the problem is the opengl drivers of my card :-(

 

(with the previous Ubuntu I was running TDM without any problem with the same HW)

 

I'll try installing some other drivers (I use an AMD CPU/APU 7700k)

Edited by Ladro

Share this post


Link to post
Share on other sites

Hmm. For what it's worth, I am also running on Kubuntu 18.04, though with a 4.16 custom kernel and an RX480 for graphics.

 

You might try:

grep EE /var/log/Xorg.0.log

..and see if that shows any errors trying to start up the video acceleration.

 

Also try running glxinfo, and see if that says anything.

 

If it does return pages of stuff rather than an immediate error, try this to narrow it down:

glxinfo  | grep -i renderer

Share this post


Link to post
Share on other sites
glxinfo  | grep -i renderer

 

glxinfo return this:

GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
Extended renderer info (GLX_MESA_query_renderer):
OpenGL renderer string: AMD KAVERI (DRM 2.50.0 / 4.15.0-19-generic, LLVM 6.0.0)

So, if I understand this message, the OpenGL renderer it's up and running ("DRM 2.50.0 / 4.15.0-19-generic, LLVM 6.0.0").

 

But the bad news it's the Xorg.log when I read:

[ 45792.481] (EE) RADEON(0): failed to set mode: Permission denied
[ 85341.984] (EE) RADEON(0): failed to set mode: Permission denied

Share this post


Link to post
Share on other sites

Not sure about the modeset error, but yes, it looks like OpenGL is using the accelerated drivers, at least in 64-bit mode. You can try running glxgears as a simple test.

But as Freyk says, I'd make sure the 32-bit OpenGL stack is also present.

 

2.06 beta provides a native 64-bit binary so that version should, fingers crossed, work pretty much out-of-the-box.

 

EDIT: That said, I'm not 100% sure that fglrx is still the way things are done. I think that was replaced with amdgpu a few years back.

On my system, I have libgl1-mesa-dri and libgl1-mesa-glx installed.

 

It might be worth double-checking to see what packages the 64-bit version is using, e.g.

sudo apt list --installed | grep -i gl1

On my system that returns the following:

 

ibegl1/bionic,now 1.0.0-2ubuntu2 amd64 [installed]
libegl1-mesa/bionic,now 18.0.0~rc5-1ubuntu1 amd64 [installed]
libegl1-mesa-dev/bionic,now 18.0.0~rc5-1ubuntu1 amd64 [installed]
libfltk-gl1.3/bionic,now 1.3.4-6 amd64 [installed,automatic]
libgl1/bionic,now 1.0.0-2ubuntu2 amd64 [installed]
libgl1-mesa-dri/bionic,now 18.0.0~rc5-1ubuntu1 amd64 [installed]
libgl1-mesa-glx/bionic,now 18.0.0~rc5-1ubuntu1 amd64 [installed]
libgstreamer-gl1.0-0/bionic,now 1.14.0-2ubuntu1 amd64 [installed,automatic]
libwayland-egl1-mesa/bionic,now 18.0.0~rc5-1ubuntu1 amd64 [installed,automatic]

 

...so whatever it returns for you, it might be worth trying to install the i386 version of those packages. You may potentially need to restart the window system for the changes to take effect, I'm not sure.

 

Edited by tapewolf

Share this post


Link to post
Share on other sites

Installing 32 bit packages to run tdm.x86 on a 64 bit linux os,

is the known solution that every time works for the video part. (see other topics)

 

But we need to know which packages are exactly needed (for system, video and sound).

During the years, i gathered them in the tdm-wiki article.

But i'm not a expert on this subject.

 

Any help is appreciated :)

(for starters, please check the wiki on several Linux issues. Pm your advice, so i or others can add them)

Edited by freyk

Share this post


Link to post
Share on other sites

In the end I solved the issue in this way:

 

I installed too this library:

 

=> libglu1:i386

 

After the command to install this library with:

apt install libglu1:i386

The system automatically installed all these libraries (:i386 version, I'm with a 64 bit OS version):

libdrm-amdgpu1:i386 libdrm-intel1:i386 libdrm-nouveau2:i386 libdrm-radeon1:i386 libdrm2:i386 libedit2:i386 libelf1:i386 libexpat1:i386 libffi6:i386 libgl1:i386 libgl1-mesa-dri:i386
  libgl1-mesa-glx:i386 libglapi-mesa:i386 libglvnd0:i386 libglx-mesa0:i386 libglx0:i386 libllvm6.0:i386 libpciaccess0:i386 libsensors4:i386 libstdc++6:i386 libtinfo5:i386
  libx11-xcb1:i386 libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-glx0:i386 libxcb-present0:i386 libxcb-sync1:i386 libxdamage1:i386 libxfixes3:i386 libxshmfence1:i386 zlib1g:i386

So now TDM it's running :-D

 

[i modified the subject to -solved-]

 

I don't know if this can/have to be added to any wiki, anyway this was my way to have running TDM on a fresh install of a Kubuntu 18.04 64 bit (otherwise TDM was not running).

 

Thanks to all for the kind assistance! :-)

 

I love this game and I love this community :D

Edited by Ladro

Share this post


Link to post
Share on other sites

Addendum: it's necessary to install also this library:

 

=> pulseaudio:i386

 

(sudo apt install ...)

 

Otherwise: no audio :-(

 

Now it works 100% B)

Share this post


Link to post
Share on other sites

I want to update this thread with a super good news: with the 2.06 release of TDM, there is no more need to mess with any 386/32bit libs for compatibility/legagy!

 

You simply need to run the 64bit version (*.x64 file extection).

 

THANKS!

Share this post


Link to post
Share on other sites

I want to update this thread with a super good news: with the 2.06 release of TDM, there is no more need to mess with any 386/32bit libs for compatibility/legagy!

You simply need to run the 64bit version (*.x64 file extection).

Well... almost :unsure:

We forgot to create 64-bit tdm_update.linux, so Linux gamers still have to install 32-bit runtime to install/update TDM (issue 4807).

Share this post


Link to post
Share on other sites

Well... almost :unsure:

We forgot to create 64-bit tdm_update.linux, so Linux gamers still have to install 32-bit runtime to install/update TDM (issue 4807).

 

Right, it's a problem with the installation/update.

 

But to actually run the game, it's ok!

(I tested it, and I do not have any 32bit lib for audio and video installed)

 

:laugh:

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...