Install MonoGame 3.7.1 on Linux Mint 19.2 Tina Cinnamon

  1. I checked with wine --version and I have installed version wine-4.0.3
  2. I have installed winetricks following https://wiki.winehq.org/Winetricks#What_is_winetricks.3F:
    wintricks --version -> 20180217 - sha256sum: 1b156c616174f41df79d72a90c52eb2b110c63a6e8ecb865d303a8f9f0908924
    Edit: I actually made a mistake here. I previously had installed winetricks from the repository with sudo apt install winetricks which will give you the way to old version I thought I used above (20180217). Following the link above and executing the commands downloads a newer version 20191224-next - sha256sum: 3a11b9c07e2d7f5b6c21a5e7ef35c70cbc9344bd9a8e068d74b34793dfee6484! Make sure you run this version by using the cd command to navigate to the download folder and executing ./winetricks (not winetricks!) so that the downloaded version will start. After that you will find the options you need to create a new wine bottle / wine prefix through the winetricks GUI (not so with the old version!). Hope this helps others not fiddling around forever like I did! ^^
    Edit: I also found a good answer on how to get the latest version of winetricks:
    Check which is the current up to date version with this one liner:
    curl --silent --show-error \ https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks --stderr - \ | grep ^WINETRICKS_VERSION | cut -d '=' -f 2
    Then after that check the version you have installed with winetricks --version. If the upstream version is newer and you want the newest one start by uninstall winetricks first with sudo apt-get remove winetricks. Then after that execute the following 3 commands
wget  https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod +x winetricks 
sudo mv -v winetricks /usr/local/bin
  1. I already have the dotnet framework installed, so skipping the installation of wine-mono here:
    dotnet --version -> 3.1.200
    Edit: But also not sure where to install this and where I get wine-mono from if I had not installed dotnet? Is this available through winetricks? Do I need to install it with wine to the wine prefix I made with winetricks?
  2. I started wintricks and in the GUI selected to install a DLL or component. Then checked to install d3dcompiler_42, d3dcompiler_43 and d3dcompiler_47. Everything was skipped because all were already installed?!
    Edit: If you do not find the option to install these in winetricks maybe you are using an older version of winetricks like I did, see above and make sure you run an up to date version of winetricks. So just start the right version (see above) of winetricks and create a 64 bit wine bottle / wine prefix. After that the GUI should let you choose the just created 64 bit wine bottle / prefix and should show the selected wine bottle / prefix as window title / caption. After that just click on install component or DLL. Choose the DLLs as stated above.
  3. I want to install MonoGame371 for now. I downloaded the Visual Studio version https://github.com/MonoGame/MonoGame/releases/download/v3.7.1/MonoGameSetup.exe of MonoGame371 from MonoGame 3.7.1 Release here. I tried installing it with WINEPREFIX=$HOME/.local/share/wineprefixes/wine-64-mg WINEARCH=win64 wine MonoGameSetup371.exe. The architecture (32 or 64 bit) of the wine prefix is defined when setting the wine prefix up with winetricks! So make sure you use 64 bit when creating it there! How do I know which wine prefix it uses? I did it by just looking inside the wine prefix created with wine and I verified it used this one because I had the MonoGame installation in there. So seems to work to pass the WINEPREFIX variable like in the command above?!
  4. I found the files 2MGFX.exe and MGCB.exe installed in the folder ~/.local/share/wineprefixes/wine-64-mg/drive_c/Program Files (x86)/MSBuild/MonoGame/v3.0/Tools (here wine-64-mg was the name I chose for the 64 bit wine prefix / bottle in winetricks! Change the name to your wine prefix!). How to run the tools now? Just run the tools from bash with wine ./MGCB.exe and wine ./2MGFX.exe from bash? Running the tools like this gives me a message The MonoGame content tools only work on a 64bit OS.. Just found the solution I think. The tools need to be run like this wine64 ./MGCB.exe and wine64 ./2MGFX.exe which seems to work…?
    What is the recommended work flow for the tools to compile effects? What are the commands to compile one effect with the tools? And on the MonoGame side, I would then just load a compiled effect by using Content.load<effect>("effect.xnb")?
    Edit: Still unclear what to do at this point… More advice on how to do this would be nice :slight_smile: