Building 32-bit Wine on a 64-bit (x86-64) system

Source: Internet
Author: User
Tags rpmbuild

EL6 (RHEL6 and SL6)

Required packages for proper building of 32-bit Wine on 64-bit EL6

Yum Install--setopt=protected_multilib=false install libxrender-devel.i686 MINGW32-LIBXML2 libxslt-devel.i686 gnutls-devel.i686 libjpeg-devel.i686 libpng-devel.i686 freetype-devel.i686 libx11-devel.i686 glibc-devel.i686 alsa-lib-devel.i686 libsndfile-devel.i686 readline-devel.i686 glib2.i686 glibc-devel.i686 libgcc.i686 libstdc++- devel.i686 pulseaudio-libs-devel.i686 cmake portaudio-devel.i686 openal-soft-devel.i686 audiofile-devel.i686 freeglut-devel.i686 lcms-devel.i686 libieee1284-devel.i686 openldap-devel.i686 unixODBC-devel.i686 sane-backends-devel.i686 FontForge libgphoto2-devel.i686 isdn4k-utils-devel.i686 mesa-libgl-devel.i686 mesa-libglu-devel.i686 libxxf86dga-devel.i686 libxxf86vm-devel.i686 giflib-devel.i686 cups-devel.i686 gsm-devel.i686 libv4l-devel.i686 fontpackages-devel imagemagick-devel.i686 openal-soft-devel.i686 libX11-devel.i686 Docbook-utils-pdf libtextcat TEX-CM-LGC libxext-devel-1.3.2-2.1.el6.i686 libxml2-devel-2.7.6-17.el6_6.1.i686 zlib-devel-1.2.3-29.el6.i686 libjpeg-turbo-devel-1.2.1-3.el6_5.i686 

Trying to rebuild the Epel 6 wine Srpms (wine-1.2.3-1.el6.src.rpm) in 32-bit mode, I had to do the following manual change s to the spec files:

    • Portaudio.spec:add an "Export cc= ' gcc-m32-march=i686 '" under an%ifarch%{ix86}
    • Wine.spec:add an "Export cc= ' gcc-m32-march=i686 '" in an%ifarch%{ix86}, and remove ' targetflags= ""%{?_smp_mflags} ' AF ter%{make}

The resulting packages (SRC and binary) is available here http://www.gymglish.com/opensource/rpms/centos6-rpms/

Then, I could build the RPMs in this order:

Rpmbuild-ba--sign--target i686 portaudio.specrpmbuild-ba--sign--target i686 openal-soft.specrpmbuild-ba--s IGN--target i686 nss-mdns.specrpmbuild-ba--sign--target i686 wine.specrpmbuild-ba--sign wine-docs.spec /c6>   

Wine under a lot of Chinese display as a box solution:

1. Prepare the Font

To make Windows applications look more beautiful, you need fonts underneath Windows.

Copy the SIMSUN.TTC file to the C:\Windows\Fonts directory under Windows system. Copy to the ~/.wine/drive_c/windows/fonts directory.

Creating a SIMFANG.TTC is a default for many Windows apps using SIMFANG.TTC fonts.

2, modify the ~/.wine/system.reg

After you have installed the fonts, modify the Wine registry settings to specify the font-related settings:

Gedit ~/.wine/system.reg

(Be sure to modify these files using Gedit or another editor that supports GB2312/UTF8 encoding, otherwise the Chinese in the file may be garbled)

Search: Logpixels

The rows found should be: [System\\currentcontrolset\\hardware profiles\\current\\software\\fonts]

Will be one of:

"Logpixels" =dword:00000060

Switch

"Logpixels" =dword:00000070

Search: FontSubstitutes

The rows found should be: [Software\\microsoft\\windows nt\\currentversion\\fontsubstitutes]

Will be one of:

"MS Shell Dlg" = "Tahoma"

"MS Shell Dlg 2″=" Tahoma "

Switch

"MS Shell Dlg" = "SimSun"

"MS Shell Dlg 2″=" SimSun "

3, modify the ~/.wine/drive_c/windows/win.ini

Gedit ~/.wine/drive_c/windows/win.ini

At the end of the file, add:

[Desktop]

Menufontsize=13

Messagefontsize=13

Statusfontsize=13

Icontitlesize=13

4, the most critical step, save the following code as Zh.reg, and then the terminal to perform regedit zh.reg.

Code:

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Nt\currentversion\fontsubstitutes]

"Arial" = "SimSun"

"Arial ce,238" = "SimSun"

"Arial cyr,204" = "SimSun"

"Arial greek,161" = "SimSun"

"Arial tur,162" = "SimSun"

"Courier New" = "SimSun"

"Courier New ce,238" = "SimSun"

"Courier New cyr,204" = "SimSun"

"Courier New greek,161" = "SimSun"

"Courier New tur,162" = "SimSun"

"Fixedsys" = "SimSun"

"Helv" = "SimSun"

"Helvetica" = "SimSun"

"MS Sans Serif" = "SimSun"

"MS Shell Dlg" = "SimSun"

"MS Shell Dlg 2" = "SimSun"

"System" = "SimSun"

"Tahoma" = "SimSun"

"Times" = "SimSun"

"Times New Roman ce,238" = "SimSun"

"Times New Roman cyr,204" = "SimSun"

"Times New Roman greek,161" = "SimSun"

"Times New Roman tur,162" = "SimSun"

"Tms Rmn" = "SimSun"

Well, then you will find how beautiful Chinese is ...

from:http://wiki.winehq.org/wineon64bit#head-25bf815250cd2c1399a85b153e15a2f2cabf246e

Building 32-bit Wine on a 64-bit (x86-64) system

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.