Hi there, It seems the configure script cannot find some libraries: c:/users/jelle.veraa/dropbox/ke-works-jelleveraa/random/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe: cannot find -lbz2 c:/users/jelle.veraa/dropbox/ke-works-jelleveraa/random/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe: cannot find -lexpat and it screws up finding extra link flags for python: configure:17030: checking python extra linking flags configure:17037: result: None configure:17044: checking consistency of all components of python development environment configure:17070: gcc -o conftest.exe -g -O2 -Ic:\Python27\include conftest.c -lm -Lc:\Python27\Lib\config -lpython27 None >&5 gcc.exe: error: None: No such file or directory Make sure all the necessary libraries are installed in the correct path. For the last bug, the check is done in m4/ax_python_devel.m4: if test -z "$PYTHON_EXTRA_LDFLAGS"; then PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \ conf = distutils.sysconfig.get_config_var; \ print (conf('LINKFORSHARED'))"` fi For some reason, it is printing 'None', instead of an empty string. This could be changed to something like, if test -z "$PYTHON_EXTRA_LDFLAGS"; then PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \ conf = distutils.sysconfig.get_config_var; \ x = conf('LINKFORSHARED'); \ x = x if x is not None else ''; \ print (x)"` fi But this is unlikely to fix the problem, since I think it is very strange that this value points to None in the first place. It would be nice to have graph-tool working on windows, but it is a very weird platform, and I do not have access to a windows machine to understand all its idiosyncrasies. Cheers, Tiago On 01/02/2013 02:27 PM, Jelle Veraa wrote:
Dear all,
Happy new year!
Starting of with what I'd actually like to do (building the program is of course a means to an end :) - I'd like to use the library for its subgraph isomorphism algorithm specifically - should you be able to provide me a binary of the library or know of another fast implementation for subgraph isomorphism that might help me as well.
I'm trying to install the library on a 64 bit Windows 7 machine running 32 bit python 2.7. Installing the dependencies (from binaries) works, but running ./config from MinGW/MSys gives me an error. it exits with "Could not link test program to Python. Maybe the main Python library has been installed in some non-standard library path. If so, pass it to configure, via the LDFLAGS environment variable.", but the solution seems less straightforward - I've already tried all kinds of LDFLAGS versions pointing towards my Python folder (at C:\Python27, or /c/Python27 in MinGW).
here is the log: http://bpaste.net/show/82ASZHcSnWmGsBIglFEo/
From line 2055/configure:16996 things start going wrong (a bit is posted below). There is a reference to Lib\config, but the config directory does not exist. Furthermore the output 'None' at configure:17037 is injected into the command line for gcc.exe which also gives an error.
I've been googling for an answer for some hours now bu no luck. I see that you need python-dev on linux for instance, but I've got Windows so 'apt-get python-dev' won't work :)
Can anyone help me?
thanks, Jelle
configure:16996: result: -Lc:\Python27\Lib\config -lpython27 configure:17003: checking for Python site-packages path configure:17009: result: c:\Python27\Lib\site-packages configure:17016: checking python extra libraries configure:17023: result: configure:17030: checking python extra linking flags configure:17037: result: None configure:17044: checking consistency of all components of python development environment configure:17070: gcc -o conftest.exe -g -O2 -Ic:\Python27\include conftest.c -lm -Lc:\Python27\Lib\config -lpython27 None >&5 gcc.exe: error: None: No such file or directory
_______________________________________________ graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool
-- Tiago de Paula Peixoto <tiago@skewed.de>