WineHQ

OpenSUSE: Difference between revisions

(→‎From Git: add list of development packages)
Line 17: Line 17:
If you merely wish to recreate the distro package with minor modifications (e.g., adding custom patches), the easiest way to do that is by branching the Emulators:Wine package on the OBS, applying whatever changes you wish to make to the spec file, and building from that. See the [https://en.opensuse.org/openSUSE:Build_Service_Tutorial openSUSE Build Service Tutorial] for information on how to use the OBS.
If you merely wish to recreate the distro package with minor modifications (e.g., adding custom patches), the easiest way to do that is by branching the Emulators:Wine package on the OBS, applying whatever changes you wish to make to the spec file, and building from that. See the [https://en.opensuse.org/openSUSE:Build_Service_Tutorial openSUSE Build Service Tutorial] for information on how to use the OBS.
===From Git===
===From Git===
Building from git is necessary to run regression tests or test patches.  Follow the instructions in [[Git_Wine_Tutorial#Set_up_your_Git_repository|the Git Wine Tutorial]] for cloning the Wine git repository.
Building from git is necessary to run regression tests or test patches.   
====Build Tools and Dependencies====
====Build Tools and Dependencies====
{{warning}} ''The information in this section is based on openSUSE 13.1 and Wine 1.9.6.  Exact package names may vary depending on your version of openSUSE, and new dependencies may be added in future Wine versions. Always check the output of ./configure to verify that you have all dependencies installed.''
{{warning}} ''The information in this section is based on openSUSE 13.1 and Wine 1.9.6.  Exact package names may vary depending on your version of openSUSE, and new dependencies may be added in future Wine versions. Always check the output of ./configure to verify that you have all dependencies installed.''
Line 25: Line 25:
*[https://en.opensuse.org/Package_repositories#OSS OSS] (the main repository; this one is required, and should already be set up on your system)
*[https://en.opensuse.org/Package_repositories#OSS OSS] (the main repository; this one is required, and should already be set up on your system)
*[https://en.opensuse.org/Package_repositories#Update Update] (recommended in order to have the most up-to-date versions;  for most people, this should also already be set up)
*[https://en.opensuse.org/Package_repositories#Update Update] (recommended in order to have the most up-to-date versions;  for most people, this should also already be set up)
*[https://en.opensuse.org/Additional_package_repositories#Wine Wine] (recommended, as installing a distro package will pull in the runtime dependencies)
*[https://en.opensuse.org/Additional_package_repositories#Wine Wine] (recommended, as installing a distro package will pull in Wine's runtime dependencies)
*[https://en.opensuse.org/Additional_package_repositories#Packman Packman] (required for mp3 support)
*[https://en.opensuse.org/Additional_package_repositories#Packman Packman] (required for mp3 support)
*[http://download.opensuse.org/repositories/Education Education] (required for OpenCL support)
*[http://download.opensuse.org/repositories/Education Education] (required for OpenCL support)
Line 38: Line 38:
{{warning}} '''NOTE: This section is still very incomplete.'''
{{warning}} '''NOTE: This section is still very incomplete.'''


Installing the distro wine, wine-snapshot, or wine-staging package is the easiest way to install many of the libraries Wine depends on, as zypper or Yast2 will automatically pull them in. On a 64 bit system, installing the <tt>wine-32bit-build-deps</tt> package will install many of the 32 bit libraries needed to compile 32 bit Wine on a 64 bit system.
Installing the distro wine, wine-snapshot, or wine-staging package is the easiest way to install the libraries Wine depends on, as zypper or Yast2 will automatically pull them in.  
 
Since the distro packages are built without mp3 or SANE support, you will need to install the following packages yourself:
* <tt>libmpg123-0</tt> (this will be installed automatically if you install wine-mp3)
* <tt>sane-backends</tt> (if you want scanner support)
 
 
On a 64 bit system, you will also need to install
* <tt>libmpg123-0-32bit</tt> (this will be installed automatically if you install wine-mp3)
* <tt>sane-backends-32bit</tt> (if you want scanner support)
 


In addition to the runtime dependencies, the following development packages are needed:
In addition to the runtime dependencies, the following development packages are needed:
<pre>alsa-devel capi4linux-devel dbus-1-devel fontconfig-devel freeglut-devel freetype2-devel giflib-devel glib2-devel glibc-devel glu-devel gstreamer-devel gstreamer-plugins- base-devel libgnutls-devel libgphoto2-devel libgsm-devel libjpeg8-devel liblcms2-devel libmpg123-devel libOSMesa-devel libpng16-devel libpulse-devel libtiff-devel libv4l-devel libX11-devel libXcomposite-devel libXcursor-devel libXext-devel libXi-devel libXinerama-devel libXxf86vm-devel libxml2-devel libXrandr-devel libXrender-devel libxslt-devel Mesa-libGL-devel ncurses-devel openal-soft-devel opencl-headers openldap2-devel libopenssl-devel sane-backends-devel unixODBC-devel xorg-x11-devel zlib-devel</pre>
(Some of these packages will be installed by the patterns-openSUSE-devel_basis package.)


On a 64 bit system, you will also need to install the following 32-bit development packages:
<pre>alsa-devel-32bit capi4linux-devel-32bit dbus-1-devel-32bit fontconfig-devel-32bit freeglut-devel-32bit freetype2-devel-32bit giflib-devel-32bit glib2-devel-32bit glibc-devel-32bit glu-devel-32bit libgnutls-devel-32bit libgsm-devel-32bit libjpeg8-devel-32bit liblcms2-devel-32bit libOSMesa-devel-32bit libpng16-devel-32bit libtiff-devel-32bit libX11-devel-32bit libXcomposite-devel-32bit libXcursor-devel-32bit libXext-devel-32bit libXi-devel-32bit libXinerama-devel-32bit libXxf86vm-devel-32bit libxml2-devel-32bit libXrandr-devel-32bit libXrender-devel-32bit libxslt-devel-32bit Mesa-libGL-devel-32bit ncurses-devel-32bit openldap2-devel-32bit libopenssl-devel-32bit unixODBC-devel-32bit zlib-devel-32bit</pre>
Installing the <tt>wine-32bit-build-deps</tt> package will install most of the -32bit packages listed above.


To be continued...


Since the distro packages are built without mp3, SANE, or OpenCL support, you will need to install the following packages yourself:
* <tt>libmpg123-0</tt> (from Packman)
* <tt>sane-backends</tt> (from OSS)
* <tt>opencl-headers</tt> (from Education)


On a 64 bit system, you will also need to install
 
* <tt>libmpg123-0-32bit</tt> (from Packman)
====Obtaining the Source====
* <tt>sane-backends-32bit</tt> (from OSS)
Follow the instructions in [[Git_Wine_Tutorial#Set_up_your_Git_repository|the Git Wine Tutorial]] for cloning the Wine git repository.

Revision as of 23:10, 28 March 2016

Work in progress: This page is currently undergoing extensive revision. External links to specific parts of this page may now be broken due to the section having been edited, moved, merged with another section, or removed altogether. Consult the table of contents to find the section you are looking for. There may be related discussion on the talk page.

Installing distro packages

New versions of openSUSE ship with the Wine development release that was current at the time packages were frozen for release.

Up-to-date Wine packages are available through the Wine repository on the OBS. The package maintainer is Marcus Meissner. The repository includes packages for the biweekly releases of both Wine and Wine-staging, daily "snapshot" packages of git, and packages for wine-gecko and wine-mono. Simply add the repository to Yast2 or zypper and install as you would any other package.

Some notes about the openSUSE Wine packages:

  • Due to patent issues, the Wine packages on the OBS are built without mp3 support. Packages for wine-mp3 and its dependencies (libmpg123) are available in the Packman repository.
  • The packages include winetricks, installed to /usr/bin/.
  • The packages include .desktop files for Wine's builtin programs (winecfg, notepad, etc.), which are not part of vanilla Wine. Report any problems with them to the package maintainer.
  • The distro does not package the stable branch; however, packages for the stable releases may be available from personal projects on the OBS. Note that these packages are not supported by either WineHQ or the distro package maintainer.

Building Wine

On the OBS

If you merely wish to recreate the distro package with minor modifications (e.g., adding custom patches), the easiest way to do that is by branching the Emulators:Wine package on the OBS, applying whatever changes you wish to make to the spec file, and building from that. See the openSUSE Build Service Tutorial for information on how to use the OBS.

From Git

Building from git is necessary to run regression tests or test patches.

Build Tools and Dependencies

The information in this section is based on openSUSE 13.1 and Wine 1.9.6. Exact package names may vary depending on your version of openSUSE, and new dependencies may be added in future Wine versions. Always check the output of ./configure to verify that you have all dependencies installed.


The following repositories should be enabled to obtain basic build tools and Wine's build dependencies:

  • OSS (the main repository; this one is required, and should already be set up on your system)
  • Update (recommended in order to have the most up-to-date versions; for most people, this should also already be set up)
  • Wine (recommended, as installing a distro package will pull in Wine's runtime dependencies)
  • Packman (required for mp3 support)
  • Education (required for OpenCL support)


Basic Build Tools

The meta-package patterns-openSUSE-devel_basis will install the basic tools needed for building (gcc, make, flex, bison, etc.); on a 64 bit system, you will also need to install the patterns-openSUSE-devel_basis-32bit meta-package. You will also need to install git.

Dependencies

NOTE: This section is still very incomplete.

Installing the distro wine, wine-snapshot, or wine-staging package is the easiest way to install the libraries Wine depends on, as zypper or Yast2 will automatically pull them in.

Since the distro packages are built without mp3 or SANE support, you will need to install the following packages yourself:

  • libmpg123-0 (this will be installed automatically if you install wine-mp3)
  • sane-backends (if you want scanner support)


On a 64 bit system, you will also need to install

  • libmpg123-0-32bit (this will be installed automatically if you install wine-mp3)
  • sane-backends-32bit (if you want scanner support)


In addition to the runtime dependencies, the following development packages are needed:

alsa-devel capi4linux-devel dbus-1-devel fontconfig-devel freeglut-devel freetype2-devel giflib-devel glib2-devel glibc-devel glu-devel gstreamer-devel gstreamer-plugins- base-devel libgnutls-devel libgphoto2-devel libgsm-devel libjpeg8-devel liblcms2-devel libmpg123-devel libOSMesa-devel libpng16-devel libpulse-devel libtiff-devel libv4l-devel libX11-devel libXcomposite-devel libXcursor-devel libXext-devel libXi-devel libXinerama-devel libXxf86vm-devel libxml2-devel libXrandr-devel libXrender-devel libxslt-devel Mesa-libGL-devel ncurses-devel openal-soft-devel opencl-headers openldap2-devel libopenssl-devel sane-backends-devel unixODBC-devel xorg-x11-devel zlib-devel

(Some of these packages will be installed by the patterns-openSUSE-devel_basis package.)

On a 64 bit system, you will also need to install the following 32-bit development packages:

alsa-devel-32bit capi4linux-devel-32bit dbus-1-devel-32bit fontconfig-devel-32bit freeglut-devel-32bit freetype2-devel-32bit giflib-devel-32bit glib2-devel-32bit glibc-devel-32bit glu-devel-32bit libgnutls-devel-32bit libgsm-devel-32bit libjpeg8-devel-32bit liblcms2-devel-32bit libOSMesa-devel-32bit libpng16-devel-32bit libtiff-devel-32bit libX11-devel-32bit libXcomposite-devel-32bit libXcursor-devel-32bit libXext-devel-32bit libXi-devel-32bit libXinerama-devel-32bit libXxf86vm-devel-32bit libxml2-devel-32bit libXrandr-devel-32bit libXrender-devel-32bit libxslt-devel-32bit Mesa-libGL-devel-32bit ncurses-devel-32bit openldap2-devel-32bit libopenssl-devel-32bit unixODBC-devel-32bit zlib-devel-32bit

Installing the wine-32bit-build-deps package will install most of the -32bit packages listed above.



Obtaining the Source

Follow the instructions in the Git Wine Tutorial for cloning the Wine git repository.

This page was last edited on 28 March 2016, at 23:10.