繁体   English   中英

无法在Windows 7中安装图形工具

[英]unable to install graph-tool in windows 7

我想在Windows 7上使用图形工具 ,但我在安装它时遇到了麻烦。

此处列出的所有要求均已成功安装。 Python 2.7安装在C:\\python27 使用mingw成功编译了Boost 1.49.0,安装在C:\\boostBOOST_ROOT环境变量指向它。 Boost在调试和发布模式下编译,静态和动态。


从MSyS中调用configure会导致以下错误。

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.
  ============================================================================

调用configure LDFLAGS="-LC:/python27/libs"修复了这个错误,但是导致了以下错误

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.

这很奇怪,因为BOOST_ROOT是明确定义的(用printenv命令检查)。


我尝试的下一个命令是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

好吧,它检测到提升,但它找不到boost :: python。 由于它的大小,我无法在stackoverflow上发布config.log ,但你可以在这里找到它。

我现在真的很困惑,并希望得到任何帮助。

我没有为Windows编译图形工具(或其他任何东西)的经验,但是config.log的以下部分很突出:

    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.

请注意您传递的增强路径是如何使用的! 尝试传递CXXFLAGS =“ - IC:\\ boost \\ include”进行配置。

可能是这样的东西会有所帮助:

./configure --prefix=/usr/

对于Windows路径不同,请亲自尝试。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM