Hello, I've struggled for a few days to crosscompile tomenet client for windows on mnjaro linux. So I wrote down the instructions, maybe it will help somebody.
Edit: Tomenet needs SDL2 and SDL2_mixer now. I've updated the instructions. See viewtopic.php?p=7458#p7458.
Warning: Following instructions are valid only for tomenet version using SDL v1 (before 11.jul.2022 +- a day)
Build and run tomenet windows client on manjaro linux
=====================================================
Run tomenet under wine.
Install wine, wine-mono, lib32-libpulse packages, e.g. using pacman.
This will take some time.
For explanation, the package mingw-w64-libgnurx is for using regexp, mingw-w64-sdl is for SDL and all other are dependencies for building mingw-w64-sdl_mixer.
cd /tmp
git clone https://github.com/atomlong/mingw-w64-sdl_mixer.git
cd ./mingw-w64-sdl_mixer
makepkg -si
The mingw-w64-sdl_mixer package was not found in AUR database, we have to install it manually. Fortunately there was an existing github repository. The required dependencies were installed in 2.a.2.
Clone tomenet, build tomenet client executable and run it.
Congratulations, you figured out how me and C. Blue do most of the development work for the Windows client.
Btw, you should install SDL2 now. Looks like C. Blue decided to migrate to SDL2 just two days after you posted your instructions.
I have some old instructions on how to manually cross-compile SDL and SDL_mixer over here: https://muuttuja.org/tomenet/howto-install-sdl.txt. The gist is that you need to run configure with these parameters:
The mingw-w64-sdl2_mixer package we need is at least version 2.6, which is in the time of writing not in AUR. Luckily on github, there is precompiled archive for our mingw, so let's just use it and decompress the files directly without compiling. (Maybe we could done this with the SDL2 package too.)
Copy some required .dll files into tomenet under wine.