-
Notifications
You must be signed in to change notification settings - Fork 32
Description
Complete build output is here:
WORK-AROUNDS FOR DESPERATE PEOPLE:
If you really need to build the library - but not the test or example programs, then it can be done
without too much pain.
But everything that uses GLUT/GLUI/GLU/GLOOP or OpenGL calls is hopelessly obsolete. The code in tests and examples make OpenGL calls that haven't been allowed for a decade!
You have to change the top few lines of configure.ac to read:
AC_INIT(README, 1.4.0)
AC_CONFIG_AUX_DIR(build/autoconf)
AC_SUBST(ac_aux_dir)
AC_CANONICAL_SYSTEM
AC_CONFIG_SRCDIR([src])
AM_CONFIG_HEADER(include/carve_config.h include/carve/config.h)
AM_INIT_AUTOMAKE(subdir-objects)
AC_DEFINE_UNQUOTED(CARVE_VERSION, ["${VERSION}"], [Carve version number])
...and to remove every mention of anything GL-related from configure.ac and CMakefile.txt.
Worse:
Carve appears to be using <hash_map>/<hash_set> which have been deprecated in favor of <unordered_map>/<unordered_set> - which produces a bunch of scary compilation warnings...however, it looks like you can ignore them...at least for now.
Other problems relate to accessing "protected" member functions/variables - and I didn't have time to track that down...hence the "EEEEKKK!!!!" line, below.
Adding this at the top of "include/carve/carve.hpp" was also needed to get it all to compile:
#include <bits/types.h>
typedef long int ptrdiff_t ;
typedef __intptr_t intptr_t ;
// Lots of errors due to things being accessed that are "protected"?!?
#define protected public /* (EEEEKKKK!!!!) */
Good Luck!