当前位置: 首页 > news >正文

网站建设类目三亚旅游网站策划书

网站建设类目,三亚旅游网站策划书,心理咨询网站后台,网站聊天工具代码学习了这么多其他人的博客,终于编译成功了。技术小白前来分享,有不到位的希望大牛们指正。开源的意义在于分享。本文主要为遇到的错误解决 http://blog.sina.com.cn/s/blog_4ba5b45e0102ejbb.html这篇文章对我的帮助很大,感谢作者 源码是别…

学习了这么多其他人的博客,终于编译成功了。技术小白前来分享,有不到位的希望大牛们指正。开源的意义在于分享。本文主要为遇到的错误解决

http://blog.sina.com.cn/s/blog_4ba5b45e0102ejbb.html这篇文章对我的帮助很大,感谢作者
源码是别人给的,所以直接开始编译
cm12编译
1.
对本地库的操作:
android要求的库
更新 sudo yum update
sudo yum install mesa-libGL-devel
sudo yum install libstdc++.so.6
sudo yum install gcc, yum install gcc-c++
sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386
由于以上是对于unbunte的安装,fedora里会显示有些包没有。所以又看了fedora官网提供的android编译环境
https://fedoraproject.org/wiki/HOWTO_Setup_Android_Development
yum install glibc.i686 glibc-devel.i686 libstdc++.i686 zlib-devel.i686 ncurses-devel.i686 libX11-devel.i686 libXrender.i686 libXrandr.i686
2.
首先:下载
kernel http://www.github.com/cyanogenmod/android_kernel_samsung_smdk4412
device http://www.github.com/cyanogenmod/android_device_samsung_n7100
下载 android_device_samsung_n7100 到/cm12/device/samsung/目录
Put the kernel in kernel/samsung/smdk4412并且命名为kernel
3.
要求openjdk7,fedora21只提供openjdk8
修改build/core/main.mk
改为requires_openjdk := false
具体:
For building Android, your best bet is to just install the Oracle JDK 7. I downloaded jdk-7u80-linux-x64.tar.gz and put in /opt/oracle/java/.
Then you can just edit build/core/main.mk and force for all cases
requires_openjdk := false
Note that even if you get OpenJDK 1.7 installed on Fedora it returns 'java -version' differently than Ubuntu and you'll have to change the build/core/main.mk check for the version to look for "openjdk" instead of "java" at the beginning of the version.
Using the Oracle JDK is fine, though. It is used for all host types that are not Linux.
4.
错误
build/core/main.mk:118: You are building on a case-insensitive filesystem.
build/core/main.mk:119: Please move your source tree to a case-sensitive filesystem.
build/core/main.mk:120: ************************************************************
build/core/main.mk:121: *** Case-insensitive filesystems not supported. Stop.
solution
Remove this from build/core/main.mk, then compile:
ifneq ($(HOST_OS),windows)
ifneq ($(HOST_OS)-$(HOST_ARCH),darwin-ppc)
# check for a case sensitive file system
ifneq (a,$(shell mkdir -p $(OUT_DIR) ; \
echo a > $(OUT_DIR)/casecheck.txt; \
echo B > $(OUT_DIR)/CaseCheck.txt; \
cat $(OUT_DIR)/casecheck.txt))
$(warning ************************************************************)
$(warning You are building on a case-insensitive filesystem.)
$(warning Please move your source tree to a case-sensitive filesystem.)
$(warning ************************************************************)
$(error Case-insensitive filesystems not supported)
endif
endif
endif
It will disable the case-sensitivity check.
5.
ake: *** 没有规则可以创建“/home/pengfei/work/Android/cm12/out/target/product/n7100/system/bin/gpsd”需要的目标“vendor/samsung/n7100/proprietary/system/bin/gpsd”。 停止
solution
https://github.com/TheMuppets/proprietary_vendor_samsung/tree/cm-12.0
下载n7100和smdk4412-common
直接拷贝到相应的 /vendor/samsung/ 目录下
6.
错误
build/core/product_config.mk:238: *** _nic.PRODUCTS.[[device/samsung/n8000/cm.mk]]: "hardware/samsung/exynos4x12.mk" does not exist。 停止。
** Don't have a product spec for: 'cm_n8000'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
solution
解决办法:缺少samsung硬件基础库。
https://github.com/CyanogenMod/android_hardware_samsung 下载后将里面的文件替换到 hardware/samsung/下面。

7.
[root@localhost android-cm-10.2]# breakfast n8000
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:238: *** _nic.PRODUCTS.[[device/samsung/n8000/cm.mk]]: "device/samsung/n80xx-common/n80xx-common.mk" does not exist。 停止。
Device n8000 not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
^X^CTraceback (most recent call last):
File "build/tools/roomservice.py", line 76, in
result = json.loads(urllib.request.urlopen(githubreq).read().decode())
File "/usr/lib64/python2.6/socket.py", line 354, in read
data = self._sock.recv(rbufsize)
File "/usr/lib64/python2.6/httplib.py", line 542, in read
s = self.fp.read(amt)
File "/usr/lib64/python2.6/socket.py", line 383, in read
data = self._sock.recv(left)
File "/usr/lib64/python2.6/ssl.py", line 215, in recv
return self.read(buflen)
File "/usr/lib64/python2.6/ssl.py", line 136, in read
return self._sslobj.read(len)
KeyboardInterrupt
build/core/product_config.mk:238: *** _nic.PRODUCTS.[[device/samsung/n8000/cm.mk]]: "device/samsung/n80xx-common/n80xx-common.mk" does not exist。 停止。
** Don't have a product spec for: 'cm_n8000'
** Do you have the right repo manifest?
由于n8000的很多驱动是基于 n80xx-common 驱动包的,所以需要预先下载 n80xx-common 驱动包,这也是为何 n8000 驱动包那么小的缘故。
从 https://github.com/CyanogenMod/android_device_samsung_n80xx-common
这里面将 n80xx-common 驱动包下载下来,放到 cm-10/device/samsung/n80xx-common 这个目录下,这个目录本身是没有的,需要新建。
chmod +x android-cm-10.2/device/samsung/n80xx-common/extract-files.sh
https://github.com/CyanogenMod/android_device_samsung_n7100/tree/cm-12.0https://github.com/CyanogenMod/android_device_samsung_smdk4412-common
下载后放到
device/samsung/
8.
一直显示这个错误
make: *** No rule to make target `out/target/product/n7000/kernel', needed by `out/target/product/n7000/boot.img'看看
或者cannot load kernel out/target/product/n7000/kernel
solution
我觉得是因为首先是没有编好内核。
而没能编出来内核是因为我忽略了这一步./extract-files.sh,认为是给电脑编,不需要连接手机,原谅我是小白。
这个脚本的主要作用是将手机中的驱动so库pull出来。
这期间还需要手机的root,国内网站的包刷了,总fail,
这个网站的包能用,下载CF-Auto-Root和Odin 3.09
http://www.ibtimes.co.uk/root-galaxy-note-2-n7100-all-android-4-4-2-kitkat-firmware-1446111
9.
root之后进行./extract-files.sh,依然报错: adbd cannot run as root in production builds
root不彻底
http://stackoverflow.com/questions/25271878/android-adbd-cannot-run-as-root-in-production-buildshttp://forum.xda-developers.com/showthread.php?t=1687590

The problem is that, even though your phone is rooted, the 'adbd' server on the phone does not use root permissions. You can try to bypass these checks or install a different adbd on your phone or install a custom kernel/distribution that includes a patched adbd.
Or, a much easier solution is to use 'adbd insecure' from chainfire which will patch your adbd on the fly. It's not permanent, so you have to run it before starting up the adb server (or else set it to run every boot). You can get the app from the google play store for a couple bucks:
https://play.google.com/store/apps/details?id=eu.chainfire.adbd&hl=en
Or you can get it for free, the author has posted a free version on xda-developers:
http://forum.xda-developers.com/showthread.php?t=1687590
Install it to your device (copy it to the device and open the apk file with a file manager), run 'adb insecure' on the device, and finally kill the adb server on your computer:
% adb kill-server
And then restart the server and it should already be root.
这段英文讲的很详细,大概ia就算第二个网站可以免费下到adb insecure,下到以后直接复制到手机的文件夹里,以便可以直接从手机操作,点击安装起来。运行这个软件,点击两个钩:enable insecure adbd enable at boot.之后要在电脑上面adb kill-server。再重新连接adb shell su。
再进到目录/device/samsung/n7100下,./extract-files.sh。
下面看看怎么编内核
总体流程是这个样子的:
$ cd ~/cm12
$ source build/envsetup.sh
$ breakfast n7100
$ cd /device/samsung/n7100
$ ./extract-files.sh。。。。。。做这步的时候,手机要root。
回到/cm12$ croot
http://ju.outofmemory.cn/entry/226866 这篇文章非常详细并且正确
按照文中所说:进入kernel目录下面,kernel/samsung/smdk4412
make ARCH=arm cyanogenmod_n7100_defconfig
make ARCH=arm menuconfig
cp .config arch/arm/configs/cyanogenmod_n7100_defconfig
make mrproper。。。。。这步不能丢
回到根目录mka bootimage

http://www.yayakq.cn/news/873568/

相关文章:

  • 官方网站建设的四个步骤服装设计学校排名
  • 汕头市建设局造价信息网站简单的网站建设怎么做
  • 北辰正方建设集团网站网站开发专业主修课程
  • 做精美得ppt网站知乎网站网站做代理怎么发展下线
  • php 设置网站根目录企业解决方案平台
  • 贵州中航建设集团网站未来销售最好的行业
  • 中关村网站建设网站建设合同的性质
  • 宁夏网站建设公司手机应用市场下载安装app
  • 做网站电话沧州网站存在的问题及改进措施
  • 多语言网站模板郴州新网招聘网最新招聘信息
  • 品牌形象网站建设网站建站平台是什么
  • php网站服务器怎么来wordpress 恢复备份
  • vs2010 iis 网站开发商务网站设计与开发
  • 网站如何建设与优化wordpress调用python
  • 自适应网站怎么做网站标题优化 英文
  • 徐州建站网站模板做一个网站怎么赚钱
  • 中小企业建网站注意从化公司网站建设
  • 罗定市建设局网站企业网站管理系统程序名称
  • 网站开发语言总结网页开发用什么编程语言
  • 怎么用手机做刷赞网站汕头seo关键词排名
  • 厦门南希网站建设云南网站开发培训机构排行
  • 广东网站建设联系电话网站页面设计分析
  • 新网站如何做sem网站建设视频教程百度云
  • 杭州定制网站晋中市住房保障和城乡建设局网站
  • 网站建设51jyoo360做企业网站多少钱
  • 网页制作与网站建设试题和答案合肥网站设计高端公司
  • 南宁学网站建设有做装修效果图赚钱的网站吗
  • 可以访问的国外网站网站推广软文选天天软文
  • 贵阳网站网站建设口碑营销的好处
  • 枣庄做网站的公司公众号怎么制作投票活动