android编译只能导出用于Linux平台开发的SDK?不能导出用于Windows平台的SDK?那这个SDK有什么用?用了一下不能用到Eclipse中去

xqhrs232 2010-11-17 02:30:37
android编译只能导出用于Linux平台开发的SDK?不能导出用于Windows平台的SDK?那这个SDK有什么用?用了一下不能用到Eclipse中去
...全文
452 11 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
简单并快乐着 2012-07-28
  • 打赏
  • 举报
回复
我也正在搞。都不知道咋回事。老是编译不通过的。郁闷死了。
ezhong0812 2011-03-17
  • 打赏
  • 举报
回复
楼主编译成功了没,交流下
纠结的木棉花 2010-11-19
  • 打赏
  • 举报
回复
学习一下,准备编译ubuntu下的sdk,先标记一下
Sodino 2010-11-18
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 xqhrs232 的回复:]

引用 6 楼 j_act 的回复:
android源代码里

找到了!!!

C/C++ code


------------------------------ 3- Building an SDK for Windows
------------------------------
A- SDK pre-requisite
--------------------
First ……
[/Quote]

学习
xqhrs232 2010-11-18
  • 打赏
  • 举报
回复
[Quote=引用 6 楼 j_act 的回复:]
android源代码里
[/Quote]
找到了!!!



------------------------------ 3- Building an SDK for Windows
------------------------------
A- SDK pre-requisite
--------------------
First you need to build an SDK for MacOS and Linux. The Windows build works by updating an existing MacOS or Linux SDK zip file and replacing the unix binaries by Windows binaries.
B- Cygwin pre-requisite & code checkout
---------------------------------------
Second you need to install Cygwin and configure it:
- Get the installer at http://sources.redhat.com/cygwin/
- When installing Cygwin, set Default Text File Type to Unix/binary, not DOS/text. This is really important, otherwise you will get errors when trying to checkout code using git.
- Packages that you must install or not:
- Required packages: autoconf, bison, curl, flex, gcc, g++, git, gnupg, make, mingw-zlib, python, zip, unzip.
- Suggested extra packages: diffutils, emacs, openssh, rsync, vim, wget.
- Packages that must not be installed: readline.
Once you installed Cygwin properly, checkout the code from git as you did for MacOS or Linux. Make sure to get the same branch, and if possible keep it as close to the other one as possible:
$ mkdir ~/my-android-git
$ cd ~/my-android-git
$ repo init -u git://android.git.kernel.org/platform/manifest.git -b cupcake $ repo sync
C- Building the Windows SDK
---------------------------
Now it's time to build that Windows SDK. You need:
- The path to the MacOS or Linux SDK zip.
- A directory where to place the final SDK. It will also hold some temporary files.
- The build number will be extracted from the SDK zip filename, but this will only work if that build number has no underscores in it. It is suggested you just define SDK_NUMBER (and not BUILD_NUMBER!) on the command line before invoking the script.
Note that the "SDK number" is really a free identifier of your choice. It doesn't need to be strictly a number. As always it is suggested you avoid too much punctuation and special shell/make characters. Underscores cannot be used.
To summarize, the steps on the command line would be something like this:
$ mkdir ~/mysdk
$ export SDK_NUMBER=${USER}-`date +%Y%m%d-%H%M%S`
$ cd ~/my-android-git
$ development/build/tools/make_windows_sdk.sh /path/to/macos/or/linux/sdk.zip ~/mysdk
This will take a while to build some Windows-specific binaries, including the emulator, unzip the previous zip, rename & replace things and rezip the final Windows SDK zip file. A typical build time should be around 5-10 minutes.

  • 打赏
  • 举报
回复
[Quote=引用 4 楼 saint_bxg 的回复:]
在development\docs有楼上说的文件
你也可以直接搜 构建Windows版的Android SDK 可以搜到很多,但基本上都是同一篇文章
我也正在做windows上的SDK,但是碰到些问题,可以一起研究一下
[/Quote]
Me too!
saint_bxg 2010-11-18
  • 打赏
  • 举报
回复
在development\docs有楼上说的文件
你也可以直接搜 构建Windows版的Android SDK 可以搜到很多,但基本上都是同一篇文章
我也正在做windows上的SDK,但是碰到些问题,可以一起研究一下
xqhrs232 2010-11-18
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 j_act 的回复:]
在linux下边make的sdk默认是linux版本的,有一个文件里边说明了怎么编译win下的sdk。
在\android\sdk\docs里边howto_build_SDK.txt
里边详细说明了如何编译sdk。包括linux,mac,win下的各种版本。
祝楼主好运~
[/Quote]

没找到这个文件,你的\android\指的是什么?源代码还是已经装了的SDK?
J_act 2010-11-18
  • 打赏
  • 举报
回复
android源代码里
J_act 2010-11-17
  • 打赏
  • 举报
回复
在linux下边make的sdk默认是linux版本的,有一个文件里边说明了怎么编译win下的sdk。
在\android\sdk\docs里边howto_build_SDK.txt
里边详细说明了如何编译sdk。包括linux,mac,win下的各种版本。
祝楼主好运~
xqhrs232 2010-11-17
  • 打赏
  • 举报
回复
没有人有这样的问题?标准的ANDROID SDK不支持的功能在AP里面怎么去调用?必须用自己定制的SDK来编译AP吧,但自己定制的SDK装不到Eclipse中去啊!!!

80,471

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧