Dear all,
I couldn't find detailed information about how to cross-compile for windows on a Linux machine. Could someone please point me to a discussion/tutorial about this?
Namely I need to know the basic command (I know its something like nim --os:windows --cpu:amd64 --gcc.exe:...) and I would like to know where to download a windows compiler that can be used and how to install the compiler into the path.
Thanks!
Sincerely,
Zack
Crosscompile libs are on mingw-w64-gcc
(ArchLinux, but should have similar package name on other Distros) .
Nim installed using ChooseNim.
Depends on how friendly your Distro is towards crosscompile libs, but any decent Distro must have those.
I put a docker together to demonstrate my issue with cross compiling and the awesome community sent a PR (https://github.com/yatesco/docker-nim-dev-example/pull/1)
https://github.com/yatesco/docker-nim-dev-example demonstrates how to cross compile to Windows from Linux :-).