[Solved] libopengl on Mint, Wine bad EXE format

Anything related to gaming on Linux Mint including game discussion or questions concerning Steam or Wine.
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Dafta

[Solved] libopengl on Mint, Wine bad EXE format

Post by Dafta »

Hello guys.

I've been trying to install some exe's with Wine, and it reported a bad EXE format. A couple of google searches and I was told that I was missing a 32bit OpenGl version. Trying to install it, I've been looking into the specifics of which packages I'm actually missing, and I've stumbled across this:

Code: Select all

sudo apt-get install --reinstall libgl1-mesa-dri:i386
Regardless of whether I use the command like that or omit the '--reinstall' part, I get this:

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libegl1-mesa libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgles2-mesa
  libllvm3.4 xserver-xorg-core xserver-xorg-input-evdev
Suggested packages:
  libglide3 xfonts-100dpi xfonts-75dpi
The following packages will be REMOVED:
  caribou cinnamon gir1.2-clutter-1.0 gir1.2-clutter-gst-2.0 gir1.2-cogl-1.0
  gir1.2-coglpango-1.0 gir1.2-gtkclutter-1.0 gir1.2-muffin-3.0
  gir1.2-totem-1.0 gstreamer1.0-clutter ia32-libs libclutter-1.0-0
  libclutter-gst-2.0-0 libclutter-gtk-1.0-0 libcogl-pango15 libcogl15
  libegl1-mesa-lts-vivid libgbm1-lts-vivid libgl1-mesa-dri-lts-vivid
  libgl1-mesa-dri-lts-vivid:i386 libgl1-mesa-glx-lts-vivid
  libgl1-mesa-glx-lts-vivid:i386 libglapi-mesa-lts-vivid
  libglapi-mesa-lts-vivid:i386 libgles1-mesa-lts-vivid libgles2-mesa-lts-vivid
  libmuffin0 libtotem0 libwayland-egl1-mesa-lts-vivid libxatracker2-lts-vivid
  mint-meta-cinnamon nemo-preview steam:i386 totem totem-mozilla totem-plugins
  totem-plugins-extra virtualbox-guest-x11 xorg xserver-xorg-core-lts-vivid
  xserver-xorg-input-all-lts-vivid xserver-xorg-input-evdev-lts-vivid
  xserver-xorg-input-mouse-lts-vivid xserver-xorg-input-synaptics-lts-vivid
  xserver-xorg-input-vmmouse-lts-vivid xserver-xorg-input-wacom-lts-vivid
  xserver-xorg-lts-vivid xserver-xorg-video-all-lts-vivid
  xserver-xorg-video-ati-lts-vivid xserver-xorg-video-cirrus-lts-vivid
  xserver-xorg-video-fbdev-lts-vivid xserver-xorg-video-intel-lts-vivid
  xserver-xorg-video-mach64-lts-vivid xserver-xorg-video-mga-lts-vivid
  xserver-xorg-video-neomagic-lts-vivid xserver-xorg-video-nouveau-lts-vivid
  xserver-xorg-video-openchrome-lts-vivid xserver-xorg-video-r128-lts-vivid
  xserver-xorg-video-radeon-lts-vivid xserver-xorg-video-savage-lts-vivid
  xserver-xorg-video-siliconmotion-lts-vivid
  xserver-xorg-video-sisusb-lts-vivid xserver-xorg-video-tdfx-lts-vivid
  xserver-xorg-video-trident-lts-vivid xserver-xorg-video-vesa-lts-vivid
  xserver-xorg-video-vmware-lts-vivid
The following NEW packages will be installed:
  libegl1-mesa libgl1-mesa-dri libgl1-mesa-glx libgl1-mesa-glx:i386
  libglapi-mesa:i386 libglapi-mesa libgles2-mesa libllvm3.4 xserver-xorg-core
  xserver-xorg-input-evdev
0 upgraded, 10 newly installed, 66 to remove and 9 not upgraded.
Need to get 13,0 MB of archives.
After this operation, 596 kB disk space will be freed.
Do you want to continue? [Y/n]
Now I'm not 100% sure, but I don't believe I should remove those 66 packages. Some of them look vital.

What should I do? Is there anything else that might cause the bad EXE format error? I'm using the proprietary fglrx drivers.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
uberdorf

Re: libopengl on Mint, Wine bad EXE format

Post by uberdorf »

If you have a Windows disc, even XP, you can install it in a Virtual Machine like Virtualbox and it will work a whole lot better than wine. As for the wine issue, I'm not really sure I can help since I haven't had a lot of personal success with it. You could try asking at the WineHQ forum if nobody else responds here.
Booman

Re: libopengl on Mint, Wine bad EXE format

Post by Booman »

Sounds more like a driver issue.
I don't recommend running Windows in a Virtual box if you are running games.
Wine really can handle most DirectX 9 & OpenGL games just fine.
Most games that don't run is because of missing libraries, DRM or video card drivers.

Exactly what exe's are you trying to install?

I see Steam in that error and Radeon
I've read using open source drivers can be better for Radeon cards. Honestly I've read a lot of gamers struggling with AMD cards/drivers. I've had a GeForce 550 Ti for several years now and it runs most games really well. Nvidia drivers are GREAT.

If you are just trying to install Steam and run a game, make sure you have installed ia-32libs or multi-arch in Mint. Then test the game with open source drivers first. If it won't run, depending on the card you have, try AMD drivers.
Dafta

Re: libopengl on Mint, Wine bad EXE format

Post by Dafta »

I'd much rather use Wine than VirtualBox, the performance for games is much better since you don't have to run a whole VM.
Booman wrote:Sounds more like a driver issue.
I don't recommend running Windows in a Virtual box if you are running games.
Wine really can handle most DirectX 9 & OpenGL games just fine.
Most games that don't run is because of missing libraries, DRM or video card drivers.

Exactly what exe's are you trying to install?

I see Steam in that error and Radeon
I've read using open source drivers can be better for Radeon cards. Honestly I've read a lot of gamers struggling with AMD cards/drivers. I've had a GeForce 550 Ti for several years now and it runs most games really well. Nvidia drivers are GREAT.

If you are just trying to install Steam and run a game, make sure you have installed ia-32libs or multi-arch in Mint. Then test the game with open source drivers first. If it won't run, depending on the card you have, try AMD drivers.
I was trying to install South Park: The Stick of Truth (the non-steam version), and another game that I can't remember anymore. Both gave me the error, but most other games don't. I've already got ia32-libs installed, but I can't locate the multi-arch package:

Code: Select all

$ sudo apt-get install multi-arch

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package multi-arch
Searching multi-arch with aptitude gives no results, but searching multiarch gives the following:

Code: Select all

$ aptitude search multiarch

p   binutils-multiarch              - Binary utilities that support multi-arch t
p   binutils-multiarch:i386         - Binary utilities that support multi-arch t
p   binutils-multiarch-dev          - GNU binary utilities that support multi-ar
p   binutils-multiarch-dev:i386     - GNU binary utilities that support multi-ar
p   gdb-multiarch                   - GNU Debugger (with support for multiple ar
p   gdb-multiarch:i386              - GNU Debugger (with support for multiple ar
v   ia32-libs-multiarch             -                                           
i   multiarch-support               - Transitional package to ensure multiarch c
p   multiarch-support:i386          - Transitional package to ensure multiarch c
v   pango1.0-multiarch-modver-1.8.0 -                                           
v   pango1.0-multiarch-modver-1.8.0 -     
Apparently I've already got mutliarch-support installed. I've switched back to the open source driver, and I still get the same "bad EXE format" error.
Booman

Re: libopengl on Mint, Wine bad EXE format

Post by Booman »

Can you send me the exact errors?
Have you tried PlayOnLinux?
You can switch Wine versions on-the-fly in PlayOnLinux.
There is a chance the version of Wine you are using is extremely old or broken.
Dafta

Re: libopengl on Mint, Wine bad EXE format

Post by Dafta »

Actually, I'm already using Play on Linux.

And the problem indeed was an old version of wine. I've changed it to a newer version, and it worked.

Thanks for the help.
Booman

Re: [Solved] libopengl on Mint, Wine bad EXE format

Post by Booman »

Great, glad you got it working
Locked

Return to “Gaming”