Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Warning: This installation guide is some kind of proof of concept.
- # Especially some of the dependencies may be wrong/unnecessary or missing.
- # Maybe someone with more experience in OpenSUSE can create an improved version.
- # Install chromium since its easier to test with than firefox (optional)
- sudo zypper in chromium-browser
- # Install patch and build programs
- sudo zypper in patch
- sudo zypper in gcc-c++ make
- # Creating a working directory for compiling wine
- mkdir $HOME/wine-compile
- cd $HOME/wine-compile/
- # Download all required patches
- wget http://bazaar.launchpad.net/~ehoover/netflix-desktop/wine-compholio/download/ehoover%40mines.edu-20130822000806-53x4wkfs9eix82hh/0001ws2_32implements-20130822000805-fjjdlvc8uumhfo2q-11/0001-ws2_32-Implement-SIO_ADDRESS_LIST_CHANGE-with-Notify.patch
- wget http://bazaar.launchpad.net/~ehoover/netflix-desktop/wine-compholio/download/ehoover%40mines.edu-20130822000806-53x4wkfs9eix82hh/0002iphlpapiimplemen-20130822000805-fjjdlvc8uumhfo2q-12/0002-iphlpapi-Implement-NotifyAddrChange-on-Linux.patch
- wget http://bazaar.launchpad.net/~ehoover/netflix-desktop/wine-compholio/download/ehoover%40mines.edu-20130822000806-53x4wkfs9eix82hh/0003iphlpapiimplemen-20130822000805-fjjdlvc8uumhfo2q-13/0003-iphlpapi-Implement-CancelIPChangeNotify.patch
- wget http://bazaar.launchpad.net/~ehoover/netflix-desktop/wine-compholio/download/ehoover%40mines.edu-20130822000806-53x4wkfs9eix82hh/0004servercreatedire-20130822000805-fjjdlvc8uumhfo2q-14/0004-server-Create-directories-with-the-specified-securit.patch
- wget http://bazaar.launchpad.net/~ehoover/netflix-desktop/wine-compholio/download/ehoover%40mines.edu-20130822000806-53x4wkfs9eix82hh/0005serverstoreandre-20130822000805-fjjdlvc8uumhfo2q-15/0005-server-Store-and-return-security-attributes-with-ext.patch
- wget http://bazaar.launchpad.net/~ehoover/netflix-desktop/wine-compholio/download/ehoover%40mines.edu-20130822000806-53x4wkfs9eix82hh/0006ntdllinheritsecu-20130822000805-fjjdlvc8uumhfo2q-16/0006-ntdll-Inherit-security-attributes-from-parent-direct.patch
- wget http://bazaar.launchpad.net/~ehoover/netflix-desktop/wine-compholio/download/ehoover%40mines.edu-20130822000806-53x4wkfs9eix82hh/0007kernel32allowstr-20130822000805-fjjdlvc8uumhfo2q-17/0007-kernel32-Allow-string-comparison-with-linguistic-cas.patch
- wget http://bazaar.launchpad.net/~ehoover/netflix-desktop/wine-compholio/download/ehoover%40mines.edu-20130822000806-53x4wkfs9eix82hh/0008winex11addminima-20130822000805-fjjdlvc8uumhfo2q-18/0008-winex11-Add-minimal-XEmbed-client-support.patch
- wget http://bazaar.launchpad.net/~ehoover/netflix-desktop/wine-compholio/download/ehoover%40mines.edu-20130826223837-p82301u60x7t5qpu/0009d3d9partialimple-20130826223744-ugz2fin59nh4vt1f-1/0009-d3d9-Partial-implementation-of-IDirect3DSwapChain9Ex.patch
- # Download Wine 1.7.1 and extract it
- wget -O wine-1.7.1.tar.bz2 "http://downloads.sourceforge.net/project/wine/Source/wine-1.7.1.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fwine%2Ffiles%2FSource%2F&ts=1378163596&use_mirror=freefr"
- tar -xf wine-1.7.1.tar.bz2
- # Patch Wine and create a new conigure script which supports extendend attrbutes
- cd wine-1.7.1/
- cat ../*.patch | patch -p1
- autoreconf
- # The Wine Wiki recommends to install the 64 bit depedencendies although we are only compiling
- # 32 bit. I doubt that this is necessary, but before we run into problems...
- sudo zypper in Mesa-devel alsa-devel autoconf bison capi4linux-devel cups-devel dbus-1-devel desktop-file-utils fdupes flex fontconfig-devel freeglut-devel freetype2-devel giflib-devel libOSMesa-devel libgnutls-devel libgphoto2-devel libgsm-devel libjpeg-devel liblcms2-devel libpng-devel libtiff-devel libxml2-devel libxslt-devel ncurses-devel openldap2-devel openssl-devel pkgconfig prelink update-desktop-files valgrind-devel xorg-x11-devel gstreamer-0_10-plugins-base-devel libv4l-devel openal-soft-devel libv4l-devel libattr-devel
- # Install 32 bit dependencies
- sudo zypper in capi4linux-32bit cups-libs-32bit fontconfig-devel-32bit freeglut-devel-32bit freetype2-devel-32bit gcc-32bit giflib-devel-32bit glibc-devel-32bit libjpeg8-devel-32bit liblcms-devel-32bit libpng15-devel-32bit libxml2-devel-32bit libxslt-devel-32bit Mesa-devel-32bit ncurses-devel-32bit openldap2-devel-32bit openssl-devel-32bit sane-32bit unixODBC-devel-32bit xorg-x11-devel-32bit xorg-x11-libICE-32bit xorg-x11-libICE-devel-32bit libSM-devel-32bit xorg-x11-libX11-devel-32bit xorg-x11-libXext-32bit xorg-x11-libXext-devel-32bit xorg-x11-libXp-32bit xorg-x11-libXrender-devel-32bit xorg-x11-libXt-32bit zlib-devel-32bit libasound2-32bit libcom_err-devel-32bit libgnutls26-32bit libgphoto2-devel-32bit libopenssl0_9_8-32bit libgnutls-devel-32bit libOSMesa-devel-32bit libv4l-devel-32bit libopenal1-32bit libgphoto2-6-32bit libXrandr-devel-32bit libXinerama-devel-32bit libXi-devel-32bit libXcursor-devel-32bit libXcomposite-devel-32bit libGLU1-32bit libv4l-32bit libopenal0-32bit libattr-devel-32bit
- # We need to create some symlinks, otherwise Wine will not find our libs
- cd /usr/lib
- sudo ln -s libpng15.so libpng.so
- sudo ln -s libgphoto2_port.so.0.8.0 libgphoto2_port.so
- sudo ln -s libcups.so.2 libcups.so
- sudo ln -s libgphoto2.so.2.4.0 libgphoto2.so
- sudo ln -s libGLU.so.1 libGLU.so
- # Back to our Wine installation
- # Create a directory in which Wine places all the object files during the build
- cd $HOME/wine-compile
- mkdir wine32
- cd wine32
- ../wine-1.7.1/configure --prefix=/opt/wine-compholio/
- # Check if extended file attributes are enabled:
- cat config.log | grep -i XATTR
- # This command should output some lines containing:
- #define HAVE_ATTR_XATTR_H 1
- # Now we are ready to make and install Wine
- # If you have multiple cpu cores write "make -j4" and
- # replace the 4 with the number of cores.
- # This may take some time depending on the speed of your
- # CPU
- make
- sudo make install
- # Install the microsoft core fonts. They are needed by some Silverlight apllications
- sudo zypper in fetchmsttfonts
- # Now we are ready with Wine and can continue with Pipelight
- mkdir $HOME/pipelight
- cd $HOME/pipelight
- wget https://bitbucket.org/mmueller2012/pipelight/get/v0.1-2.tar.gz
- tar -xf v0.1-2.tar.gz
- cd mmueller2012-pipelight-*
- # We need mingw32, which is not in the default repository, so we will need to add a user repository.
- # You need to use the one suiteable for your distribution.
- sudo zypper ar -f http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_12.3/ mingw
- sudo zypper ref
- sudo zypper in mingw32-cross-gcc-c++ mingw32-headers mingw32-cross-binutils mingw32-cpp mingw32-filesystem mingw32-gcc mingw32-glib2 mingw-glib2-devel mingw32-glib2-lang mingw32-libgcc mingw32-libgmp mingw32-libintl mingw32-libintl-devel mingw32-libmpc mingw32-libmpfr mingw32-libssp mingw32-runtime mingw32-cross-gcc-bootstrap mingw32-libstdc++
- # Compile pipelight
- ./configure
- make
- # Before we install Pipelight, we should install Silverlight to prevent some problems with firefox
- wget https://raw.github.com/anish/archlinux/master/pipelight/wine-silverlight5.1-installer.install-script
- chmod +x wine-silverlight5.1-installer.install-script
- wget -O /tmp/wine-silverlight5.1-installer.exe http://silverlight.dlservice.microsoft.com/download/B/3/C/B3CF6815-40B1-4E36-8746-C4A0381AD260/20513.00/runtime/Silverlight.exe
- WINEPRFX=~/.wine-pipelight WINE=/opt/wine-compholio/bin/wine INSTDIR=/tmp ./wine-silverlight5.1-installer.install-script
- # We need to fix the DLL path in config
- sed -i 's|/usr/lib/gcc/i686-w64-mingw32/4.6/|/usr/i686-w64-mingw32/sys-root/mingw/bin/|g' share/pipelight
- # Now we can finally install Pipelight (close your browser!)
- sudo make install
- #Now test Pipelight :-)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement