与Cygwin捆绑GLEW失败

我需要从源代码构建GLEW,以便可以在Code :: Block中与Mingw一起使用它,因为Mingw不喜欢在VS中使用它们编译的代码。我正在使用Cygwin,并下载GLEW here的源并将其解压缩。然后,我使用cd浏览到Cygwin所在的文件夹。然后我跑


  制作文件


然后给了我这些错误。

config/config.guess: line 6: $'\r': command not found
config/config.guess: line 8: $'\r': command not found
config/config.guess: line 26: $'\r': command not found
config/config.guess: line 27: $'\r': command not found
config/config.guess: line 38: $'\r': command not found
config/config.guess: line 40: $'\r': command not found
config/config.guess: line 52: $'\r': command not found
config/config.guess: line 63: $'\r': command not found
config/config.guess: line 66: $'\r': command not found
config/config.guess: line 69: syntax error near unexpected token `$'in\r''
'onfig/config.guess: line 69: `  case $1 in
config/config.guess: line 6: $'\r': command not found
config/config.guess: line 8: $'\r': command not found
config/config.guess: line 26: $'\r': command not found
config/config.guess: line 27: $'\r': command not found
config/config.guess: line 38: $'\r': command not found
config/config.guess: line 40: $'\r': command not found
config/config.guess: line 52: $'\r': command not found
config/config.guess: line 63: $'\r': command not found
config/config.guess: line 66: $'\r': command not found
config/config.guess: line 69: syntax error near unexpected token `$'in\r''
'onfig/config.guess: line 69: `  case $1 in
Makefile:40: *** "Platform '' not supported".  Stop.


我已经阅读了很多书,但是在解决这个问题上还找不到很多有用的方法。如果您知道更好的方法,可以让GLEW与Mingw合作,那也将回答我的问题。

在Windows XP上
使用代码::块10.05
使用Cygwin 1.7.16-1
使用GLEW 1.8.0

更新

这些错误已使用config.guess文件上的dos2unix修复。但是,当我现在运行Makefile时,它说没有什么可做的。


最佳答案:

看起来很像config.guess具有DOS行尾(“ \ r \ n”),但是make期望使用Unix行尾(“ \ n”)。我只要在config.guess上运行任何工具即可将其转换为Unix行尾,我的cygwin都有一个名为dos2unix的工具可以解决这个问题。