Re: Cross-compiling [Win->Lin]

2018-08-30 Thread wizzardx
Also worth considering - compiling nim to C source code, which you then build later under linux. Also if cross-compiling binaries to linux (eg: docker), make sure you use the exact same glibc/etc, otherwise dynamic lib link failures when you copy the binary over. (this is one thing that Go lan

Re: Cross-compiling [Win->Lin]

2018-08-20 Thread euant
The easiest solution I've found for building for Linux on WIndows is using Docker. You can use one of the [official Nim Docker](https://hub.docker.com/r/nimlang/nim/) images to compile your program and create a Linux executable.

Re: Cross-compiling [Win->Lin]

2018-08-17 Thread Aiesha_Nazarothi
> you'll need a cross compiling toolchain. afaik mingw can't compile from > windows to linux, although it works the other way around. Yes, I found only cross-compilers for Linux. No luck with MinGW it seems ?

Re: Cross-compiling [Win->Lin]

2018-08-17 Thread emekoi
you'll need a cross compiling toolchain. afaik mingw can't compile from windows to linux, although it works the other way around.

Re: Cross-compiling [Win->Lin]

2018-08-17 Thread juancarlospaco
You answer your own question. Get full mingw I think.

Cross-compiling [Win->Lin]

2018-08-17 Thread Aiesha_Nazarothi
Recently I tried to build Linux distributive for my recent project, yet found compiler stuck on following error: \nimcache\stdlib_system.c:11:22: fatal error: sys/mman.h: No such file or directory #include Run Of course it's not available on Windows, yet what should I do