<div dir="ltr"><div dir="ltr">Some useful info on debugging GL over SSH <div><a href="https://www.scm.com/doc/Installation/Remote_GUI.html">Using the GUI on a remote machine — Installation 2020 documentation (scm.com)</a><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 22, 2021 at 7:48 AM Paul Buxton <<a href="mailto:paulbuxton.mail@googlemail.com">paulbuxton.mail@googlemail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">So Subsurface does work across X. <div>I think (if memory serves) you may need to set the environment variable.</div><div><pre style="box-sizing:border-box;font-family:Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border:1px solid rgb(225,228,229);color:rgb(64,64,64);word-break:initial;padding:12px;overflow:auto;margin-top:0px;margin-bottom:0px;line-height:1.5"><span style="box-sizing:border-box;color:rgb(51,51,51)">export</span> <span style="box-sizing:border-box;color:rgb(51,51,51)">LIBGL_ALWAYS_INDIRECT</span><span style="box-sizing:border-box;font-weight:bold">=</span><span style="box-sizing:border-box;color:rgb(0,153,153)">1</span></pre></div></div></div><br><div class="gmail_quote"><div class="gmail_attr">Althought I havent tried for sometime.</div><div dir="ltr" class="gmail_attr"><br></div><div dir="ltr" class="gmail_attr"><br></div><div dir="ltr" class="gmail_attr">On Mon, Mar 22, 2021 at 4:32 AM Mark Stiebel via subsurface <<a href="mailto:subsurface@subsurface-divelog.org" target="_blank">subsurface@subsurface-divelog.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div id="gmail-m_280130981919098883m_7937401744365269743gmail-m_5998060539211891787x2b556243281b420"><blockquote cite="http://385665E3-E552-48AE-9FA3-1BD74811DC05@hohndel.org" type="cite"><div><blockquote type="cite"><div><div style="font-family:"Segoe UI";font-size:16px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">I have a headless Debian Buster server as well as my Windows box. Given your comment below, I thought I'd first try to build native Linux, but have already come to a hurdle! Not having used Qt either adds a bit more to the learning curve. But nothing is insurmountable, even for an old dog :)</div><div style="font-family:"Segoe UI";font-size:16px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><br></div><div style="font-family:"Segoe UI";font-size:16px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div style="margin-left:1em;margin-right:1em;border-left:5px solid rgb(235,235,235);padding-left:0.3em">~/src/subsurface/build$ ./subsurface<br>QOpenGLFunctions created with non-current context<br>ASSERT: "QOpenGLFunctions::isInitialized(d_ptr)" in file /usr/include/x86_64-linux-gnu/qt5/QtGui/qopenglfunctions.h, line 886<br>Aborted<br>~/src/subsurface/build$</div></div></div></blockquote><div><br></div>So Subsurface can easily be BUILT on a headless Debian box - but then for running it, you need some way to display the screen, right?</div><div>We do actually have a headless version that is intended to be used on Raspberry Pi or other small systems simply as a downloader, but that's likely not the direction you are looking for.</div><div>So what you built above, is a native Linux app that will run on a Linux system that has an real (or virtual) display.</div></blockquote><div id="gmail-m_280130981919098883m_7937401744365269743gmail-m_5998060539211891787x2b556243281b420"></div><blockquote cite="http://385665E3-E552-48AE-9FA3-1BD74811DC05@hohndel.org" type="cite"><div><span>Well, I don't know. The turnaround time is really painful. It might be more fun to build under Linux. Where / how are you running this headless Debian system? Is this a VM under HyperV? Or is there a way you could install a VM with a desktop Linux somewhere? That will really make the learning curve so much less steep...</span></div></blockquote><div id="gmail-m_280130981919098883m_7937401744365269743gmail-m_5998060539211891787x63c5ca0f01ad47b8af4ad1f76e21a416"><div id="gmail-m_280130981919098883m_7937401744365269743gmail-m_5998060539211891787x2b556243281b420" style="background-color:rgba(0,0,0,0)">I should have articulated more clearly ..  it is a physical PC running Debian Buster that I use for a few services (mostly web based), and I usually just SSH into it for admin. I do have VcXsrv on my Windows box so when required can run X clients. I compiled subsurface, which appeared to complete with only a few type conversion warnings, but executing it from within an xterm gave me the OpenGL error.  It may very well be an issue with VcXsrv not playing nice with OpenGL.</div><div id="gmail-m_280130981919098883m_7937401744365269743gmail-m_5998060539211891787x2b556243281b420" style="background-color:rgba(0,0,0,0)"><br></div><div id="gmail-m_280130981919098883m_7937401744365269743gmail-m_5998060539211891787x2b556243281b420" style="background-color:rgba(0,0,0,0)">I could install a Fedora or Ubuntu desktop VM to eliminate VcXsrv as a culprit.</div><div id="gmail-m_280130981919098883m_7937401744365269743gmail-m_5998060539211891787x2b556243281b420" style="background-color:rgba(0,0,0,0)"><br></div><div id="gmail-m_280130981919098883m_7937401744365269743gmail-m_5998060539211891787x2b556243281b420" style="background-color:rgba(0,0,0,0)">Mark.</div><div id="gmail-m_280130981919098883m_7937401744365269743gmail-m_5998060539211891787x2b556243281b420" style="background-color:rgba(0,0,0,0)"><br></div><div id="gmail-m_280130981919098883m_7937401744365269743gmail-m_5998060539211891787x2b556243281b420" style="background-color:rgba(0,0,0,0)"><br></div></div></div>
</div>_______________________________________________<br>
subsurface mailing list<br>
<a href="mailto:subsurface@subsurface-divelog.org" target="_blank">subsurface@subsurface-divelog.org</a><br>
<a href="http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface" rel="noreferrer" target="_blank">http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface</a><br>
</blockquote></div></div>
</blockquote></div>