Skip to main content

Install Codeweaver's Crossover on Mageia Linux

I have used Codeweaver's Crossover product since it was originally offered. Sadly, I install it on one of Codeweaver's unsupported distros, Mageia. This is, of course the successor distro to Mandrake and Mandriva. While Mageia uses the RPM packaging manager (providing two wrappers, their own urpmi and dnf ("Dandified YUM").

The RPM package provided by Codeweaver's installs almost perfectly because, distros being what they are, certain necessary packages are not named consistently from distro to distro. For Mageia, and many others, the two important packages are mentioned in an xmessage window as:

Could not install some Unix packages
Some errors may prevent CrossOver Linux from working correctly:
* Could not load the GTK+ Python modules.
* Missing 32bit libnss_mdns.so.2 library

You may be able to fix some issues by running one of the following commands as root:
Arch Linux (32 bits)    pacman -Syu nss-mdns pygtk
Arch Linux (64 bits)    pacman -Syu pygtk
Debian 7 (32 bits)      apt-get install libnss-mdns python-gtk2
Debian 7 (64 bits)      apt-get install lib32nss-mdns python-gtk2
Debian 8                apt-get install libnss-mdns:i386
Debian <= 6 (32 bits)   apt-get install libnss-mdns python-gtk2
Debian <= 6 (64 bits)   apt-get install lib32nss-mdns python-gtk2
Fedora <= 13 (32 bits)  yum install nss-mdns pygtk2
Fedora <= 13 (64 bits)  yum install nss-mdns.i686 nss-mdns.x86_64 pygtk2
Mandriva                /usr/sbin/urpmi nss_mdns pygtk2.0
openSUSE <= 11.2 (32 bits)      zypper install nss-mdns python-gtk
openSUSE <= 11.2 (64 bits)      zypper install nss-mdns-32bit python-gtk

This hints at the packages needed with a reference to the Mandriva distro and the package names for the Mageia distro are similar.

To install just these two packages on Mandriva,

$ sudo /usr/sbin/urpmi libnss-mdns2 pygtk2.0

If you run a diagnostic utility for Crossover, you'll get a list of other "missing" libraries which may or may not be necessary for the proper functioning of a Windows application you are trying to get to work. Some of these are at the level of "Suggest" or "Recommend".

$ /opt/cxoffice/bin/cxdiag

[MissingLibCapi20]

"Level"="Suggest"
"Title"="Missing 32bit libcapi20.so.3 library"
"Description"="Provides support for some ISDN cards. Very few applications need this."

[MissingLibFontconfig]
"Level"="Recommend"
"Title"="Missing 32bit libfontconfig.so.1 library"
"Description"="Makes it possible to find and use the system's TrueType fonts. This is strongly recommended for office-type applications."
Install with $ sudo urpmi libfontconfig1

[MissingLibGlu]
"Level"="Recommend"
"Title"="Missing 32bit libGLU.so.1 library"
"Description"="This may be needed by some games or CAD applications."
Install with $ sudo urpmi libmesaglu1

[MissingLibGphoto2]
"Level"="Suggest"
"Title"="Missing 32bit libgphoto2.so.6 library"
"Description"="Lets Windows applications access digital cameras."

[MissingLibGphoto2Port]
"Level"="Suggest"
"Title"="Missing 32bit libgphoto2_port.so.10 library"
"Description"="Lets Windows applications access digital cameras."

[MissingLibGsm]
"Level"="Suggest"
"Title"="Missing 32bit libgsm.so.1 library"
"Description"="Lets Windows applications use the GSM codec for audio compression and decompression."

[MissingLibLber]
"Level"="Suggest"
"Title"="Missing 32bit liblber-2.4.so.2 library"
"Description"="Lets Windows applications access LDAP servers."

[MissingLibLcms2]
"Level"="Suggest"
"Title"="Missing 32bit liblcms2.so.2 library"
"Description"="Provides color profile information to Windows applications. This is particularly useful if you have color-calibrated your screen but some applications need it even if you have not done so."

[MissingLibLdap_r]
"Level"="Suggest"
"Title"="Missing 32bit libldap_r-2.4.so.2 library"
"Description"="Lets Windows applications access LDAP servers."

[MissingLibOpenal]
"Level"="Suggest"
"Title"="Missing 32bit libopenal.so.1 library"
"Description"="Provides audio support to Windows applications."

[MissingLibOpencl]
"Level"="Suggest"
"Title"="Missing 32bit libOpenCL.so.1 library"
"Description"="Provides GPU computation support to Windows applications."

[MissingLibOsmesa8]
"Level"="Suggest"
"Title"="Missing 32bit libOSMesa.so.8 library"
"Description"="This is needed by some games and CAD-like applications to perform off-screen rendering."

[MissingLibSane]
"Level"="Recommend"
"Title"="Missing 32bit libsane.so.1 library"
"Description"="Lets Windows applications access scanners."
Install with $ sudo urpmi libsane1

[MissingLibTiff5]
"Level"="Suggest"
"Title"="Missing 32bit libtiff.so.5 library"
"Description"="This is needed by some applications that need to manipulate TIFF images in their user interface."

[MissingLibUdev]
"Level"="Recommend"
"Title"="Missing 32bit libudev.so.1 library"
"Description"="Lets Windows applications detect when devices are plugged in."
Install with $ sudo urpmi libudev1

[MissingLibV4l1]
"Level"="Suggest"
"Title"="Missing 32bit libv4l1.so.0 library"
"Description"="Lets Windows applications access video devices."

[MissingLibXcomposite]
"Level"="Recommend"
"Title"="Missing 32bit libXcomposite.so.1 library"
"Description"="This is needed for most CAD-like applications and some games."
Install with $ sudo urpmi libxcomposite1

[MissingLibXinerama]
"Level"="Recommend"
"Title"="Missing 32bit libXinerama.so.1 library"
"Description"="This is needed if your display spans multiple screens. If your computer has a single screen then you don't need it."
Install with $ sudo urpmi libxinerama1

[MissingLibXml2]
"Level"="Recommend"
"Title"="Missing 32bit libxml2.so.2 library"
"Description"="This library makes it possible for Windows applications read and write XML files."
This is installed as a dependency of libxslt1

[MissingLibXslt]
"Level"="Recommend"
"Title"="Missing 32bit libxslt.so.1 library"
"Description"="This library lets Windows applications perform queries and transformations on XML files."
Install with $ sudo urpmi libxslt1

[MissingLibNss_mdns]
"Level"="Require"
"Title"="Missing 32bit libnss_mdns.so.2 library"
"Description"="This library is needed for network and Internet access. Installing it is strongly recommended."
Install with $ urpmi libnss_mdns2

[MissingLibVulkan]
"Level"="Suggest"
"Title"="Missing 32bit libvulkan.so.1 library"
"Description"="This library is needed for games which use the Vulkan graphics API; for D3D12 applications; and for the DXVK layer for D3D11"

[Properties]
"vulkan.present"="no"

[MissingLibGstreamer1]
"Level"="Suggest"
"Title"="Missing 32bit libgstreamer-1.0.so.0 library"
"Description"="GStreamer is needed by some games and multimedia applications to play audio and/or video content."

[MissingGStreamer1Bad]
"Level"="Suggest"
"Title"="The gst-plugins-bad 32 bit GStreamer plugins appears to be missing"
"Description"="These GStreamer plugins may be needed by some games and multimedia applications to play audio and/or video content"

[MissingGStreamer1Base]
"Level"="Suggest"
"Title"="The gst-plugins-base 32 bit GStreamer plugins appears to be missing"
"Description"="These GStreamer plugins may be needed by some games and multimedia applications to play audio and/or video content"

[MissingGStreamer1Good]
"Level"="Suggest"
"Title"="The gst-plugins-good 32 bit GStreamer plugins appears to be missing"
"Description"="These GStreamer plugins may be needed by some games and multimedia applications to play audio and/or video content"

[MissingGStreamer1Ugly]
"Level"="Suggest"
"Title"="The gst-plugins-ugly 32 bit GStreamer plugins appears to be missing"
"Description"="These GStreamer plugins may be needed by some games and multimedia applications to play audio and/or video content"

[MissingGStreamer1Libav]
"Level"="Suggest"
"Title"="The gst-libav 32 bit GStreamer plugins appears to be missing"
"Description"="These GStreamer plugins may be needed by some games and multimedia applications to play audio and/or video content"

To install the "Recommended" libraries,
$ sudo urpmi libfontconfig1 libmesaglu1 libsane1 libudev1 libxcomposite1 libxcomposite1 libxinerama1 libmesagl1 libfreetype6 libpng16_16 libxslt1 

After installing these, you can confirm the absence of "Recommended" libraries by re-running the diagnostic. This information can also be accessed through the Crossover GUI under Help - System Information.

To install other libraries as needed, the search function of the graphical package manager application, rpmdrake, is useful. By being familiar with these "Suggest" libraries and their uses, you may be able to get some more obscure Windows applications running using Crossover.

Metapackage for Crossover
You can create a metapackage that will automatically install all of the Recommended dependencies. Read about it here. If I can get all the syntax correct, I'll submit it to Mageia for inclusion in their distro. You can download my RPM here, but it's not secure and not signed. Use at your own risk.

REGISTRATION
I have a license for Crossover and a method of entering that information is provided, but the sudo method used by Crossover fails for Mageia, so it is necessary to start Crossover as the root user to enter the information. Codeweavers strongly cautions you against running Crossover as root, since even Windows malware runs well with Crossover.

Brian from Tech Support suggests using  /opt/cxoffice/bin/cxregister as a regular user, but that has not worked for me in the past. I'll make a note to trouble-shoot it and file a bug report if necessary.

$ sudo /opt/cxoffice/bin/crossover

Comments

Popular posts from this blog

Unreal Tournament GOTY/UT99 for Modern Linux

Released on November 16, 1999, Unreal Tournament (also known as UT99) is an arena first-person shooter for Multiplayer on-line competition or you cam play against bots off-line. It features several game types, with more details provided at Wikipedia. The game was re-released on February 25, 2000 as Unreal Tournament Game of the Year Edition (GOTY) which included the three bonus packs released previously and additional mods, or game modifiers that had become popular. It is the GOTY version that is available from STEAM of GOG.com.

The GOG version for Windows installs in Linux and plays well using WINE, PlayOnLinux or Codeweaver's Crossover.

There is a Linux binary available in two versions, one for the original game and one for the GOTY edition. Also provided at that site is the Official Bonus Pack with a Linux installer. All these Linux installers are created with makeself.

There are some issues using such a crusty old Linux binary. Let's see why getting a Linux binary up and …

DOS4GW.EXE Version 2.01a and Alternative DOS Extenders

DOS4GW.EXE
The TenberryDOS extender DOS4GW.EXE was used by many early DOS games. I still enjoy playing many of these games and DOS4GW.EXE is usable with DOSBox, so they can be played on Linux.

However, the version of DOS4GW.EXE that was included with the game was whatever was current at the time. The most recent version that includes many bugfixes that possibly affected the games when used with DOSBox have been fixed in the latest version, 2.01a.

It's not free at US$49, but you can downloaded it here. Simply substitute it for whatever version of DOS4GW.EXE your game provided and enjoy the bug-fixed goodness. Tenberry also makes a "high-performance" "pro" version of DOS4GW.EXE, but it costs $300. I think that they could sell quite a few of these to hobby users (since, you know, DOS is dead) for US$5.

Open Souce to the Rescue
There are better performing, free and Open Source alternatives available and worth a look.

DPMI Explained
But first, let's understand w…

Unpack those .EXE game files from GOG,com (Plus other un-packers)

I just came upon innoextract today. I have many of the wonderful games from GOG.com, some of which have native Linux Clients. Before now, I've had to use PlayOnLinux or Crossover to install these for use with WINE, then add the Linux client.

InnoSetup as a way to create an installer to install the games on Windows. Daniel Scharrer has created innoextract to allow the unpacking of those archives on a non-Windows platform.

The website provides information on using innoextract, but this information from the page is very useful:
GOG.com Installers GOG.com installers with a 2.x.x version number on the download page or in the filename use InnoSetup 5.5.0 and cannot be extracted by innoextract 1.2 and older. Older installers use InnoSetup 5.2.3 and usually have no version in the filename. Some GOG.com multi-part installers with version 2.1.x or higher use RAR archives (renamed to .bin) to store the game data. These files are not part of the InnoSetup installer and require unrar or unar to…