配置NDK syntax error:&…
2015-07-07 11:35
387 查看
android
NDK开发中,在window环境下需要安装cygwin来模拟linux环境,在网上配置文章较多,不详述,在配置的过程中,需要修改
cybwin\home\XXX(you computer name)目录下的.bash_profile中末尾添加
[html] view plaincopy
ANDROID_NDK_ROOT=/cygdrive/d/andorid/NDK/android-ndk-r7b
export ANDROID_NDK_ROOT
ANDROID_NDK_ROOT(可以随意命名)。在使用UltraEdit打开.bash_profile文件的时候,点了转化为DOS
format。
syntax error: unexpected end of file 解决" />
在启动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
错误。一开始没有找到好的方法,后来在:http://glitterhsin.pixnet.net/blog/post/88049087-卡關,千萬不要用wordpad編輯.bash_profile 中找到解决办法,非常简单(这个网页好像要翻墙才能看到)。
在cygwin中输入:dos2unix -n .bash_profile
.bash_profile
关闭重新打开cygwin,ok了。所以再一次提醒,不要用window里的记事本或者写字本打开修改,使用UltraEdit不要转化格式,因为在window下和linux中回车符是不相同的。
NDK开发中,在window环境下需要安装cygwin来模拟linux环境,在网上配置文章较多,不详述,在配置的过程中,需要修改
cybwin\home\XXX(you computer name)目录下的.bash_profile中末尾添加
[html] view plaincopy
ANDROID_NDK_ROOT=/cygdrive/d/andorid/NDK/android-ndk-r7b
export ANDROID_NDK_ROOT
ANDROID_NDK_ROOT(可以随意命名)。在使用UltraEdit打开.bash_profile文件的时候,点了转化为DOS
format。
syntax error: unexpected end of file 解决" />
在启动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
错误。一开始没有找到好的方法,后来在:http://glitterhsin.pixnet.net/blog/post/88049087-卡關,千萬不要用wordpad編輯.bash_profile 中找到解决办法,非常简单(这个网页好像要翻墙才能看到)。
在cygwin中输入:dos2unix -n .bash_profile
.bash_profile
关闭重新打开cygwin,ok了。所以再一次提醒,不要用window里的记事本或者写字本打开修改,使用UltraEdit不要转化格式,因为在window下和linux中回车符是不相同的。
相关文章推荐
- 关于github的ssh, permission…
- github操作说明
- cygwin :bash: $'…
- NDK C打印log
- jni java String 转C char*工具类
- C# Winform 跨线程更新U…
- 用AudioTrack进行音频录制传输
- 标记下,listView与gridView
- iOS 8 AutoLayout 及SizeClass(三) 使用详解 好多值得学习及研究的地方
- 浅谈web应用的负载均衡、集群、高可用(HA)解决方案
- ECMAScript 6新特性介绍
- vijos-1951 玄武密码
- Js组件的一些写法
- Windows Azure
- [每天读书半小时]6/29 - 30 OpenStack企业云平台架构与实践
- chrome不能调试断点的问题
- 优化app速度的几个建议
- PyQt5 环境配置和Python GUI编程介绍
- 网络协议归纳
- Java中的匿名内部类总结