8

我想在 Windows 7 上使用图形工具,但我无法安装它。

此处列出的所有要求均已成功安装。Python 2.7 安装在C:\python27. Boost 1.49.0 用mingw 编译成功,安装进去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,但它找不到 boost::python。由于它的大小,我无法config.log在 stackoverflow 上发布,但你可以在这里找到它。

我现在真的很困惑,不胜感激。

4

2 回答 2

6

我在为 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" 进行配置。

于 2012-05-09T06:56:24.073 回答
0

可能这样的事情会有所帮助:

./configure --prefix=/usr/

因为windows路径不同,自己试试。

于 2012-05-05T04:52:33.187 回答