Skip to content

Multiple build issues under Ubuntu (latest version as of Jan 2018) #4

@SteveBaker

Description

@SteveBaker

Complete build output is here:

errors.txt

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions