10 2011 档案
linux重定向标准输入输出到文件
摘要:dup和dup2函数dup和dup2都可用来复制一个现存的文件描述符,使两个文件描述符指向同一个file结构体。如果两个文件描述符指向同一个file结构体,File Status Flag和读写位置只保存一份在file结构体中,并且file结构体的引用计数是2。如果两次open同一文件得到两个文件描述符,则每个描述符对应一个不同的file结构体,可以有不同的File Status Flag和读写位置。请注意区分这两种情况。#include <unistd.h>int dup(int oldfd);int dup2(int oldfd, int newfd);如果调用成功,这两个函数 阅读全文
posted @ 2011-10-27 22:15 liudeen 阅读(2767) 评论(0) 推荐(0)
android 官方推荐开发环境搭建系列(三)
摘要:Building the SystemThe basic sequence of build commands is as follows:InitializeInitialize the environment with the envsetup.sh script. Note that replacing "source" with a single dot saves a few characters, and the short form is more commonly used in documentation.$ source build/envsetup.s 阅读全文
posted @ 2011-10-12 22:50 liudeen 阅读(560) 评论(0) 推荐(0)
android 官方推荐开发环境搭建系列(二)
摘要:Downloading the Source TreeInstalling RepoRepo is a tool that makes it easier to work with Git in the context of Android. For more information about Repo, see Version Control.To install, initialize, and configure Repo, follow these steps:Make sure you have a bin/ directory in your home directory, an 阅读全文
posted @ 2011-10-12 22:49 liudeen 阅读(521) 评论(0) 推荐(0)
android 官方推荐开发环境搭建系列(一)
摘要:网址:http://source.android.com/source/initializing.htmlInitializing a Build EnvironmentThe "Getting Started" section describes how to set up your local work environment, how to use Repo to get the Android files, and how to build the files on your machine. To build the Android source files, y 阅读全文
posted @ 2011-10-12 22:41 liudeen 阅读(742) 评论(0) 推荐(0)
【转载】ubuntu 11.04下android开发环境的搭建
摘要:原文地址:http://www.cnblogs.com/softman11/archive/2011/06/22/2086793.html1.安装JDK 首先到oracle的官网上下载linux版本的JDK,网址为:http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u26-download-400750.html 我选择的是 Linux x86 - Self Extracting Installer,大约81.2M。 下载回来之后,当然是直接运行安装即可.先把这个文件cp到你的安装目录下,然后在你的安装目录直接执行: ./ 阅读全文
posted @ 2011-10-12 22:35 liudeen 阅读(396) 评论(0) 推荐(0)
【转载】Ubuntu11.04下KScope的安装
摘要:原文地址:http://blog.chinaunix.net/space.php?uid=25885064&do=blog&id=27478021.安装kde环境支持: 在ubuntn11.04下,不能直接安装kscope1.6.2,先要安装kde环境支持,如下步骤:apt-get install kdelibs (解决kde-config not found)sudo apt-get install xorg-dev (解决error:can't find X includes?)sudo apt-get install kdelibs4-dev kdelibs4c2 阅读全文
posted @ 2011-10-12 22:24 liudeen 阅读(1018) 评论(0) 推荐(0)