Le blog de Jean David TECHER, un Réunionnais à Saint-Priest/Lyon

Aller au contenu | Aller au menu | Aller à la recherche


< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 >

jeudi 16 mars 2017

Wine Configure |Resort options in alphabetical order

Here is the command line I used to sort wine switches/options

  • WITH Gallium-Nine support and Without HAL support
    echo  $(echo -n $(./configure --help|grep -E '  \-\-with'|grep -vE '(PACKAGE|\-wine)'|sort|sed -e "s:without:with:g;s:with-hal:without-hal:g"|awk '{print $1}'|sort)) | \
    sed -e "s:--with-d3d9-nine-headers-path --with-d3d9-nine-module:--with-d3d9-nine-module=auto --with-d3d9-nine-headers-path=auto:g"
    Should print something like
    --with-alsa --with-capi --with-cms --with-coreaudio --with-cups --with-curses --with-d3d9-nine --with-d3d9-nine-module=auto --with-d3d9-nine-headers-path=auto \
    --with-dbus --with-fontconfig --with-freetype --with-gettext --with-gettextpo --with-glu --with-gnutls --with-gphoto --with-gsm --with-gstreamer --with-gtk3 --with-jpeg --with-ldap \
    --with-mpg123 --with-netapi --with-openal --with-opencl --with-opengl --with-osmesa --with-oss --without-hal --with-pcap --with-png --with-pthread --with-pulse --with-sane --with-tiff \
    --with-udev --with-v4l --with-va --with-x --with-xattr --with-xcb --with-xcomposite --with-xcursor --with-xinerama --with-xinput --with-xinput2 --with-xml --with-xrandr --with-xrender\
     --with-xshape --with-xshm --with-xslt --with-xxf86vm --with-zlib
  • WITHOUT Gallium-Nine support and Without HAL support if you use NVIDIA GPU
    echo  $(echo -n $(./configure --help|grep -E '  \-\-with'|grep -vE '(PACKAGE|\-wine)'|sort|sed -e "s:without:with:g;s:with-hal:without-hal:g"|awk '{print $1}'|sort)) 
    Should print something like
    --with-alsa --with-capi --with-cms --with-coreaudio --with-cups --with-curses --with-dbus --with-fontconfig --with-freetype --with-gettext --with-gettextpo --with-glu \
    --with-gnutls --with-gphoto --with-gsm --with-gstreamer --with-gtk3 --with-jpeg --with-ldap --with-mpg123 --with-netapi --with-openal --with-opencl --with-opengl --with-osmesa \
    --with-oss --without-hal --with-pcap --with-png --with-pthread --with-pulse --with-sane --with-tiff --with-udev --with-v4l --with-va --with-x --with-xattr --with-xcb --with-xcomposite \
    --with-xcursor --with-xinerama --with-xinput --with-xinput2 --with-xml --with-xrandr --with-xrender --with-xshape --with-xshm --with-xslt --with-xxf86vm --with-zlib

dimanche 12 mars 2017

Upgrade kernel 4.4: From 4.4.36 to 4.4.53

This ticket is just a reminder on how to upgrade my old kernel 4.4.36 to kernel 4.4.53 using incrementals patches. [more]
  • Go to the sources folder and clean up its content using make mrproper
    cd /opt/Sources/linux-4.4
    make mrproper
  • Create a temporary folder tmp_sources for all patches
    cd /opt/Sources/linux-4.4
    mkdir tmp_patches
    cd tmp_patches
  • Download patches
    for((inc=36;inc<=52;inc++));
    do 
    wget https://cdn.kernel.org/pub/linux/kernel/v4.x/incr/patch-4.4.${inc}-$(expr ${inc} + 1).xz -O - | xz -d > patch-4.4.${inc}-$(expr ${inc} + 1);
    done
  • Content of the current folder is
    /opt/Sources/linux-4.4/tmp_patch# ls
    patch-4.4.36-37  patch-4.4.38-39  patch-4.4.40-41  patch-4.4.42-43  patch-4.4.44-45  patch-4.4.46-47  patch-4.4.48-49  patch-4.4.50-51  patch-4.4.52-53
    patch-4.4.37-38  patch-4.4.39-40  patch-4.4.41-42  patch-4.4.43-44  patch-4.4.45-46  patch-4.4.47-48  patch-4.4.49-50  patch-4.4.51-52
    
  • Apply these patches
    cd ..
    for((inc=36;inc<=52;inc++));
    do 
    patch -p1 < tmp_patch/patch-4.4.${inc}-$(expr ${inc} + 1);
    done
Time to buidl the kernel
  • Configure the kernel
    make menuconfig
  • Build everything
    make -j4 bzImage modules
    Notice: If you have a DVD or a film to watch then enjoy it! Above commands should take a while to be executed.

    On my PC with CPU=i5-4430, it took 30 minutes.

  • Install
    make -j4 INSTALL_MOD_STRIP=1 modules_install
    make -j4 INSTALL_MOD_STRIP=1 install
    make -j4 INSTALL_MOD_STRIP=1 headers_install
    
    Notice: INSTALL_MOD_STRIP=1 is pretty useful. This flag helps to install binaries with a smaller size :)

lundi 9 janvier 2017

[Documentation]Build Wine-Staging 2.0 WoW64 on Linux Mint 18.1 64 Bits

I started this documentation a couple days ago. I tested it twice on Linux Mint 18 64 Bits

The documentation is available here

samedi 24 décembre 2016

Build Wine-Staging 2.0rc2 and Gallium Nine from Sources (including patches from wine-gaming-nine repo)

Below are my instructions to build Wine-Staging with Gallium-Nine

CURRENT_VERSION="2.0-rc2"
MAJOR_VERSION="2.0"

# Create main folder and get into this folder
mkdir Wine-Staging-${CURRENT_VERSION}_Gallium-Nine and move this new folder
cd Wine-Staging-${CURRENT_VERSION}_Gallium-Nine

# Download all sources
wget https://dl.winehq.org/wine/source/${MAJOR_VERSION}/wine-${CURRENT_VERSION}.tar.bz2
wget https://github.com/wine-compholio/wine-staging/archive/v${CURRENT_VERSION}.tar.gz
wget https://github.com/sarnex/wine-d3d9-patches/archive/wine-d3d9-${CURRENT_VERSION}.tar.gz
git clone https://aur.archlinux.org/wine-gaming-nine.git/

# Decompress Wine sources and Gallium Nine patches sources
tar xvjf wine-${CURRENT_VERSION}.tar.bz2 
tar xvzf wine-d3d9-${CURRENT_VERSION}.tar.gz

# Get into Wine folder and apply patches for Wine-Staging
cd wine-${CURRENT_VERSION}
tar xvzf ../v${CURRENT_VERSION}.tar.gz -C . --strip-component 1
./patches/patchinstall.sh DESTDIR="$(pwd)" --all

# Apply patches for Gallium Nine
patch -p1 < ../wine-d3d9-patches-wine-d3d9-${CURRENT_VERSION}/staging-helper.patch
patch -p1 < ../wine-d3d9-patches-wine-d3d9-${CURRENT_VERSION}/wine-d3d9.patch 

# Apply patches from wine-gaming-nine 
patch -p1 < ../wine-gaming-nine/heap_perf.patch
patch -p1 < ../wine-gaming-nine/increase_max_frag_samplers.patch
patch -p1 < ../wine-gaming-nine/steam.patch 
patch -p1 < ../wine-gaming-nine/wbemprox_query_v2.patch 
patch -p1 -R < ../wine-gaming-nine/keybindings.patch 

# Run autoconf so options for Gallium Nine will be taken into account by configure
autoconf

# Run configure
# Notice: gstreamer 1.6.3 is not part of my Linux system. I built it in /opt/gstreamer/1.6.3/
# That's the reason why I used PKG_CONFIG_PATH
PKG_CONFIG_PATH=/opt/gstreamer/1.6.3/lib/pkgconfig/ ./configure --prefix=/opt/wine/apps/Hounds_The_Last_Hope  \
--with-alsa --with-capi --with-cms --with-coreaudio --with-cups --with-curses --with-dbus --with-fontconfig \
--with-freetype --with-gettext --with-gettextpo --with-gphoto --with-glu --with-gnutls --with-gsm \
--with-gstreamer --with-gtk3 --without-hal --with-jpeg --with-ldap --with-mpg123 --with-netapi --with-openal \
--with-opencl --with-opengl --with-d3d9-nine --with-d3d9-nine-module=auto --with-d3d9-nine-headers-path=auto \
--with-osmesa --with-oss --with-pcap --with-png --with-pthread --with-pulse --with-sane --with-tiff \
--with-udev --with-v4l --with-xattr --with-xcomposite --with-xcursor --with-xcb --with-xinerama \
--with-xinput --with-xinput2 --with-xml --with-xrandr --with-xrender --with-xshape --with-xshm \
--with-xslt --with-xxf86vm --with-zlib --with-va --with-x

#Build
make -j4

# Install
make install