Skip to content

Instantly share code, notes, and snippets.

@timlinux
Last active July 28, 2022 21:10
Show Gist options
  • Save timlinux/8f5e76f3f5d7c10042356e0aa1da7676 to your computer and use it in GitHub Desktop.
Save timlinux/8f5e76f3f5d7c10042356e0aa1da7676 to your computer and use it in GitHub Desktop.
Running QGIS Windows Builds on Linux using Wine

I found it is difficult to build older versions of QGIS on linux due to the shifting dependencies. Or sometimes you just want to test an issue with the windows build but you don't want to use a VM etc. to test. So I went on a quick diversion and installed QGIS from Wine. In this case I wanted to test something on QGIS circa v 3.0.x:

sudo apt install wine
wget -o https://qgis.org/downloads/QGIS-OSGeo4W-3.0.1-1-Setup-x86_64.exe
wine QGIS-OSGeo4W-3.0.1-1-Setup-x86_64.exe 

You can substitute the installer URL with any of the builds available at https://qgis.org/downloads/. Once you have downloaded the installer, press next to work your way through the installer steps. Now make a few small tweaks so you can launch the app.

cd ${HOME}/.wine/drive_c/Program\ Files/QGIS\ 3.0/bin
cp qgis.bat.tmpl qgis.bat
wine explorer

image

Now navigate to C:\Program Files\QGIS 3.0\bin and double click on QGIS.bat

image

@fredsarlo
Copy link

I'm in trouble with it. Could you help me?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment