[tlbuild] asy2.49,libGLEW hacks
Norbert Preining
preining at logic.at
Wed Apr 3 04:46:26 CEST 2019
Hi all
in cooperation with John we finally found a solution:
- grep glew 2.1 source code (or use attached files)
- copy glew.c to the asymptote/ directory
- copy eglew.h glew.h glxew.h wglew.h to asymptote/GL
directory (need to be created)
- patch the configure.ac:
--- a/Build/source/utils/asymptote/configure.ac
+++ b/Build/source/utils/asymptote/configure.ac
@@ -361,7 +361,7 @@ case "$OSTYPE" in
AC_CHECK_HEADER(GL/glew.h,
[AC_DEFINE(HAVE_LIBGLEW, 1,
[Define if you have the `GLEW' library (-lGLEW).])
- LIBS="-lGLEW "$LIBS],
+ LIBS="glew.c "$LIBS],
AC_MSG_NOTICE([*** Could not find libGLEW: will compile without OpenGL support ***]))
esac
if test "x$enable_offscreen" == "xyes"; then
- do NOT install libglew-dev or similar
- compile as usual
One gets a binary that has GLEW statically compiled in.
I have updated the asy binaries of x86_64-linux and i386-linux
accordingly.
I had to compile on Debian/stretch because the Debian/jessie version
crashed on new systems with floating point error or so.
If other x86_64-linux/i386-linux users could test the binaries that
would be great!
(Mind that you have to update the base files, too!)
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 --------------
A non-text attachment was scrubbed...
Name: glew.c
Type: text/x-csrc
Size: 1235777 bytes
Desc: not available
URL: <https://tug.org/pipermail/tlbuild/attachments/20190403/9d5f5494/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eglew.h
Type: text/x-chdr
Size: 103594 bytes
Desc: not available
URL: <https://tug.org/pipermail/tlbuild/attachments/20190403/9d5f5494/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glew.h
Type: text/x-chdr
Size: 1186650 bytes
Desc: not available
URL: <https://tug.org/pipermail/tlbuild/attachments/20190403/9d5f5494/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glxew.h
Type: text/x-chdr
Size: 73435 bytes
Desc: not available
URL: <https://tug.org/pipermail/tlbuild/attachments/20190403/9d5f5494/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wglew.h
Type: text/x-chdr
Size: 63314 bytes
Desc: not available
URL: <https://tug.org/pipermail/tlbuild/attachments/20190403/9d5f5494/attachment-0009.bin>
More information about the tlbuild
mailing list