linas / glextrusion Goto Github PK
View Code? Open in Web Editor NEWOpenGL 3D extrusion library
Home Page: https://www.linas.org/gle/
License: Other
OpenGL 3D extrusion library
Home Page: https://www.linas.org/gle/
License: Other
Please use <stdlib.h> instead of <malloc.h> for MacOS.
ex_raw.c:20:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
^~~~~~~~~~
#include <malloc.h>
^~~~~~~~~~
ex_cut_round.c:23:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
^~~~~~~~~~
In file included from ex_alpha.c:52:
./ex_angle.c:21:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
^~~~~~~~~~
1 error generated.
1 error generated.
1 error generated.
make[1]: *** [ex_raw.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [ex_angle.lo] Error 1
make[1]: *** [ex_cut_round.lo] Error 1
1 error generated.
make[1]: *** [ex_alpha.lo] Error 1
make: *** [install-recursive] Error 1
$autoreconf -vi
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal
autoreconf: configure.ac: tracing
autoreconf: running: glibtoolize --copy
glibtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
glibtoolize: and rerunning glibtoolize and aclocal.
glibtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
autoreconf: running: /usr/local/Cellar/autoconf/2.69/bin/autoconf
autoreconf: running: /usr/local/Cellar/autoconf/2.69/bin/autoheader
autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without
autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader: [Define if a function `main' is needed.])
autoheader:
autoheader: WARNING: More sophisticated templates can also be produced, see the
autoheader: WARNING: documentation.
autoreconf: running: automake --add-missing --copy --no-force
configure.ac:27: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see:
configure.ac:27: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
configure.ac:33: installing './compile'
Makefile.am: error: required file './README' not found
examples/Makefile.am: installing './depcomp'
src/Makefile.am:53: warning: 'CFLAGS' is a user variable, you should not override it;
src/Makefile.am:53: use 'AM_CFLAGS' instead
autoreconf: automake failed with exit status: 1
There are several methods to resolve. See https://stackoverflow.com/questions/15013672/use-autotools-with-readme-md
configure.ac
checks for and appends required libraries to the @X_LIBS@
variable, and then uses that in examples/Makefile.am
's LDADD
, which is great for compiling the examples in-project.
But the generated libgle.so.3.1.0
does not link with @X_LIBS@
and so ldd src/.libs/libgle.so.3.1.0
is missing dependency information on libGL, libGLU, libglut, etc.
This manifests as link-time errors:
gcc -o test test.c -lgle
:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libgle.so: undefined reference to `gluNewTess'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libgle.so: undefined reference to `gluTessVertex'
(actual example code: https://salsa.debian.org/debian/gle/-/blob/debian/debian/tests/build and build log: https://salsa.debian.org/debian/gle/-/jobs/4572587 )
Putting all of @X_LIBS@
into src/Makefile.am
's libgle_la_LIBADD
is almost correct, except that configure.ac also inserts -lgle
in X_LIBS
.
Line 141 in fb75bfc
I think a fix could be to stop inserting -lgle
into X_LIBS
, using X_LIBS
to set libgle_la_LIBADD
in src/Makefile.am
, and inserting -lgle in only the examples/Makefile.am LIBADD variable.
Hi! I'm the Debian package maintainer and having some trouble with the old autoconf files against the current Debian autoconf tool versions. I see you fixed all these problems a few years back.
I'm attempting to roll the patches into the Debian package on top of 3.1.0, but it'd be very helpful if you could tag and release a new version with all the changes since 3.1.0.
Thanks in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.