Reputation: 21
I would like to compile the Linux-based mail client, Geary, for my Windows computer.
I'm wondering if I could compile it using a program such as MonoDevelop on my Linux machine with the target being Windows, or if I'll have to use cygwin or mingw on my Windows machine.
Thanks
Upvotes: 2
Views: 3060
Reputation: 131
Alternatively to compiling, you can run Geary on Windows 10 via the WSL. This question here lead to give it a try. It can be done, but requires many steps and it doesn’t work very well for the time being.
https://heracl.es/ephemera/2018/08/08/geary/
Upvotes: 0
Reputation: 1
Do you really need to compile it? If you have windows 10, you can run a linux environment, for instance ubuntu. Then Geary runs. I can confirm, as I have it running NOW.
There are several tutorials on how to get Ubuntu running in the WSL on Win10.
Upvotes: -3
Reputation: 7153
You can cross compile on Linux to Windows. There is a MinGW build for Linux. Use valac -C
to produce C sources then i586-mingw32msvc-gcc
to compile the sources and link against Windows DLLs of the libraries needed. Vala determines includes using pkg-config
which will pick up compilation arguments from the host system. You can override this by setting PKGCONFIG_PATH
to the directories where your Windows libraries' .pc
files live.
Upvotes: 4