<div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Norbert,<div>Yes, you need libglm-dev and need to use CXXFLAGS=-std=c++11 (the default) not -ansi. I have simplified the signature of createShaderFile</div><div>in the attached patch. </div><div><br></div><div>You don't want to compile with --disable-gl (except for debugging compilation issues) but I did add the required conditional to support this again.</div><div>Let me know if there are any further issues.</div><div><br></div><div>-- John</div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 27, 2019 at 6:16 PM Norbert Preining <<a href="mailto:preining@logic.at" target="_blank">preining@logic.at</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, hi all,<br>
<br>
it seems that the current asy is seriously broken ...<br>
<br>
On Thu, 28 Mar 2019, Johannes Hielscher wrote:<br>
> Yes, same here on aarch64-linux (Debian Stretch). I had to hand in the<br>
> libglm-dev package, but just to find this later on:<br>
..<br>
> So I needed to change the "CXXFLAGS=-ansi" to<br>
> "CXXFLAGS=-std=c++11" (from the “Special considerations for asymptote”<br>
<br>
Here on Debian/jessie, which I used for building all the other TL stuff<br>
and where c++11 *should* be supported, the same situation:<br>
- first I need to install libglm-dev on top of the rest of GL libs.<br>
- then adding CXXFLAGS=-std=c++11<br>
<br>
But in my case on jessie it still does not build:<br>
glrender.cc: In function 'void gl::initshader()':<br>
glrender.cc:1334:41: error: converting to 'std::unordered_set<std::basic_string<char> >' from initializer list would use explicit constructor 'std::unordered_set<_Value, _Hash, _Pred, _Alloc>::unordered_set(std::unordered_set<_Value, _Hash, _Pred, _Alloc>::size_type, const hasher&, const key_equal&, const allocator_type&) [with _Value = std::basic_string<char>; _Hash = std::hash<std::basic_string<char> >; _Pred = std::equal_to<std::basic_string<char> >; _Alloc = std::allocator<std::basic_string<char> >; std::unordered_set<_Value, _Hash, _Pred, _Alloc>::size_type = long unsigned int; std::unordered_set<_Value, _Hash, _Pred, _Alloc>::hasher = std::hash<std::basic_string<char> >; std::unordered_set<_Value, _Hash, _Pred, _Alloc>::key_equal = std::equal_to<std::basic_string<char> >; std::unordered_set<_Value, _Hash, _Pred, _Alloc>::allocator_type = std::allocator<std::basic_string<char> >]'<br>
Nmaterials);<br>
^<br>
<br>
and many many many others.<br>
<br>
<br>
Even with<br>
--disable-gl<br>
I still get<br>
drawpath3.cc:11:23: fatal error: glm/glm.hpp: No such file or directory<br>
#include <glm/glm.hpp><br>
^<br>
<br>
So I cannot build at all.<br>
<br>
John, could you please look into this mess and suggest a solution?<br>
<br>
Best<br>
<br>
Norbert<br>
<br>
--<br>
PREINING Norbert <a href="http://www.preining.info" rel="noreferrer" target="_blank">http://www.preining.info</a><br>
Accelia Inc. + JAIST + TeX Live + Debian Developer<br>
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13<br>
</blockquote></div>