Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

How to run a DirectX 9 demanding game on MX Linux via Wine?

Post Reply
Message
Author
User avatar
postcd
Forum Novice
Forum  Novice
Posts: 51
Joined: Mon Oct 29, 2018 2:02 pm

How to run a DirectX 9 demanding game on MX Linux via Wine?

#1 Post by postcd » Sat Nov 03, 2018 9:24 am

Hello,

i wanted to try to run couple of the Windows apps on Linux MX 17 thanks to Wine.

1. i installed wine (via package manager these packages: wine-staging, winehq-staging, winetricks)
2. i installed DirectX (required by app):

command: winetricks directx9
it appeared like it installed DirectX (installing and running dxdiag.exe shows version 9.0c, but says "Several files (d3d8thk.dll, dpvsetup.exe, dpvvox.dll, etc.) are missing")). After launching Winetricks i see numerous d3d libraries are enabled: screenshot

And in Terminal i went to directory where was .exe and i launched it: wine appname.exe
it returned pop-up window entitled "Could not create directory" with error "DirectX 9 or later is required". That is strange since i installed it.

console was returning more details about that:
fixme:winediag:start_process Wine Staging 2.21 is a testing version containing experimental patches.
fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
fixme:d3d:wined3d_dxtn_init Wine cannot find the txc_dxtn library, DXTn software support unavailable.
err:wgl:init_opengl Failed to load libGL: libGL.so.1: cannot open shared object file: No such file or directory
err:wgl:init_opengl OpenGL support is disabled.
launching other app, says:
fixme:d3d:wined3d_dxtn_init Wine cannot find the txc_dxtn library, DXTn software support unavailable.
i read there have to be both 32 and 64bit libraries though unsure how to properly add 32bit one, can not find it in apt.

playonlinux says alike: "PlayOnLinux is unable to find 32bits OpenGL libraries."
"error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory"

$ locate libGL.so.1
/usr/lib/virtualbox/additions/libGL.so.1
/usr/lib/x86_64-linux-gnu/libGL.so.1
/usr/lib/x86_64-linux-gnu/libGL.so.1.2.0
$ ldconfig -p|grep -i libGL.so
libGL.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libGL.so.1
libGL.so.1 (libc6,x86-64) => /usr/lib/virtualbox/additions/libGL.so.1
libGL.so (libc6,x86-64) => /usr/lib/virtualbox/additions/libGL.so
I spent like 1 hour to find that i need 32bit library, and found the command: apt-get install libgl1-mesa-glx:i386
It installed it:
libxcb-present0:i386 (1.12-3, automatic)
libglapi-mesa:i386 (13.0.6-1+b2, automatic)
libxshmfence1:i386 (1.2-1+b2, automatic)
libxxf86vm1:i386 (1:1.1.4-1+b2, automatic)
libxdamage1:i386 (1:1.1.4-2+b3, automatic)
libgl1-mesa-glx:i386 (13.0.6-1+b2)
libxcb-glx0:i386 (1.12-3, automatic)
libxcb-dri2-0:i386 (1.12-3, automatic)
libxcb-dri3-0:i386 (1.12-3, automatic)
libxcb-sync1:i386 (1.12-3, automatic)
then wine no longer complains about missing libGL.so.1 :happy: , but instead says:
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request: GLXBadContext
Major opcode of failed request: 155 (GLX)
Minor opcode of failed request: 6 (X_GLXIsDirect)
Serial number of failed request: 37
Current serial number in output stream: 36
(i have Radeon RX 560 2G) 9_9
I was googling that driver radeon error, and some people talking about preloading libstdc, though i do not understand how or why or if needed.

Please what else i need to do so there is no libGL errors?
Last edited by postcd on Sat Nov 03, 2018 1:46 pm, edited 11 times in total.
OS: 4.15.4-1~mx17+1 (2018-02-23) x86_64 ; XFCE 4 ; MB: G31M ES2L rev. 2.0 ; GPU: AMD Radeon RX 560 ; full HW specs. as of Oct 30/2018

turtlebay777
Forum Regular
Forum Regular
Posts: 245
Joined: Sat Apr 14, 2018 2:40 pm

Re: How to run a DirectX 9 demanding game on MX Linux via Wine?

#2 Post by turtlebay777 » Sat Nov 03, 2018 9:53 am

I rather think you need to tell Wine which directory you .exe file is situated in.

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 17011
Joined: Fri Dec 15, 2006 8:07 pm

Re: How to run a DirectX 9 demanding game on MX Linux via Wine?

#3 Post by Stevo » Sat Nov 03, 2018 3:28 pm

You also need to install libgl1-mesa-dri:i386.

The Steam page in the Debian wiki also has some troubleshooting tips, since it's also running 32-bit games on a 64-bit platform.

To get rid of the dxtn error, install libtxc-dxtn-s2tc:i386, though the patents recently expired on the superior s3tc version, so it's legal to install from deb-multimedia now.

User avatar
postcd
Forum Novice
Forum  Novice
Posts: 51
Joined: Mon Oct 29, 2018 2:02 pm

Re: How to run a DirectX 9 demanding game on MX Linux via Wine?

#4 Post by postcd » Sun Nov 04, 2018 1:56 pm

Stevo wrote:
Sat Nov 03, 2018 3:28 pm
You also need to install libgl1-mesa-dri:i386.

The Steam page in the Debian wiki also has some troubleshooting tips, since it's also running 32-bit games on a 64-bit platform.

To get rid of the dxtn error, install libtxc-dxtn-s2tc:i386, though the patents recently expired on the superior s3tc version, so it's legal to install from deb-multimedia now.
I installed both packages and its dependencies.
This was packages installed:
libdrm-amdgpu1:i386 libdrm-intel1:i386 libdrm-nouveau2:i386 libdrm-radeon1:i386 libedit2:i386 libelf1:i386 libgl1-mesa-dri:i386 libllvm3.9:i386 libpciaccess0:i386 libsensors4:i386 libtxc-dxtn-s2tc:i386
It seems like no more DirectX errors. Thank you very much for help. Maybe i should ask Wine if they can install these two packages when directx is requested to be installed by Winetricks. This seems quite complicated for Linux n00b like me to discover that these packages have to be installed. I would possibly not discover it without you.

BTW: regarding deb-multimedia repository, i was asked not to enable it here: viewtopic.php?p=464860#p464860 :lipsrsealed:
OS: 4.15.4-1~mx17+1 (2018-02-23) x86_64 ; XFCE 4 ; MB: G31M ES2L rev. 2.0 ; GPU: AMD Radeon RX 560 ; full HW specs. as of Oct 30/2018

User avatar
Richard
Posts: 2243
Joined: Fri Dec 12, 2008 10:31 am

Re: How to run a DirectX 9 demanding game on MX Linux via Wine?

#5 Post by Richard » Sun Nov 04, 2018 3:08 pm

BTW: regarding deb-multimedia repository, i was asked not to enable it here: viewtopic.php?p=464860#p464860 :lipsrsealed:
That's just a warning not to leave it enabled --if needed to use it, do so, and then disable it.
Leaving it enabled may summon dragons that might cause havoc.
MX18b1: Lenovo T430: Intel Ivy Bridge i5-3320M, 8GB RAM, 4.9.0-8-amd64, 119 GB SSD
MX18b1: Eee&AA1 NBs: Dual Core Atom N270, 1GB RAM, 4.9.0-8-686, 150 GB HDD
DoubleCmd/Thunar, LibO613, Dropbox, Vivaldi/Firefox, CherryTree, Vbox. LinuxCounter #208633

User avatar
Gordon Cooper
Forum Guide
Forum Guide
Posts: 2146
Joined: Mon Nov 21, 2011 5:50 pm

Re: How to run a DirectX 9 demanding game on MX Linux via Wine?

#6 Post by Gordon Cooper » Sun Nov 04, 2018 4:02 pm

Richard wrote:
Sun Nov 04, 2018 3:08 pm
BTW: regarding deb-multimedia repository, i was asked not to enable it here: viewtopic.php?p=464860#p464860 :lipsrsealed:
That's just a warning not to leave it enabled --if needed to use it, do so, and then disable it.
Leaving it enabled may summon dragons that might cause havoc.
Same thing for the MX Test Repo, do not leave it enabled. I did once and havoc was caused!
Homebrew64 bit Intel duo core 2 GB RAM, 120 GB Kingston SSD, Seagate1TB.
Primary OS : MX-17.1 64bit. Also MX17, Kubuntu14.04 & Puppy 6.3.
Dell9010, MX-17.1, Win7

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 17011
Joined: Fri Dec 15, 2006 8:07 pm

Re: How to run a DirectX 9 demanding game on MX Linux via Wine?

#7 Post by Stevo » Sun Nov 04, 2018 4:09 pm

Some packages are still dangerous and mess up apt, such as the deb-multimedia version of VLC, but that texture library is standalone and safe to install. Let me see if Debian has added it, since maybe it's patent-safe now.

I wonder if our Steam installer installs all those packages automatically on 64-bit...

Post Reply

Return to “Chat”