Is there anybody who knows what the cause of this error migh be? I am
slightly struggling in making sense of the error messages. Any help would be
much appreciated!
I have decided to delete the files I had and do it from scratch again.
To start with I am running git clone
gitlab(a)git.skewed.de:count0/graph-tool.git
I am then executing autogen.sh. This returns the following:
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: linking file `m4/libtool.m4'
libtoolize: linking file `m4/ltoptions.m4'
libtoolize: linking file `m4/ltsugar.m4'
libtoolize: linking file `m4/ltversion.m4'
libtoolize: linking file `m4/lt~obsolete.m4'
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.ac:22: installing './compile'
configure.ac:18: installing './config.guess'
configure.ac:18: installing './config.sub'
configure.ac:20: installing './install-sh'
configure.ac:20: installing './missing'
src/graph/Makefile.am: installing './depcomp'
src/graph_tool/Makefile.am:3: installing './py-compile'
configure.ac:39: error: possibly undefined macro: PKG_INSTALLDIR
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
I can then run the configure file that it has generated but is this an error
that I would need to fix first?
If I run configure it seems to happily run to the end. The only on-screen
message that sticks out at me as being odd is:
./configure: line 16350: PKG_INSTALLDIR: command not found
I have decided to delete the files I had and do it from scratch again.
To start with I am running git clone
gitlab(a)git.skewed.de:count0/graph-tool.git
I am then executing autogen.sh. This returns the following:
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: linking file `m4/libtool.m4'
libtoolize: linking file `m4/ltoptions.m4'
libtoolize: linking file `m4/ltsugar.m4'
libtoolize: linking file `m4/ltversion.m4'
libtoolize: linking file `m4/lt~obsolete.m4'
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.ac:22: installing './compile'
configure.ac:18: installing './config.guess'
configure.ac:18: installing './config.sub'
configure.ac:20: installing './install-sh'
configure.ac:20: installing './missing'
src/graph/Makefile.am: installing './depcomp'
src/graph_tool/Makefile.am:3: installing './py-compile'
configure.ac:39: error: possibly undefined macro: PKG_INSTALLDIR
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
I can then run the configure file that it has generated but is this an error
that I would need to fix first?
You need to install pkg-config.
If I run configure it seems to happily run to the end. The only on-screen
message that sticks out at me as being odd is:
./configure: line 16350: PKG_INSTALLDIR: command not found
I have decided to delete the files I had and do it from scratch again.
To start with I am running git clone
gitlab(a).skewed
:count0/graph-tool.git
I am then executing autogen.sh. This returns the following:
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: linking file `m4/libtool.m4'
libtoolize: linking file `m4/ltoptions.m4'
libtoolize: linking file `m4/ltsugar.m4'
libtoolize: linking file `m4/ltversion.m4'
libtoolize: linking file `m4/lt~obsolete.m4'
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.ac:22: installing './compile'
configure.ac:18: installing './config.guess'
configure.ac:18: installing './config.sub'
configure.ac:20: installing './install-sh'
configure.ac:20: installing './missing'
src/graph/Makefile.am: installing './depcomp'
src/graph_tool/Makefile.am:3: installing './py-compile'
configure.ac:39: error: possibly undefined macro: PKG_INSTALLDIR
If this token and others are legitimate, please use
m4_pattern_allow.
See the Autoconf documentation.
I can then run the configure file that it has generated but is this an
error
that I would need to fix first?
You need to install pkg-config.
It seems to already be installed. Running sudo apt-get install pkg-config
tells me that the latest version is already installed. Running dpkg -l
pkg-config returns:
Happy to give it a shot though have absolutely no clue what I am doing here.
I will simply comment out line 39 in configure.ac and see what happens.
What does the line do? In your opinion, will it cause problems somewhere
else down the line that won't be aparent during compilation? (i.e. if it
could lead to incorrect results when using graph_tool I'd rather not mess
with it.)
The error messages about
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory #include <ac_nonexistent.h>
and
conftest.c:54:26: fatal error: minix/config.h: No such file or directory #include <minix/config.h>
in config.log persist but autogen.sh runs without any errors. Running make
still eventually throws the error "graph_triangulation.cc:55:61: fatal
error: CGAL/Periodic_3_Delaunay_triangulation_traits_3.h: No such file or
directory"
The error messages about
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory #include <ac_nonexistent.h>
and
conftest.c:54:26: fatal error: minix/config.h: No such file or directory #include <minix/config.h>
in config.log persist but autogen.sh runs without any errors.
As I already explained, these are not errors.
Running make
still eventually throws the error "graph_triangulation.cc:55:61: fatal
error: CGAL/Periodic_3_Delaunay_triangulation_traits_3.h: No such file or
directory"
This is completely unrelated to any of this. It probably just means that
your cgal version is too old.
Some modifications were made recently in graph-tool to allow compilation
with newer cgal that possibly have broken compatibility with older versions.
I will investigate.