Wine: Difference between revisions

From wikinotes
 
No edit summary
Line 5: Line 5:
As a user-friendly alternative to managing wine directly (managing multiple wine versions, prefixes etc)
As a user-friendly alternative to managing wine directly (managing multiple wine versions, prefixes etc)
a program called [[playonlinux]] was created to wrap around it. It is very convenient.
a program called [[playonlinux]] was created to wrap around it. It is very convenient.
= Documentation =
<blockquote>
{| class="wikitable"
|-
| official docs: performance || https://wiki.winehq.org/Performance
|-
|}
</blockquote><!-- Documentation -->


= Install =
= Install =
Line 13: Line 22:
Installing wine from the repo
Installing wine from the repo
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
packer -S wine  
packer -S wine
cower -d lib32-libwbclient
cower -d lib32-libwbclient
</syntaxhighlight>
</syntaxhighlight>
Line 27: Line 36:
make depends
make depends
make install
make install
</syntaxhighlight>  
</syntaxhighlight>


{{ WARNING |
{{ WARNING |
WoW64 support in wine is still being ironed out. Stick with  
WoW64 support in wine is still being ironed out. Stick with
separate 32 and 64 bit prefixes.
separate 32 and 64 bit prefixes.
}}
}}
Line 76: Line 85:
WINEARCH=win64 WINEPREFIX=/home/will/.wine/x64 winecfg
WINEARCH=win64 WINEPREFIX=/home/will/.wine/x64 winecfg
WINEARCH=win32 WINEPREFIX=/home/will/.wine/x86 winecfg
WINEARCH=win32 WINEPREFIX=/home/will/.wine/x86 winecfg
 
## Running Wine Programs with a particular Wine Prefix
## Running Wine Programs with a particular Wine Prefix
export WINEPREFIX="<path to a writable folder on your home directory>"
export WINEPREFIX="<path to a writable folder on your home directory>"

Revision as of 03:42, 26 January 2022

wine is a program that converts win32 executables into programs that can run natively on *nix systems. This is very awesome, and enables you to use software that would otherwise be unavailable to you (such as MS office, games, etc).

As a user-friendly alternative to managing wine directly (managing multiple wine versions, prefixes etc) a program called playonlinux was created to wrap around it. It is very convenient.

Documentation

official docs: performance https://wiki.winehq.org/Performance

Install

Archlinux

Installing wine from the repo

packer -S wine
cower -d lib32-libwbclient

Compiling the most recent version of wine.

pacman -S gcc-multilib

mkdir ~/.wine
git clone git://source.winehq.org/git/wine.git wine-git
configure
make
make depends
make install


WARNING:

WoW64 support in wine is still being ironed out. Stick with separate 32 and 64 bit prefixes.


Usage

Running Commands

env WINEPREFIX=/home/will/.wine/office    wine    /path/to/office.exe
env WINEPREFIX=/home/will/.wine/office    msiexec /path/to/office.msi

env WINEPREFIX=/home/will/.wine/office    wineconsole cmd  # opens cmd.exe, then run your .bat or .cmd scripts

Cross Compilation

Firstly, use mingw if you can. It is supported much more natively than msvc under linux.

See https://hackernoon.com/a-c-hello-world-and-a-glass-of-wine-oh-my-263434c0b8ad

Configuration

Prefixes

Wine allows you to create separate containers for wine installations. (each representing a different windows system). Each one of these containers is called a wine prefix. You are encouraged to create a separate wine prefix for each program.

## Creating a wine prefix
##
## do not create the directories you want for your wine setup, let winecfg do that for you.
WINEARCH=win64 WINEPREFIX=/home/will/.wine/x64 winecfg
WINEARCH=win32 WINEPREFIX=/home/will/.wine/x86 winecfg

## Running Wine Programs with a particular Wine Prefix
export WINEPREFIX="<path to a writable folder on your home directory>"
export WINEARCH="win32"
wine /path/to/office_cd/setup.exe

Tools

winetricks
wine mono

Examples

wine microsoft office
wine zbrush 4r4
wine photoshop CS6