vectorgraphics / asymptote

2D & 3D TeX-Aware Vector Graphics Language
https://asymptote.sourceforge.io/
GNU General Public License v3.0
547 stars 90 forks source link

Build error: drawsurface.h:594:33: error: expected ')' before 'const' #275

Closed stefanhusmann closed 2 years ago

stefanhusmann commented 2 years ago

This happens under Arch Linux with latest sources from Git.

buildlog.txt

johncbowman commented 2 years ago

That likely means you either have configured with --disable-gl or you are missing criticial OpenGL/glm libraries. I will add a guard against this but you still have an issue to fix at your end.

stefanhusmann commented 2 years ago

Yes, --disable-gl was given to the configure script. If I add it, I get a different error.

glrender.cc: In function 'void gl::glrender(const string&, const camp::picture*, const string&, double, double, double, double, const camp::triple&, const camp::triple&, const camp::pair&, const camp::pair&, double*, double*, size_t, camp::triple*, double*, double*, bool, int)':
glrender.cc:1701:7: error: 'webgl' was not declared in this scope
 1701 |   if(!webgl) {
      |       ^~~~~
make: *** [Makefile:372: glrender.o] Error 1
johncbowman commented 2 years ago

Fixed in bf21a3428f7dcf3466fa78a10ab01b1c01fa8486