[tlbuild] asy2.48
John Bowman
bowman at ualberta.ca
Thu Mar 28 19:57:18 CET 2019
Hi Norbert,
Yes, you need libglm-dev and need to use CXXFLAGS=-std=c++11 (the default)
not -ansi. I have simplified the signature of createShaderFile
in the attached patch.
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.
Let me know if there are any further issues.
-- John
On Wed, Mar 27, 2019 at 6:16 PM Norbert Preining <preining at logic.at> wrote:
> Hi John, hi all,
>
> it seems that the current asy is seriously broken ...
>
> On Thu, 28 Mar 2019, Johannes Hielscher wrote:
> > Yes, same here on aarch64-linux (Debian Stretch). I had to hand in the
> > libglm-dev package, but just to find this later on:
> ..
> > So I needed to change the "CXXFLAGS=-ansi" to
> > "CXXFLAGS=-std=c++11" (from the “Special considerations for asymptote”
>
> Here on Debian/jessie, which I used for building all the other TL stuff
> and where c++11 *should* be supported, the same situation:
> - first I need to install libglm-dev on top of the rest of GL libs.
> - then adding CXXFLAGS=-std=c++11
>
> But in my case on jessie it still does not build:
> glrender.cc: In function 'void gl::initshader()':
> 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> >]'
> Nmaterials);
> ^
>
> and many many many others.
>
>
> Even with
> --disable-gl
> I still get
> drawpath3.cc:11:23: fatal error: glm/glm.hpp: No such file or directory
> #include <glm/glm.hpp>
> ^
>
> So I cannot build at all.
>
> John, could you please look into this mess and suggest a solution?
>
> Best
>
> Norbert
>
> --
> PREINING Norbert http://www.preining.info
> Accelia Inc. + JAIST + TeX Live + Debian Developer
> GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tlbuild/attachments/20190328/d5af2dd0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: application/octet-stream
Size: 2894 bytes
Desc: not available
URL: <https://tug.org/pipermail/tlbuild/attachments/20190328/d5af2dd0/attachment.obj>
More information about the tlbuild
mailing list