Open markpash opened 1 year ago
Hi, I can do this
I'm learning about how nix
works
Hi, I can do this I'm learning about how
nix
works
It might be better to try doing static and cross-compilation without nix first. If that works, I can help porting build scripts to nix.
What do you mean by cross-compile
which targets we need? Is there any restrictions on hos specification?
something like we want to compile windows executables on Linux
What do you mean by
cross-compile
which targets we need? Is there any restrictions on hos specification? something like we want to compile windows executables on Linux
So the idea would be that a amd64-linux machine could compile to produce a binary for arm64-linux.
Ok that is fairly easy as I have done it couple of times
I just have Mac M1 at home, I successfully compile amd64
Linux binary on arm64
Linux.
The process of cross compiling is not that straight forward because nekoray
has some assumptions and those make the compilation a bit complicated.
I will try to the same in nix
env
I just have Mac M1 at home, I successfully compile
amd64
Linux binary onarm64
Linux.The process of cross compiling is not that straight forward because
nekoray
has some assumptions and those make the compilation a bit complicated.I will try to the same in
nix
env
can you document those assumptions here? I'd love to know what is required and replicate it locally in a nix environment. Perhaps there's changes needed for upstream to make compilation easier.
I have created a markdown file I will upload it here https://gist.github.com/yazdan/11aed6b8a693628c2001bfc5d04d292d
Cross compiling on nix is far easier, I'm in the middle of it
Cross compiling is done but static linking of nekoray needs lots of work as it need updating the static packages of nix specially qt
Any updates on this?
Any updates on this?
sadly no. I think for apps like these that are hard to package as a single static binary, I should investigate making flatpaks.
This is a multi-step process