Failed to install graphical tool in Windows 7

I would like to use the graph-tool on Windows 7, but I had problems installing it.

All of the requirements listed here have been successfully installed. Python 2.7 is installed in C:\python27 . Boost 1.49.0 was successfully compiled with mingw set to C:\boost , and the BOOST_ROOT environment BOOST_ROOT indicates this. Boost is compiled in debug and release mode, as well as static and dynamic.


Calling configure from MSyS results in the following error.

 configure: error: 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. Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib" ============================================================================ ERROR! You probably have to install the development version of the Python package for your distribution. The exact name of this package varies among them. ============================================================================ 

A call to configure LDFLAGS="-LC:/python27/libs" fixed this error, but led to the following error

 checking for boostlib >= 1.38.0... configure: error: We could not detect the boo st libraries (version 1.38 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then ch eck your version number looking in <boost/version.hpp>. See http://randspringer. de/boost for more documentation. 

This is strange since BOOST_ROOT is well defined (verified using the printenv command).


The next command I tried was configure --with-boost="C:/boost" LDFLAGS="-LC:/python27/libs"

 checking for boostlib >= 1.38.0... yes checking whether the Boost::Python library is available... no configure: error: No usable boost::python found 

It's good that it detects a boost, but cannot find boost :: python. Due to its size, I cannot publish config.log to stackoverflow, but you can find it here .

I am really confused right now and will be grateful for any help.

+8
python boost windows-7 mingw boost-python
source share
2 answers

I have no experience with a graphical tool compiler (or anything else) for windows, but the following part of your config.log stands out:

  configure:17224: checking whether the Boost::Python library is available configure:17254: g++ -c -Wall -ftemplate-depth-150 -Wno-deprecated -Wno-unknown-pragmas -O99 -fvisibility=default -fvisibility-inlines-hidden -Wno-unknown-pragmas -Ic:\python27\include conftest.cpp >&5 conftest.cpp:32:36: fatal error: boost/python/module.hpp: No such file or directory compilation terminated. 

Please note that the acceleration path you use is not used! Try passing CXXFLAGS = "- IC: \ boost \ include" to configure as well.

+6
source share

Maybe something like this will help:

 ./configure --prefix=/usr/ 

Windows path is different, try it yourself.

0
source share

All Articles