| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| bsd:notes:wine [2026/03/06 23:37] – [Environment Variables] winetricks did "winecfg -v winxp64" Sean Rhone | bsd:notes:wine [2026/10/14 01:29] (current) – [TODO] Sean Rhone |
|---|
| | ====== Install ====== |
| | |
| | * https://docs.freebsd.org/en/books/handbook/wine/#installing-wine-on-freebsd |
| | |
| | ===== 16.0 ===== |
| | |
| | * [[bsd:freebsd_16.0_xfce|16.0 (Xfce)]] |
| | * New WoW64 (''wow64'') |
| | * ''devel'' |
| | * https://www.freshports.org/emulators/wine-devel |
| | |
| | * ''cdrtools'' provides ''isoinfo'' |
| | |
| | su - |
| | |
| | pkg install wine-devel wine-gecko-devel wine-mono-devel winetricks icoutils cdrtools |
| | |
| | ==== USER_LDT ==== |
| | |
| | * ''machdep.max_ldt_segment=2048'' in ''loader.conf'' |
| | |
| | su - |
| | |
| | cat '/boot/loader.conf' | grep 'machdep.max_ldt_segment="2048"' || echo 'machdep.max_ldt_segment="2048"' | tee -a '/boot/loader.conf' > '/dev/null' |
| | |
| | sysctl 'machdep.max_ldt_segment' |
| | |
| | ===== 15.1 ===== |
| | |
| | * [[bsd:freebsd_15.1_xfce|15.1 (Xfce)]] |
| | * Old WoW64 (''win32''/''win64'') |
| | * https://www.freshports.org/emulators/wine |
| | |
| | su - |
| | |
| | pkg install wine wine-gecko wine-mono winetricks icoutils |
| | |
| | ==== lib32 ==== |
| | |
| | * TODO: Differences between ''lib32'' install-time, [[https://download.freebsd.org/releases/amd64/15.1-RELEASE/lib32.txz|lib32.txz]], or below set |
| | |
| | FreeBSD-set-lib32 |
| | |
| | ls '/usr/lib32' |
| | |
| | ==== 32-bit pkgs ==== |
| | |
| | * :!: Done from regular user and **not** ''root'' |
| | * :?: 2026/07/05: No ''gstreamer1-libav'' |
| | |
| | exit |
| | |
| | '/usr/local/share/wine/pkg32.sh' --old -o 'ASSUME_ALWAYS_YES=YES' update -f && '/usr/local/share/wine/pkg32.sh' --old upgrade |
| | |
| | '/usr/local/share/wine/pkg32.sh' --old install -r FreeBSD-ports wine mesa-dri mesa-libs gstreamer1-plugins-good gstreamer1-plugins-ugly libressl |
| | |
| | '/usr/local/share/wine/pkg32.sh' --old autoremove && '/usr/local/share/wine/pkg32.sh' --old clean -a -q -y |
| | |
| | ==== Update Script ==== |
| | |
| | <code> |
| | '/usr/bin/su' $USER -c "'/usr/local/share/wine/pkg32.sh' --old -o 'ASSUME_ALWAYS_YES=YES' update -f" |
| | '/usr/bin/su' $USER -c "'/usr/local/share/wine/pkg32.sh' --old upgrade" |
| | '/usr/bin/su' $USER -c "'/usr/local/share/wine/pkg32.sh' --old autoremove" |
| | '/usr/bin/su' $USER -c "'/usr/local/share/wine/pkg32.sh' --old clean -a -q -y"</code> |
| | |
| ====== Tweaks ====== | ====== Tweaks ====== |
| |
| su - | su - |
| | |
| | mkdir -p '/usr/local/etc/profile.d' && echo "export WINEDEBUG='-all'" | tee '/usr/local/etc/profile.d/wine-tweaks.sh' > '/dev/null' |
| |
| ee '/usr/local/etc/profile.d/wine-tweaks.sh' | ee '/usr/local/etc/profile.d/wine-tweaks.sh' |
| # Logging | # Logging |
| export WINEDEBUG='-all' | export WINEDEBUG='-all' |
| | |
| | # DXVK |
| | export DXVK_LOG_LEVEL='none' |
| | export DXVK_SHADER_CACHE='0' |
| | export DXVK_STATE_CACHE='0' |
| | |
| | # VKD3D |
| export VKD3D_DEBUG='none' | export VKD3D_DEBUG='none' |
| export VKD3D_SHADER_DEBUG='none' | export VKD3D_SHADER_DEBUG='none' |
| export DXVK_LOG_LEVEL='none' | |
| |
| # End</code> | # End</code> |
| ====== Resources ====== | ====== Resources ====== |
| |
| ===== SDL TODO ===== | ===== TODO ===== |
| |
| * https://gitlab.winehq.org/wine/wine/-/wikis/Sound#sdl-applications | * https://gitlab.winehq.org/wine/wine/-/wikis/Sound#sdl-applications |
| * https://wiki.archlinux.org/title/FluidSynth#No_MIDI_sound_/_Not_the_lowest_or_first_MIDI_device | * https://wiki.archlinux.org/title/FluidSynth#No_MIDI_sound_/_Not_the_lowest_or_first_MIDI_device |
| * https://www.freshports.org/audio/alsa-utils (''aconnect'') | * https://www.freshports.org/audio/alsa-utils (''aconnect'') |
| | * https://cgit.freebsd.org/ports/commit/?id=36f7f11c6c75750e8f0ba60627f2ae38a3ce134b (''allaudio'' = Pulse) |
| | * :?: WC3 main menu and WoW WotLK installer make good audio tests (static/pops) |
| | |
| | <code> |
| | WINEPREFIX=~/'.wine/Diablo III' wine REG ADD 'HKEY_CURRENT_USER\Software\Wine\WineDbg' /v 'ShowCrashDialog' /t 'REG_DWORD' /d '0' /f |
| | |
| | HKEY_CURRENT_USER\Software\Wine\WineDbg</code> |
| |
| ===== Environment Variables ===== | ===== Environment Variables ===== |
| |
| * Mesa: https://docs.mesa3d.org/envvars.html | * Mesa: https://docs.mesa3d.org/envvars.html |
| | * ANV (Intel): https://docs.mesa3d.org/drivers/anv.html#debugging-tips |
| * VKD3D: https://github.com/HansKristian-Work/vkd3d-proton#environment-variables | * VKD3D: https://github.com/HansKristian-Work/vkd3d-proton#environment-variables |
| * NVIDIA: https://download.nvidia.com/XFree86/Linux-x86_64/560.35.03/README/openglenvvariables.html | * NVIDIA: https://download.nvidia.com/XFree86/Linux-x86_64/560.35.03/README/openglenvvariables.html |
| * https://github.com/Winetricks/winetricks/blob/master/src/winetricks | * https://github.com/Winetricks/winetricks/blob/master/src/winetricks |
| * [[linux;notes;wine_wayland_vulkan_wow_335]] (''renderer=vulkan'', ''graphics=wayland'') | * [[linux;notes;wine_wayland_vulkan_wow_335]] (''renderer=vulkan'', ''graphics=wayland'') |
| | |
| | ===== ISO Names ===== |
| | |
| | * ''x'' is path to ''.iso'' |
| | |
| | isoinfo -d -i x |
| | |
| | isoinfo -d -i ~/'Downloads/Warcraft III/Warcraft 3 Reign of Chaos.iso' | grep 'Volume id' |
| | |
| | ==== pkg ==== |
| | |
| | * https://www.freshports.org/sysutils/cdrtools/ |
| | |
| | su - |
| | |
| | pkg install 'cdrtools' |
| |