近日编译cegui时,执行configure总是出错:
.infig.status: error: cannot find input file: Makefile
于是查找相关资料,总算找到解决方案, 查看此处及此处。原来这是文件回车换行符的差异造成的。windows下采用/r/n,*nix下采用/r。这样在执行configure时就会出错。只好改了,采用命令:
find . -type f -and -not -name "*.cpp" -and -not -name "*.h" -and -not -name "*.png" -and -not -name "*.bmp" | sed "s/.*//"//0/"/" | xargs dos2unix
即可。
.infig.status: error: cannot find input file: Makefile
于是查找相关资料,总算找到解决方案, 查看此处及此处。原来这是文件回车换行符的差异造成的。windows下采用/r/n,*nix下采用/r。这样在执行configure时就会出错。只好改了,采用命令:
find . -type f -and -not -name "*.cpp" -and -not -name "*.h" -and -not -name "*.png" -and -not -name "*.bmp" | sed "s/.*//"//0/"/" | xargs dos2unix
即可。