Advertisement
Guest User

Compile Pipelight on OpenSUSE

a guest
Sep 3rd, 2013
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 7.58 KB | None | 0 0
  1. # Warning: This installation guide is some kind of proof of concept.
  2. # Especially some of the dependencies may be wrong/unnecessary or missing.
  3. # Maybe someone with more experience in OpenSUSE can create an improved version.
  4.  
  5. # Install chromium since its easier to test with than firefox (optional)
  6. sudo zypper in chromium-browser
  7.  
  8. # Install patch and build programs
  9. sudo zypper in patch
  10. sudo zypper in gcc-c++ make
  11.  
  12. # Creating a working directory for compiling wine
  13. mkdir $HOME/wine-compile
  14. cd $HOME/wine-compile/
  15.  
  16. # Download all required patches
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  26.  
  27. # Download Wine 1.7.1 and extract it
  28. 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"
  29. tar -xf wine-1.7.1.tar.bz2
  30.  
  31. # Patch Wine and create a new conigure script which supports extendend attrbutes
  32. cd wine-1.7.1/
  33. cat ../*.patch | patch -p1
  34. autoreconf
  35.  
  36. # The Wine Wiki recommends to install the 64 bit depedencendies although we are only compiling
  37. # 32 bit. I doubt that this is necessary, but before we run into problems...
  38.  
  39. 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
  40.  
  41. # Install 32 bit dependencies
  42.  
  43. 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
  44.  
  45. # We need to create some symlinks, otherwise Wine will not find our libs
  46. cd /usr/lib
  47. sudo ln -s libpng15.so libpng.so
  48. sudo ln -s libgphoto2_port.so.0.8.0 libgphoto2_port.so
  49. sudo ln -s libcups.so.2 libcups.so
  50. sudo ln -s libgphoto2.so.2.4.0 libgphoto2.so
  51. sudo ln -s libGLU.so.1 libGLU.so
  52.  
  53.  
  54. # Back to our Wine installation
  55. # Create a directory in which Wine places all the object files during the build
  56. cd $HOME/wine-compile
  57. mkdir wine32
  58. cd wine32
  59. ../wine-1.7.1/configure --prefix=/opt/wine-compholio/
  60.  
  61. # Check if extended file attributes are enabled:
  62. cat config.log | grep -i XATTR
  63. # This command should output some lines containing:
  64. #define HAVE_ATTR_XATTR_H 1
  65.  
  66. # Now we are ready to make and install Wine
  67. # If you have multiple cpu cores write "make -j4" and
  68. # replace the 4 with the number of cores.
  69. # This may take some time depending on the speed of your
  70. # CPU
  71. make
  72. sudo make install
  73.  
  74. # Install the microsoft core fonts. They are needed by some Silverlight apllications
  75. sudo zypper in fetchmsttfonts
  76.  
  77. # Now we are ready with Wine and can continue with Pipelight
  78. mkdir $HOME/pipelight
  79. cd $HOME/pipelight
  80. wget https://bitbucket.org/mmueller2012/pipelight/get/v0.1-2.tar.gz
  81. tar -xf v0.1-2.tar.gz
  82. cd mmueller2012-pipelight-*
  83.  
  84. # We need mingw32, which is not in the default repository, so we will need to add a user repository.
  85. # You need to use the one suiteable for your distribution.
  86. sudo zypper ar -f http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_12.3/ mingw
  87. sudo zypper ref
  88. 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++
  89.  
  90. # Compile pipelight
  91. ./configure
  92. make
  93.  
  94. # Before we install Pipelight, we should install Silverlight to prevent some problems with firefox
  95.  
  96. wget https://raw.github.com/anish/archlinux/master/pipelight/wine-silverlight5.1-installer.install-script
  97. chmod +x wine-silverlight5.1-installer.install-script
  98. 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
  99. WINEPRFX=~/.wine-pipelight WINE=/opt/wine-compholio/bin/wine INSTDIR=/tmp ./wine-silverlight5.1-installer.install-script
  100.  
  101. # We need to fix the DLL path in config
  102. sed -i 's|/usr/lib/gcc/i686-w64-mingw32/4.6/|/usr/i686-w64-mingw32/sys-root/mingw/bin/|g' share/pipelight
  103.  
  104. # Now we can finally install Pipelight (close your browser!)
  105. sudo make install
  106.  
  107. #Now test Pipelight :-)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement