配置NDK syntax error: unexpected end of file 解决
来源:互联网 发布:南京 网络问政 编辑:程序博客网 时间:2024/06/04 19:04
android NDK开发中,在window环境下需要安装cygwin来模拟linux环境,在网上配置文章较多,不详述,在配置的过程中,需要修改cybwin\home\XXX(you computer name)目录下的.bash_profile中末尾添加
ANDROID_NDK_ROOT=/cygdrive/d/andorid/NDK/android-ndk-r7b export ANDROID_NDK_ROOT
ANDROID_NDK_ROOT(可以随意命名)。在使用UltraEdit打开.bash_profile文件的时候,点了转化为DOS format。
在启动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中回车符是不相同的。
- 配置NDK syntax error: unexpected end of file 解决
- 配置NDK Cygwin .bash_profile:行47: 语法错误: 未预期的文件结尾 syntax error: unexpected end of file 解决
- Cygwin配置NDK修改bash_profile后的问题:syntax error: unexpected end of file
- 解决shell错误:syntax error: unexpected end of file
- syntax error : unexpected end of file 问题的解决
- syntax error: unexpected end of file
- syntax error: unexpected end of file
- shell:syntax error:unexpected end of file
- syntax error: unexpected end of file解决方法
- syntax error:unexpected end of file
- syntax error: unexpected end of file
- syntax error, unexpected end of file
- 解决执行脚本报syntax error: unexpected end of file或syntax error near unexpected token `fi'错误的问题
- Parse error: syntax error, unexpected end of file in
- Parse error: syntax error, unexpected end of file
- bash: /home/x/.bash_profile: line 48: syntax error: unexpected end of file的解决
- SHELL syntax error:unexpected end of file 提示错误
- Shelll 错误 syntax error: unexpected end of file
- JS中改变时间
- C++ 字符串UTF8与GBK转化
- HDU 1559 最大子矩阵
- win7 64位系统 注册 ocx控件
- 学习日记-策略模式
- 配置NDK syntax error: unexpected end of file 解决
- 谈学习中的改变——有病要诊断,有药要服用
- JavaScript中Array(数组)的属性和方法
- JSP网站利用花生壳在公网上进行访问
- java中Exception in thread "main" java.util.NoSuchElementException
- 批量杀死 MySQL 连接
- Orcal的select into用法
- 浏览器对象模型
- POJ2299Ultra-QuickSort(64位long long)