在启动cygwin,会显示
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: /home/lenovo/.bash_profile: line 47: syntax error: unexpected end of file
解决方法:在cygwin中输入:dos2unix -n .bash_profile .bash_profile
关闭重新打开cygwin,ok了。所以再一次提醒,不要用window里的记事本或者写字本打开修改,使用UltraEdit不要转化格式,因为在window下和linux中回车符是不相同的。
本文指导如何在Cygwin环境下正确配置Android NDK,包括下载最新Cygwin、安装组件、设置环境变量及修正bash_profile文件中的错误,确保在命令行中能顺利调用NDK。

被折叠的 条评论
为什么被折叠?



