Difference between revisions of "Wine"

From CBLFS
Jump to navigationJump to search
(Configuration)
 
(28 intermediate revisions by 9 users not shown)
Line 2: Line 2:
 
|-
 
|-
 
!Download Source:
 
!Download Source:
| http://prdownloads.sourceforge.net/wine/wine-0.9.23.tar.bz2
+
| http://downloads.sourceforge.net/wine/wine-{{Wine-Version}}.tar.bz2
 
|}
 
|}
  
Line 8: Line 8:
  
 
'''''Remember that Wine is not an emulator therefore it will only work on x86 or x86_64 Multilib systems.'''''
 
'''''Remember that Wine is not an emulator therefore it will only work on x86 or x86_64 Multilib systems.'''''
 +
 +
{{Package-Introduction|Wine is an Open Source implementation of the Windows API on top of X and Unix.
 +
 +
Think of Wine as a compatibility layer for running Windows programs. Wine does not require Microsoft Windows, as it is a completely free alternative implementation of the Windows API consisting of 100% non-Microsoft code, however Wine can optionally use native Windows DLLs if they are available. Wine provides both a development toolkit for porting Windows source code to Unix as well as a program loader, allowing many unmodified Windows programs to run on x86-based Unixes, including Linux, FreeBSD, Mac OS X, and Solaris.|http://www.winehq.org}}
  
 
== Dependencies ==
 
== Dependencies ==
 
=== Required ===
 
  
 
=== Recomended ===
 
=== Recomended ===
* [[X Window System]]
+
* [[X Window System]] (Only libXau, libxcb, libX11, libXext, libICE, libSM, libXt, libXmu, libXfixes, libXcomposite, libXrender, libXcursor, libXi, and libXrandr are needed.)
 +
* [[Xorg7/MesaLib|MesaLib]]
 
* [[FreeType]]
 
* [[FreeType]]
 +
* [[FontForge]]
 +
 
=== Optional ===
 
=== Optional ===
 
* [[Pkg-config]]
 
* [[Pkg-config]]
 
* [[LibXML2]]
 
* [[LibXML2]]
 +
* [[LibXSLT]]
 +
* [[OpenSSL]]
 +
* [[GnuTLS]]
 
* [[HAL]]
 
* [[HAL]]
 +
* [[D-BUS]]
 
* [[SANE]]
 
* [[SANE]]
* [[GPhoto2]]
+
* [[libgphoto2]]
 +
* [[little cms]]
 +
* [[libjpeg]]
 +
* [[libpng]]
 +
* [[FontConfig]]
 
* [[CUPS]]
 
* [[CUPS]]
 
* [[libicu]]
 
* [[libicu]]
* [[little cms]]
 
 
* [[OpenLDAP]]
 
* [[OpenLDAP]]
* [[FontForge]]
 
 
* [[NAS]]
 
* [[NAS]]
 
* [[aRts]]
 
* [[aRts]]
Line 32: Line 43:
 
* [[AudioIO]]
 
* [[AudioIO]]
  
== Non-Multilib ==
+
== Non-Multilib x86 ==
  
 
Compile the package:
 
Compile the package:
  
  ./configure --prefix=/opt/wine-0.9.23 &&
+
  ./configure --prefix=/opt/wine-{{Wine-Version}} &&
  make depend
+
  make depend &&
 
  make
 
  make
  
Line 43: Line 54:
  
 
  make install &&
 
  make install &&
  ln -sv /opt/wine-0.9.23 /opt/wine
+
  ln -sfvn wine-{{Wine-Version}} /opt/wine
  
 
== Multilib x86_64 ==
 
== Multilib x86_64 ==
 +
 +
=== 32Bit ===
  
 
Compile the package:
 
Compile the package:
  
 
  PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" USE_ARCH=32 \
 
  PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" USE_ARCH=32 \
  ./configure --prefix=/opt/wine-0.9.23 &&
+
  ./configure --prefix=/opt/wine-{{Wine-Version}} &&
  make depend
+
  make depend &&
 
  make
 
  make
  
Line 57: Line 70:
  
 
  make install &&
 
  make install &&
  ln -sv /opt/wine-0.9.23 /opt/wine
+
  ln -sfvn wine-{{Wine-Version}} /opt/wine
 +
 
 +
=== 64Bit ===
 +
 
 +
{{Note|See http://wiki.winehq.org/Wine64 for the current status of Wine64.  At this time, Wine64 is not really ready for much of anything, but don't let that stop you from building it.}}
 +
 
 +
Compile the package:
 +
 
 +
PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" USE_ARCH=64 \
 +
./configure --prefix=/opt/wine-{{Wine-Version}} --enable-win64 &&
 +
make depend &&
 +
make
 +
 
 +
Install the package
 +
 
 +
make install &&
 +
ln -sfvn wine-{{Wine-Version}} /opt/wine
  
 
== Configuration ==
 
== Configuration ==
  
== 50-wine.sh ==
+
=== 50-wine.sh ===
  
 
If you're using the [[Bash Startup Files]] create an addition for them with the following command:
 
If you're using the [[Bash Startup Files]] create an addition for them with the following command:
Line 69: Line 98:
 
   
 
   
 
  export PATH="${PATH}:/opt/wine/bin"
 
  export PATH="${PATH}:/opt/wine/bin"
 +
export XDG_DATA_DIRS="${XDG_DATA_DIRS}${XDG_DATA_DIRS+:}/opt/wine/share"
 
   
 
   
 
  # End /etc/profile.d/50-wine.sh
 
  # End /etc/profile.d/50-wine.sh
Line 74: Line 104:
  
 
Simple config
 
Simple config
  /opt/wine/winecfg
+
  /opt/wine/bin/winecfg
 +
 
 +
== Contents ==
 +
 
 +
{|style="text-align: left"
 +
|-valign="top"
 +
!Installed Directories:
 +
|/opt/wine-{{Wine-Version}}
 +
|-valign="top"
 +
!Installed Programs:
 +
|wine, wine-kthread, wine-pthread, wine-preloader, wineshelllink, wineapploader, winelauncher, wineserver, wineprefixcreate, widl, winebuild, winedump, function_grep.pl, winegcc, wmc, wrc, winemaker
 +
|-valign="top"
 +
!Installed Libraries:
 +
|libdinput.def.a, libdxerr8.a, libdxerr9.a, libdxguid.a, libstrmiids.a, libuuid.a, libwinecrt0.a, libwine.so,
 +
|-valign="top"
 +
!Symlinks:
 +
|/opt/wine-{{Wine-Version}}/lib/libwine.so.1  -->  /opt/wine-{{Wine-Version}}/lib/libwine.so.1.0, /opt/wine-{{Wine-Version}}/lib/libwine.so  -->  /opt/wine-{{Wine-Version}}/lib/libwine.so.1.0, /opt/wine-{{Wine-Version}}/bin/wineg++  -->  /opt/wine-{{Wine-Version}}/bin/winegcc, /opt/wine-{{Wine-Version}}/bin/winecpp  -->  /opt/wine-{{Wine-Version}}/bin/winegcc, /opt/wine-{{Wine-Version}}/share/man/man1/wineg++.1  -->  /opt/wine-{{Wine-Version}}/share/man/man1/winegcc.1
 +
|}
 +
 
 +
[[Category:Emulators]]

Latest revision as of 07:10, 2 May 2009

Download Source: http://downloads.sourceforge.net/wine/wine-1.1.38.tar.bz2

Remember that Wine is not an emulator therefore it will only work on x86 or x86_64 Multilib systems.

Introduction to Wine

Wine is an Open Source implementation of the Windows API on top of X and Unix.

Think of Wine as a compatibility layer for running Windows programs. Wine does not require Microsoft Windows, as it is a completely free alternative implementation of the Windows API consisting of 100% non-Microsoft code, however Wine can optionally use native Windows DLLs if they are available. Wine provides both a development toolkit for porting Windows source code to Unix as well as a program loader, allowing many unmodified Windows programs to run on x86-based Unixes, including Linux, FreeBSD, Mac OS X, and Solaris.

Project Homepage: http://www.winehq.org

Dependencies

Recomended

  • X Window System (Only libXau, libxcb, libX11, libXext, libICE, libSM, libXt, libXmu, libXfixes, libXcomposite, libXrender, libXcursor, libXi, and libXrandr are needed.)
  • MesaLib
  • FreeType
  • FontForge

Optional

Non-Multilib x86

Compile the package:

./configure --prefix=/opt/wine-1.1.38 &&
make depend &&
make

Install the package

make install &&
ln -sfvn wine-1.1.38 /opt/wine

Multilib x86_64

32Bit

Compile the package:

PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" USE_ARCH=32 \
./configure --prefix=/opt/wine-1.1.38 &&
make depend &&
make

Install the package

make install &&
ln -sfvn wine-1.1.38 /opt/wine

64Bit

Caution.png

Note

See http://wiki.winehq.org/Wine64 for the current status of Wine64. At this time, Wine64 is not really ready for much of anything, but don't let that stop you from building it.

Compile the package:

PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" USE_ARCH=64 \
./configure --prefix=/opt/wine-1.1.38 --enable-win64 &&
make depend &&
make

Install the package

make install &&
ln -sfvn wine-1.1.38 /opt/wine

Configuration

50-wine.sh

If you're using the Bash Startup Files create an addition for them with the following command:

cat > /etc/profile.d/50-wine.sh << "EOF"
# Begin /etc/profile.d/50-wine.sh

export PATH="${PATH}:/opt/wine/bin"
export XDG_DATA_DIRS="${XDG_DATA_DIRS}${XDG_DATA_DIRS+:}/opt/wine/share"

# End /etc/profile.d/50-wine.sh
EOF

Simple config

/opt/wine/bin/winecfg

Contents

Installed Directories: /opt/wine-1.1.38
Installed Programs: wine, wine-kthread, wine-pthread, wine-preloader, wineshelllink, wineapploader, winelauncher, wineserver, wineprefixcreate, widl, winebuild, winedump, function_grep.pl, winegcc, wmc, wrc, winemaker
Installed Libraries: libdinput.def.a, libdxerr8.a, libdxerr9.a, libdxguid.a, libstrmiids.a, libuuid.a, libwinecrt0.a, libwine.so,
Symlinks: /opt/wine-1.1.38/lib/libwine.so.1 --> /opt/wine-1.1.38/lib/libwine.so.1.0, /opt/wine-1.1.38/lib/libwine.so --> /opt/wine-1.1.38/lib/libwine.so.1.0, /opt/wine-1.1.38/bin/wineg++ --> /opt/wine-1.1.38/bin/winegcc, /opt/wine-1.1.38/bin/winecpp --> /opt/wine-1.1.38/bin/winegcc, /opt/wine-1.1.38/share/man/man1/wineg++.1 --> /opt/wine-1.1.38/share/man/man1/winegcc.1