Error with OSMesa LDView


Error with OSMesa LDView
#1
Travis,

I updated the version of LDView on my dev server to 4.7 (Built from source using the 4.7 tag on the GitHub repo). 

4.6 (also built from source using the 4.6 tag) works without error. 

4.7 gives the following error:
Quote:OSMesa not working!
viewport: 0, 0, 0, 0

I verified that the server has libosmesa6 and libglu1-mesa installed. Apparently 4.7 added some other dependency that I can't figure out.

The dev server is Debian 13.
Reply
RE: Error with OSMesa LDView
#2
(2026-06-05, 18:14)Orion Pobursky Wrote: Travis,

I updated the version of LDView on my dev server to 4.7 (Built from source using the 4.7 tag on the GitHub repo). 

4.6 (also built from source using the 4.6 tag) works without error. 

4.7 gives the following error:

I verified that the server has libosmesa6 and libglu1-mesa installed. Apparently 4.7 added some other dependency that I can't figure out.

The dev server is Debian 13.

I will investigate.
Reply
RE: Error with OSMesa LDView
#3
(2026-06-05, 18:22)Travis Cobbs Wrote: I will investigate.

See if adding -IgnoreEGL=1 to the command line fixes the problem.
Reply
RE: Error with OSMesa LDView
#4
I tried IgnoreEGL with both the ini file and commandline.  Still have the same error.
Reply
RE: Error with OSMesa LDView
#5
I did a build on my WSL Ubuntu image (24.04).

If I run without input (just 'ldview') I get the following:
Quote:libEGL warning: DRI3 error: Could not get DRI3 device
libEGL warning: Ensure your X server supports DRI3 to get accelerated rendering
EGL configCount: 1

If I run and specify a valid file path or if I run with -IgnoreEGL=1 (with or without a valid file path), I get the same error as Debian 13.
Reply
RE: Error with OSMesa LDView
#6
(2026-06-06, 4:42)Orion Pobursky Wrote: I did a build on my WSL Ubuntu image (24.04).

If I run without input (just 'ldview') I get the following:

If I run and specify a valid file path or if I run with -IgnoreEGL=1 (with or without a valid file path), I get the same error as Debian 13.

I think I tracked down the problem. The problem is that when EGL support was added, the OSMesa library moved in the link order, and that is causing it not to work. The solution is to put -lOSMesa before -lGLU like it was before. I have asked Peter (who did that change) to fix the Makefile properly, and will let you know once that has been done.
Reply
RE: Error with OSMesa LDView
#7
(8 hours ago)Travis Cobbs Wrote: I think I tracked down the problem. The problem is that when EGL support was added, the OSMesa library moved in the link order, and that is causing it not to work. The solution is to put -lOSMesa before -lGLU like it was before. I have asked Peter (who did that change) to fix the Makefile properly, and will let you know once that has been done.

Awesome! Thanks, as always, for the effort.  I really appreciate it.
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 5 Guest(s)