gml compilation issues

Hi!

I just failed to compile the latest graph-tool svn with gml enabled. The log of the compiler is enclosed. My system is

Mac OSX Lion,
boost 1.47.0
python 2.7.1 from Apple,
gcc 4.2 compiler

The 2.2.15 version finished flawlessly to compile. BTW, what about the macports graph-tool port? Is it known to work? What compiler, which boost, and what python version is required? MacOS is a mess in this regard…

Cheers,

LOG.gz (1.38 KB)

Hi Sebastian,

Hi!

I just failed to compile the latest graph-tool svn with gml enabled. The log of the compiler is enclosed. My system is

Mac OSX Lion,
boost 1.47.0
python 2.7.1 from Apple,
gcc 4.2 compiler

This is a problem (incompatibility) with boost 1.47... You have to keep
version 1.46, until I fix this (I'm still waiting for boost 1.47 on my
platform).

The 2.2.15 version finished flawlessly to compile. BTW, what about the
macports graph-tool port? Is it known to work? What compiler, which
boost, and what python version is required? MacOS is a mess in this
regard…

It should work well with the setup above, except for boost 1.47.

Cheers,
Tiago

Hi!

I tried 1.46.1 as well, no luck here either. BTW, it would be really cool, if you could write somewhere down the version which you are currently using. I am always guessing by checking what gentoo has in their repositories. boost versions are really always a hassle.

Cheers,

Sebastian

Are the error messages exactly the same?

Cheers,
Tiago

I did not do a diff, but they looked very similar, yes. Sorry, that I did not keep it, but once I saw gentoo is with boost 1.47 I tried that and compilation almost takes a day…

I will try it again with the fixed version.

Hi!

Attached are the error messages when trying to compile latest git code with

apple gcc 4.2
boost 1.46.1
python 2.7.1 from apple
on Lion

No idea what is going on here.

Cheers,

LOG.gz (1.38 KB)

Hi, I mixed up in the previous email, the incompatibility issues are
with boost 1.48 not with 1.47, which should be working fine. I do not
get this compilation error with boost 1.47, so I think it must be
related to the apple compiler. I do not have access to a MacOS machine
at the moment, so it will take bit before I can investigate this
myself. But you can try the following:

    1. Insert '#include <boost/variant/get.hpp>' in the beginning of
       gml.hh.

    2. Change 'get' to 'boost::get' in the places where the compiler
       complains.

Note that you do not have compile the entire library after you do these
modifications, since that would be a waste of time. You need only to
compile the graph_io.cc module.

Cheers,
Tiago