Chinaunix首页 | 论坛 | 博客
  • 博客访问: 318802
  • 博文数量: 28
  • 博客积分: 609
  • 博客等级: 中士
  • 技术积分: 925
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-17 13:32
文章分类

全部博文(28)

文章存档

2022年(1)

2016年(1)

2015年(2)

2012年(1)

2011年(23)

分类: Android平台

2015-06-10 16:05:45

Rockbox的android版本的Readme里面指出RockBox只能在Linux环境下进行编译,而在Windows环境下的Cygwin里面是不能进行编译的。
无法进行编译的主要的原因是需要使用的windows版本的Android NDK的交叉编译工具和SDK工具并不支持cygwin环境下使用的Unix目录格式。
好消息是cygwin其实支持将unix目录转化为windows的目录格式。

点击(此处)折叠或打开

  1. $ cygpath
  2. Usage: cygpath (-d|-m|-u|-w|-t TYPE) [-f FILE] [OPTION]... NAME...
  3. cygpath [-c HANDLE]
  4. cygpath [-ADHOPSW]
  5. cygpath [-F ID]
  6. Convert Unix and Windows format paths, or output system path information
  7. Output type options:
  8. -d, --dos print DOS (short) form of NAMEs (C:\PROGRA~1\)
  9. -m, --mixed like --windows, but with regular slashes (C:/WINNT)
  10. -M, --mode report on mode of file (binmode or textmode)
  11. -u, --unix (default) print Unix form of NAMEs (/cygdrive/c/winnt)
  12. -w, --windows print Windows form of NAMEs (C:\WINNT)
  13. -t, --type TYPE print TYPE form: 'dos', 'mixed', 'unix', or 'windows'
  14. Path conversion options:
  15. -a, --absolute output absolute path
  16. -l, --long-name print Windows long form of NAMEs (with -w, -m only)
  17. -p, --path NAME is a PATH list (i.e., '/bin:/usr/bin')
  18. -s, --short-name print DOS (short) form of NAMEs (with -w, -m only)
  19. -C, --codepage CP print DOS, Windows, or mixed pathname in Windows
  20. codepage CP. CP can be a numeric codepage identifier,
  21. or one of the reserved words ANSI, OEM, or UTF8.
  22. If this option is missing, cygpath defaults to the
  23. character set defined by the current locale.
  24. System information:
  25. -A, --allusers use `All Users' instead of current user for -D, -O, -P
  26. -D, --desktop output `Desktop' directory and exit
  27. -H, --homeroot output `Profiles' directory (home root) and exit
  28. -O, --mydocs output `My Documents' directory and exit
  29. -P, --smprograms output Start Menu `Programs' directory and exit
  30. -S, --sysdir output system directory and exit
  31. -W, --windir output `Windows' directory and exit
  32. -F, --folder ID output special folder with numeric ID and exit
  33. Try `cygpath --help' for more information.
那么就可以通过cygpath命令把Makefile里面需要调用Android NDK和Android SDK的地方从unix目录变换为windows的目录。

还有一点需要注意的是Android NDK和Android SDK是不理解unix link的,所以在使用ln的地方需要修改成为cp或者mklink(windows的建立link的命令)

具体的修改请参照里面的rrc branch
阅读(4957) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~