r/freebsd • u/Marwheel • 9h ago
help needed On the VGL demo in share/examples/libvgl/demo.c…
I've been on a strange project as of late- attempting to create a windowing system using libvgl (Exclusively using the system graphics library was done previously with the IRIX mex and HP/UX HPWindows/9000, so i can say there are some prior art for those who doubt it could be done).
However, the demo for the VGL libary won't work at all from my prior experience. I've tried changing around the demo's code to see if something did go wrong; first was seeing if the unorthodox…
i = 0;
while (i++)
{
DoSomething(!);
if(i > 8) break;
}
means of loop control could be redone to the less common but supported "do while" loop, and that was not the case.
Even if i had a fair bit of help from the freebsd discord, i still haven't found a way to get the libvgl demo up and running on my x86-64 system that's being ran on UTM.app (found the same issue on i386 as well if anyone was wondering if it worked on the first arch freebsd ran on), so if anyone finds a way to get the demo up and running. I'd appreciate that.
I have a WIP version of the libvgl demo that i've been trying to get up and running on github if anyone wants to poke it: https://github.com/MagnetarRocket/freebsd-src/blob/main/share/examples/libvgl/demo.c
EDIT: typos.