<div dir="ltr">Hi Ken,<div>By the way, I'm not sure if --offscreen still works; </div><div>this is an experimental feature that I disabled by default some time ago since it was causing issues on Nvidia cards</div><div>and I haven't tried it again since we upgraded to GLSL. If you don't have freeglut, a much better option than</div><div>offscreen rendering is to use the new WebGL support (use the command line option -fhtml). You won't even </div><div>need the glew library for that, just the glm header files.</div><div><br></div><div>-- John</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 9, 2019 at 4:27 PM Ken Brown <<a href="mailto:kbrow1i@gmail.com">kbrow1i@gmail.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">Hi John,<br>
<br>
Thanks for taking a look. Just to be clear, for several years I've been <br>
building asymptote for the Cygwin distribution by configuring with <br>
'--enable-gc=system --enable-offscreen <br>
--with-latex=/usr/share/texmf-dist/tex/latex <br>
--with-context=/usr/share/texmf-dist/tex/context/third'. The corresponding link <br>
command line contained '-lOSMesa -lGLEW -lglut -lGL -lfftw3 -ltirpc -lreadline <br>
-lrt -lsigsegv -lz -lm -L/usr/lib -lgc -lncurses -lgsl -lgslcblas', and the <br>
build did not use the Win32 API.<br>
<br>
This worked until the commit that removed the glew stuff from <a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> and <br>
added the glew.c source, which caused the build to fail. Things got worse with <br>
the commit I cited in my first email, which caused the build to fail for a <br>
different reason (because -lfreeglut doesn't exist in the standard Cygwin <br>
distribution), and which also caused the build to stop using the POSIX API <br>
(e.g., for paths).<br>
<br>
Thanks again for looking at this.<br>
<br>
Ken<br>
<br>
On 10/9/2019 4:53 PM, John Bowman wrote:<br>
> Hi Ken,<br>
> Actually, we have always used the win32api, not the X11 headers. All I did was <br>
> simplify the build process<br>
> to make it easier for others, avoiding the need to move /usr/include/GL out of <br>
> the way.<br>
> I'll look at your patch to see if there is a way to compile against X11; I don't <br>
> have X11 installed in cygwin so it may take some work.<br>
> <br>
> Re: your glew additions: TeXLive has specifically requested that glew be <br>
> explicitly compiled in, using the included glew.c source<br>
> instead of the GLEW library.<br>
> <br>
> -- John<br>
> <br>
> On Wed, Oct 9, 2019 at 1:46 PM Ken Brown <<a href="mailto:kbrow1i@gmail.com" target="_blank">kbrow1i@gmail.com</a> <br>
> <mailto:<a href="mailto:kbrow1i@gmail.com" target="_blank">kbrow1i@gmail.com</a>>> wrote:<br>
> <br>
> On 10/6/2019 4:04 PM, Karl Berry wrote:<br>
> > John (Bowman) has made more efforts to ease the asymptote build. The<br>
> > current release (2.56) is in the TeX Live source tree now. If you have a<br>
> > chance, please try it. (But don't commit new binaries anywhere -- we<br>
> > won't update the released TL until next year.) --thanks, karl.<br>
> <br>
> John,<br>
> <br>
> Commit 05f68ab80e7caa521c967b32ba672fa58bcaae3c in the asymptote git repo<br>
> changed the Cygwin build to use the Win32 API instead of the POSIX API. I<br>
> assume this was done for builds that use Cygwin as a tool for building an<br>
> MS-Windows asymptote, but it breaks the ordinary Cygwin build (both for the<br>
> Cygwin distribution and for native TeX Live).<br>
> <br>
> Can you make the two builds co-exist again? I was able to do the ordinary<br>
> Cygwin build by using the attached patch, but it probably breaks the other<br>
> use case.<br>
> <br>
> Ken<br>
> <br>
<br>
</blockquote></div>