Skip to content

Instantly share code, notes, and snippets.

@AGhost-7
Last active February 3, 2023 10:52
Show Gist options
  • Save AGhost-7/1a13a4a09d83f2c50f23cfba0e362cf0 to your computer and use it in GitHub Desktop.
Save AGhost-7/1a13a4a09d83f2c50f23cfba0e362cf0 to your computer and use it in GitHub Desktop.
How to compile and install wineasio on Ubuntu Xenial 64 bit. This is for Guitar Rig only. Only works with 32 bit...
# Get the dev files for wineasio
git clone git://git.code.sf.net/p/wineasio/code /tmp/wineasio
# Install jack server
sudo apt-get install jackd1 -y
# Going to be using playonlinux to manage the wine executables but I
# still need the development files to compile wineasio
sudo apt-get install playonlinux -y
# I need dev files for wine, but they're not available on the newer versions of
# ubuntu for wine 1.6.20
git clone git://source.winehq.org/git/wine.git /tmp/wine
cd /tmp/wine
git checkout wine-1.5.20
cp -R include ~/.PlayOnLinux/wine/linux-x86/1.5.20/include
# Dev files...
sudo apt-get install libc6-dev-i386 libjack-jackd2-dev -y
# Follow these steps (VERY IMPORTANT):
# - Install the application you want to run with playonlinux
# - Go to configure menu for the application you want to install
# - Go to Misc section and "open a shell".
# - Run all the commands below from that terminal.
# Fetch steinbergs asio SDK
curl -o /tmp/asio.zip http://www.steinberg.net/sdk_downloads/asiosdk2.3.zip
cd /tmp
unzip /tmp/asio.zip
cp ASIOSDK2.3/common/asio.h /tmp/wineasio/asio.h
# Then you need to edit the asio.h tweak script for compiling to 64 bit...
#cd /tmp/wineasio
#sed -i 's/#!\/bin\/sh/#1\/bin\/bash/' prepare_64bit_asio
# Then run what is in the wineasio readme
#./prepare_64bit_asio
make clean
# To get it to run properly under the wineprefix, I need to change the makefile
# to point to the guitar rig's wine directory
sed -i "s/^INCLUDE_PATH.\+//" /tmp/wineasio/Makefile
INCLUDE_PATH="-I. -I/usr/include -I/usr/include -I/usr/include/wine -I.usr/include/wine/windows -I$HOME/.PlayOnLinux/wine/linux-x86/1.5.20/include"
make # -f Makefile64
# Now you need to register the wineasio dll.
regsvr32 wineasio.dll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment