Python构建脚本错误

时间:2013-03-21 16:10:55

标签: c++ python g++ gsl

我正在尝试使用python构建脚本编译软件但我遇到以下错误。

python build
[CC] cmd\threshold.o
 [CC] src\dwi/SH.o[CC] src\mrview/sidebar/orientation_plot.o

[CC] cmd\read_dicom.o
[CC] lib\file\dicom\dict.o
[CC] cmd\gen_unit_warp.o
[CC] cmd\mrinfo.o
 [CC] lib\file\dicom\image.o

 ERROR:
ERROR:  [CC] cmd\threshold.o[CC] src\dwi/SH.o



g++ -c -Wall -march=i686 -fno-strict-aliasing -DGL_GLEXT_PROTOTYPES -DUSE_TR1 -O
2 -IC:/MinGW/msys/1.0/local/include -DGSL_DLL -mms-bitfields -IC:/gtkmm64/includ
e/glibmm-2.4 -IC:/gtkmm64/lib/glibmm-2.4/include -IC:/gtkmm64/include/sigc++-2.0
 -IC:/gtkmm64/lib/sigc++-2.0/include -IC:/gtkmm64/include/glib-2.0 -IC:/gtkmm64/
lib/glib-2.0/include -Ilib -Isrc cmd\threshold.cpp -o cmd\threshold.og++ -c -Wal
l -march=i686 -fno-strict-aliasing -DGL_GLEXT_PROTOTYPES -DUSE_TR1 -O2 -IC:/MinG
W/msys/1.0/local/include -DGSL_DLL -mms-bitfields -IC:/gtkmm64/include/glibmm-2.
4 -IC:/gtkmm64/lib/glibmm-2.4/include -IC:/gtkmm64/include/sigc++-2.0 -IC:/gtkmm
64/lib/sigc++-2.0/include -IC:/gtkmm64/include/glib-2.0 -IC:/gtkmm64/lib/glib-2.
0/include -Ilib -Isrc src\dwi/SH.cpp -o src\dwi/SH.o

failed with output:

In file included from lib/ptr.h:26:0,
                 from lib/args.h:26,
                 from lib/app.h:30,
                 from cmd\threshold.cpp:30:
lib/mrtrix.h:69:29: fatal error: gsl/gsl_version.h: No such file or directory
compilation terminated.

它正在寻找的文件“gsl_version.h”位于C:\ GnuWin32 \ include \ gsl中,C:\ GnuWin32 \ include包含在我的路径中。那么为什么我会收到这个错误?

非常感谢!!

杰西

1 个答案:

答案 0 :(得分:0)

要修复此错误,我必须添加一个指向gsl目录的环境变量LIB_GSL:C:\ GnuWin32 \ include \ gsl

欢呼声 杰西