!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

397 Members
92 Servers

Load older messages


SenderMessageTime
6 Sep 2024
@k900:0upti.meK900Currently the answer is "you can't"13:42:10
@k900:0upti.meK900It needs some pretty invasive surgery13:42:20
@k900:0upti.meK900Definitely qtwebengine13:43:11
@k900:0upti.meK900The rest should be fixable with some, uh, less invasive surgery potentially13:43:22
@kamillaova:matrix.orgKamilla 'ovaokay , without qtwe, at least... does anyone have any ideas about qtwayland?13:50:29
@kamillaova:matrix.orgKamilla 'ova * okay, without qtwe, at least... does anyone have any ideas about qtwayland?13:50:33
@k900:0upti.meK900You'd have to go in and fix it, basically13:51:25
@k900:0upti.meK900cmake cross is fundamentally Very Weird13:51:30
@k900:0upti.meK900Qt should conceptually cross-compile but they have a weird somewhat custom process for it13:52:28
@k900:0upti.meK900And at least at some point in the past qtwayland just did not cross-compile at all13:52:53
@k900:0upti.meK900I'm not sure if they've fixed that13:52:56
@kamillaova:matrix.orgKamilla 'ova
In reply to @k900:0upti.me
You'd have to go in and fix it, basically
well, I'm basically trying to do this, but my progress has stopped at building buildPackages.qtquick3d (first monospaced block of my message above)
13:54:18
@k900:0upti.meK900Go in and fix it as in figure out what's going wrong and why and then fix it13:54:51
@k900:0upti.meK900If we knew a way to fix that we would have done that already13:55:14
@kamillaova:matrix.orgKamilla 'ova
In reply to @k900:0upti.me
I'm not sure if they've fixed that
I think, yes, because it somehow works on yocto
13:55:18
@k900:0upti.meK900(we as in Qt maintainers)13:55:18
@vramp:matrix.orgvramp joined the room.17:50:17
@vramp:matrix.orgvrampI am struggling with using the cross compilation nixpkgs in a nix shell for development. When I use the package for my architecture (x86 64 linux), my build tool (zig) sees the system libraries and headers. When I switch my shell to use the cross compiliation packages (aarch64 multiplatform), I have to explicitly find the store paths in my NIX_LDFLAGS and NIX_CFLAGS_COMPILE and add them, but then I can cross compile fine. Is there maybe some Arch-dependent path/env var convention of GCC that zig lacks? Is there an example of how to get the lib and header store paths in my shell.nix (like, to set them to environment variables) so that I can pass them to my build tool?18:07:15
@k900:0upti.meK900Our GCC is wrapped specifically to find things correctly18:07:41
@k900:0upti.meK900Your presumably-external zig probably isn't18:07:53
@vramp:matrix.orgvrampah, i am using an external zig binary at the moment, i can try with a zig from nixpkgs to see if there is some magic that someone has added to that recipe18:10:04
@curid:matrix.orgCuridis there some ultra-pure option that masks system libs?18:41:16
@k900:0upti.meK900What system libs?18:43:07
@curid:matrix.orgCurid Everything in /usr/that isn't provided by the shell 18:59:23
@curid:matrix.orgCurid * Everything in /usr/that isn't provided by the nix-shell 18:59:33
@k900:0upti.meK900Oh, on non-NixOS? No, not really19:00:16
@curid:matrix.orgCuridMaybe it'd enter a chroot and only symlink the nix-shell files19:00:26
@k900:0upti.meK900 But you could do --ignore-environment to at least remove things from PATH 19:00:27
@artturin:matrix.orgArtturin nix in fakechroot maybe 🤔 19:41:47
@artturin:matrix.orgArtturinThere's a way to enter the build sandbox but I can't remember what the program is19:45:52

Show newer messages


Back to Room ListRoom Version: 6