Rockbox的android版本的Readme里面指出RockBox只能在Linux环境下进行编译,而在Windows环境下的Cygwin里面是不能进行编译的。
无法进行编译的主要的原因是需要使用的windows版本的Android NDK的交叉编译工具和SDK工具并不支持cygwin环境下使用的Unix目录格式。
好消息是cygwin其实支持将unix目录转化为windows的目录格式。
-
$ cygpath
-
Usage: cygpath (-d|-m|-u|-w|-t TYPE) [-f FILE] [OPTION]... NAME...
-
cygpath [-c HANDLE]
-
cygpath [-ADHOPSW]
-
cygpath [-F ID]
-
-
Convert Unix and Windows format paths, or output system path information
-
-
Output type options:
-
-
-d, --dos print DOS (short) form of NAMEs (C:\PROGRA~1\)
-
-m, --mixed like --windows, but with regular slashes (C:/WINNT)
-
-M, --mode report on mode of file (binmode or textmode)
-
-u, --unix (default) print Unix form of NAMEs (/cygdrive/c/winnt)
-
-w, --windows print Windows form of NAMEs (C:\WINNT)
-
-t, --type TYPE print TYPE form: 'dos', 'mixed', 'unix', or 'windows'
-
-
Path conversion options:
-
-
-a, --absolute output absolute path
-
-l, --long-name print Windows long form of NAMEs (with -w, -m only)
-
-p, --path NAME is a PATH list (i.e., '/bin:/usr/bin')
-
-s, --short-name print DOS (short) form of NAMEs (with -w, -m only)
-
-C, --codepage CP print DOS, Windows, or mixed pathname in Windows
-
codepage CP. CP can be a numeric codepage identifier,
-
or one of the reserved words ANSI, OEM, or UTF8.
-
If this option is missing, cygpath defaults to the
-
character set defined by the current locale.
-
-
System information:
-
-
-A, --allusers use `All Users' instead of current user for -D, -O, -P
-
-D, --desktop output `Desktop' directory and exit
-
-H, --homeroot output `Profiles' directory (home root) and exit
-
-O, --mydocs output `My Documents' directory and exit
-
-P, --smprograms output Start Menu `Programs' directory and exit
-
-S, --sysdir output system directory and exit
-
-W, --windir output `Windows' directory and exit
-
-F, --folder ID output special folder with numeric ID and exit
-
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
阅读(5114) | 评论(0) | 转发(0) |