C&C Generals Reports a DirectX 8.1 Error as of Wine 7.01

Questions about Wine on Linux
Locked
RobertX
Level 2
Level 2
Posts: 49
Joined: Thu Sep 09, 2021 9:57 pm

C&C Generals Reports a DirectX 8.1 Error as of Wine 7.01

Post by RobertX »

I recently wiped my hard drive and installed Mint 21 OS onto it.

When I installed Wine 7.01 and placed Command and Conquer Generals original, the game installed by putting data files from both CDs 1 and 2 and ran the installer. No problems there.

When it is time to run Generals, the game keeps reporting a "DirectX 8.1 or higher needed" error or words to that effect.

I tried to install 8.1, 9.0c (using Winetricks), but the game did not run.

I also tried to use an options.ini file from the Internet and the error is still there.

So, on Wine 7.01, Command and Conquer Generals does not work due to a DirectX 8.1 error.

I would add that the splash screen loads, but I haven't been able to get past that.
RobertX
Level 2
Level 2
Posts: 49
Joined: Thu Sep 09, 2021 9:57 pm

Re: C&C Generals Reports a DirectX 8.1 Error as of Wine 7.01

Post by RobertX »

OK, here's the output when running Generals in the command line:

Code: Select all

0114:err:winediag:wined3d_dll_init Using the OpenGL renderer.
0114:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0074:fixme:imm:ImeSetActiveContext (0x4a87e0, 0): stub
0074:fixme:imm:ImmReleaseContext (00010020, 004A87E0): stub
0114:fixme:imm:ImeSetActiveContext (0x25f558, 1): stub
0114:fixme:imm:ImmReleaseContext (00020052, 0025F558): stub
0114:err:wgl:init_opengl Failed to load libGL: libGL.so.1: cannot open shared object file: No such file or directory
0114:err:wgl:init_opengl OpenGL support is disabled.
Perhaps I should enable OpenGL, but how?
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: C&C Generals Reports a DirectX 8.1 Error as of Wine 7.01

Post by jkfloris »

You are missing (a part of) the 32-bit drivers for your graphics card. You need at least the "libgl1:i386" package.

Code: Select all

sudo apt install libgl1:i386
RobertX
Level 2
Level 2
Posts: 49
Joined: Thu Sep 09, 2021 9:57 pm

Re: C&C Generals Reports a DirectX 8.1 Error as of Wine 7.01

Post by RobertX »

OK, it worked, thanks!

In addition to jkfloris's advice, adding an options.ini, and deleting dgbhelp.dll, I can finally get C&C Generals and Zero Hour to work in time for Christmas!

If that still doesn't work, try setting your Wine configuration to Windows XP.

Merry Christmas!

EDIT: I guess the only explanation I have is that one of the other PPAs knocked out a library file. It's happened before, it deleted the wine command once before and I don't know why.
Locked