#
#asahi · 2024-05-26 10:44
j`eythe folder of the .pc I meant
#asahi · 2024-05-26 10:44
tsujphmm okay, I was typing that I also tried `PKG_CONFIG_PATH=$(pkg-config --variable pc_path pkg-config) ...` which also fails, but I'll try the direct path to the .pc
#asahi · 2024-05-26 10:43
j`eytry PKG_CONFIG_PATH=/path/to/virgl.pc pkg-config etc
#asahi · 2024-05-26 10:43
tsujpyeah `pkg-config --libs --clfags virglrenderer` fails
#asahi · 2024-05-26 10:42
j`eyyou can run pkg-config manually to check
#asahi · 2024-05-26 10:42
j`eyif so, PKG_CONFIG_PATH=/path/ oh
#asahi · 2024-05-26 10:42
tsujpthere is, i've symlinked them to the default PKG_CONFIG_PATHs
#asahi · 2024-05-26 10:42
j`eycheck if there is a .pc file in your virgl build
#asahi · 2024-05-26 10:42
tsujpim guessing because i have not installed it via a dnf package but my own compiled one (since it needs to include patches that aren't upstream yet)
#asahi · 2024-05-26 10:41
j`eyohh
#asahi · 2024-05-26 10:41
tsujpit looks like `pkg-config` wont resolve virglrenderer's location
#asahi · 2024-05-26 10:40
j`eytsujp: you want -L right?
#asahi · 2024-05-26 10:40
tsujpman this makefile for libkrun really doesn't want to recognise virglrenderer's presence
#asahi · 2024-05-26 10:39
tsujpcheers, but i am still afraid of Nix and the time sink when doing _stuff_; at least with this endeavour now i learn more transferable skills and the like
#asahi · 2024-05-26 10:24
LarstiQ(fwiw https://github.com/nix-community/emacs-overlay looks like it provides HEAD)
#asahi · 2024-05-26 10:24
tsujp1. use it for something simple and it works, nice. 2. eventually need to change a thing and it breaks; try read docs and what not to understand 3. information not found, smash head into wall for 1 week 4. give up because of time wasted
#asahi · 2024-05-26 10:24
LarstiQwhat do you mean with having to restart emacs?
#asahi · 2024-05-26 10:24
tsujpwhen Nix works it works really well, but the errors are unreadable and the documentation is unreadable (far too verbose without explaining how to actually do stuff). Over I think 4 years ive tried to use Nix and it often goes like this:
#asahi · 2024-05-26 10:23
tsujpplus then I replace things like emacs calling grep with say ripgrep so then it expands to installing that stuff too
#asahi · 2024-05-26 10:23
tsujpim building from emacs HEAD as it has some nice changes, and then there's the issue of installing emacs packages. It looks like there's no good way to do it via Nix that doesn't require restarting emacs every time so i'll stick with straight.el
#asahi · 2024-05-26 10:22
LarstiQ`nix run nixpkgs\#emacs29-pgtk` is hermetic enough for me, but maybe need a little bit of Nix for git
#asahi · 2024-05-26 10:21
LarstiQmkay
#asahi · 2024-05-26 10:21
tsujphermetic emacs build which can be installed without polluting the host with the dependencies to build it, and in a reproducable way that doesnt involve using Nix (i find Nix to be unuseable as a language)
#asahi · 2024-05-26 10:20
LarstiQjust for fun? I don't quite understand why you need the microvm
#asahi · 2024-05-26 10:19
tsujpin a microVM with wayland composit forwarding from said microVM to the host, and with GPU acceleration
#asahi · 2024-05-26 10:19
LarstiQthe end goal is.. running emacs from git?
#asahi · 2024-05-26 10:15
tsujpjust trying to tell this libkrun Makefile where my compiled virglrenderer.so files are now, it doesn't seem to care about LD_LIBRARY_PATH so i might just... symlink them to /usr/include from where they are currently at /usr/local/include
#asahi · 2024-05-26 10:14
tsujpplus i want to somewhat understand what is going on
#asahi · 2024-05-26 10:14
tsujpim using no guide because i dont care about playing games on this so the 4k vs 16k and the x86_64 or x86 translation i do not need or want
#asahi · 2024-05-26 10:14
LarstiQtsujp: are you using https://www.reddit.com/r/AsahiLinux/comments/1c5232t/guide_to_setting_up_krunvm_with_opengl_46_fexemu/ or some other guide for what to do?
#asahi · 2024-05-26 10:01
tsujpand need to use the Makefile instead
#asahi · 2024-05-26 09:59
tsujpls
#asahi · 2024-05-26 09:55
tsujpinclude_bytes macro, is the `glibc-static` package not correct anymore?
#asahi · 2024-05-26 09:54
tsujphmm im getting a compile error for something completely unrelated, it looks like rutabaga_gfx compiles, as does libkrun (when doing `cargo build --workspace --features gpu`) but it failes to compile `devices`
#asahi · 2024-05-26 09:14
tsujplibkrunfw built from HEAD with virtio support, now for libkrun
#asahi · 2024-05-26 09:08
tsujpoh vram derp x2
#asahi · 2024-05-26 09:07
alicesince it's unified
#asahi · 2024-05-26 09:07
alicenot virt
#asahi · 2024-05-26 09:07
alicei mean vram like.. also actual gpu memory in that too
#asahi · 2024-05-26 09:04
j`eynot a linux thing overall, but the fact that GPU/CPU share RAM on these machines
#asahi · 2024-05-26 09:01
tsujpresident - shared = 1.5gb real (estimate) and not 10 gb virtual
#asahi · 2024-05-26 09:00
tsujpoh derp, been a while since ive been on linux forgot about that
#asahi · 2024-05-26 08:56
aliceit includes vram
#asahi · 2024-05-26 08:53
tsujpon a seperate note firefox is using an INCREDIBLE amount of memory holy smokes
#asahi · 2024-05-26 08:46
j`eythat's a weird consequence!
#asahi · 2024-05-26 08:45
tsujpi tried LDFLAGS="-static" when invoking configure but it broke finding gcc when i did so
#asahi · 2024-05-26 08:45
tsujpit'd be nice if one could statically build emacs (although this would be cool for other non-game GUI applications also) but AFAIK static emacs builds don't work
#asahi · 2024-05-26 08:45
tsujpinstalling the libs after compilation is fine, it's the whole toolchain to compile in the first place i want to avoid
#asahi · 2024-05-26 08:44
j`eythat often works, for krun I imagine it should, but often you still at least need to insall some libs on the host
#asahi · 2024-05-26 08:37
tsujpalthough one thing i am trying to avoid is toolchain bloat on the host machine (from many different projects and programming languages) so im going to compile libkrun and libkrunfw in a working container with buildah and just copy the resulting libraries into the host machine?

plus ›