中文字幕理论片,69视频免费在线观看,亚洲成人app,国产1级毛片,刘涛最大尺度戏视频,欧美亚洲美女视频,2021韩国美女仙女屋vip视频

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
android4.0源碼編譯過程中中各種錯誤解決
1.<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
錯誤打印如下:
host C++: obbtool <= frameworks/base/tools/obbtool/Main.cpp
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o] Error 1
上網(wǎng)查了查,解決方法如下:
修改源碼目錄下/build/core/combo/HOST_linux-x86.mk文件:
將以下語句
HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0
修改為
HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
ATTENTION:
There is a SPACE between the -U_FORTIFY_SOURCE and -D_FORTIFY_SOURCE
查看服務(wù)器上的設(shè)置,這里是沒有進行修改的。
沒有進行上述修改:參照http://blog.csdn.net/skypine_lee/article/details/7983825進行了gcc編譯器的替換。進行編譯仍然是有如下錯誤。
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o] Error 1
ics compile fail!

2.frameworks/compile/slang/slang_rs_export_foreach.cpp: In static member functio
錯誤打印如下:
frameworks/compile/slang/slang_rs_export_foreach.cpp: In static member function 'static slang::RSExportForEach* slang::RSExportForEach::Create(slang::RSContext*, const clang::FunctionDecl*)’:
frameworks/compile/slang/slang_rs_export_foreach.cpp:249:23: error: variable 'ParamName’ set but not used [-Werror=unused-but-set-variable]
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/slang_rs_export_foreach.o] Error 1
ics compile fail!
解決方法如下: 
# vi myandroid/frameworks/compile/slang/Android.mk  
在打開的makefile文件中按照下面更改:
         -----local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter -Werror
        ++++local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter
3.make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libMesa_intermediates/src/glsl/linker.o] Error 1
錯誤打印如下:
external/mesa3d/src/glsl/linker.cpp: In function 'void
assign_varying_locations(gl_shader_program*, gl_shader*, gl_shader*)’:
external/mesa3d/src/glsl/linker.cpp:1394:49: error: expected primary-
expression before ',’ token
external/mesa3d/src/glsl/linker.cpp:1394:50: error: 'varyings’ was not
declared in this scope
external/mesa3d/src/glsl/linker.cpp:1394:58: error: 'offsetof’ was not
declared in this scope
external/mesa3d/src/glsl/linker.cpp:1395:48: error: expected primary-
expression before ',’ token
external/mesa3d/src/glsl/linker.cpp:1412:47: error: expected primary-
expression before ',’ token
external/mesa3d/src/glsl/linker.cpp:1412:48: error: 'position’ was not
declared in this scope
external/mesa3d/src/glsl/linker.cpp:1414:47: error: expected primary-
expression before ',’ token
external/mesa3d/src/glsl/linker.cpp:1414:48: error: 'pointSize’ was
not declared in this scope
external/mesa3d/src/glsl/linker.cpp:1424:47: error: expected primary-
expression before ',’ token
external/mesa3d/src/glsl/linker.cpp:1424:48: error: 'position’ was not
declared in this scope
external/mesa3d/src/glsl/linker.cpp:1428:47: error: expected primary-
expression before ',’ token
external/mesa3d/src/glsl/linker.cpp:1428:48: error:
'frontFacingPointCoord’ was not declared in this scope
external/mesa3d/src/glsl/linker.cpp:1431:47: error: expected primary-
expression before ',’ token
external/mesa3d/src/glsl/linker.cpp:1431:48: error:
'frontFacingPointCoord’ was not declared in this scope
external/mesa3d/src/glsl/linker.cpp: In function 'void
link_shaders(const gl_context*, gl_shader_program*)’:
external/mesa3d/src/glsl/linker.cpp:1734:49: error: expected primary-
expression before ',’ token
external/mesa3d/src/glsl/linker.cpp:1734:50: error: 'fragColor’ was
not declared in this scope
external/mesa3d/src/glsl/linker.cpp:1734:59: error: 'offsetof’ was not
declared in this scope
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/
libMesa_intermediates/src/glsl/linker.o] Error 1
解決方法如下:
把 "#include <cstddef>" 添加到 linker.cpp 文件頭部。
4.錯誤:make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/liboprofile_pp_intermediates/arrange_profiles.o]    
解決方法:確認你使用的gcc和g++的4.4版本,而不是更高的版本。 
Ubuntu 12.04 gcc版本 為 4.6,但是我們需要 gcc 4.4,具體步驟如下: 
  sudo apt-get install -y gcc-4.4 g++-4.4 g++-4.4-multilib  
  sudo mv /usr/bin/gcc /usr/bin/gcc-orig  
  sudo mv /usr/bin/g++ /usr/bin/g++-orig  
  sudo ln -s /usr/bin/gcc-4.4 /usr/bin/gcc  
  sudo ln -s /usr/bin/g++-4.4 /usr/bin/g++
5.錯誤:make: *** [out/target/common/obj/APPS/CtsVerifier_intermediates/classes-full-debug.jar]
解決方法:sudo update-alternatives --config javac,選擇jdk1.6.0,而不是openjdk。
注:我編譯期間未見此報錯
6.錯誤:make: *** [out/target/common/obj/APPS/android.core.tests.libcore.package.com.no-core-tests-res_intermediates    /  noproguard.classes-with-local.dex] Killed
解決方法:此問題是因為編譯android4.0需要4GB的RAM或SWAP空間,而ubuntu默認的1GB的,所以,增加swap空間即可,執(zhí)行命令如下:
sudo dd if=/dev/zero of=/boot/swapfile bs=1024 count=4194304
sudo mkswap -v1 /boot/swapfile
sudo swapon /boot/swapfile
free
sudo vi /etc/fstab
/boot/swapfile swap swap defaults 1 1
注:我編譯期間未見此報錯,我的SWAP也只有1GB,未需增加。
7.報錯如下:
1)make: *** No rule to make target 'kernel_imx/arch/arm/configs/imx6_android_defconfig' , needed by 'kernel_imx/.config'. Stop.
解決方法:此問題是因為內(nèi)核源碼未下全,執(zhí)行如下命令即可:
$ cd kernel_imx
$ git checkout imx-android-13.4.1
2)
解決方法:此問題是因為內(nèi)核源碼未下全,執(zhí)行如下命令即可:
$ cd uboot-imx
$ git checkout imx-android-13.4.1
注:我編譯使用的是imx-android-13.4.1的內(nèi)核,根據(jù)所需對應(yīng)更改即可。
8.報錯如下:
build/core/config.mk:347:  *** Error: could not find jdk tools.jar, please install JDK6, which you can download from java.sun.com. Stop.

我按照文檔下載完JDK,參照jb4.3_1.1.0《Android user guide》執(zhí)行l(wèi)unch sabresd_6dq-user還是報錯,暫時未有更改GCC版本。我現(xiàn)在下載的是android 4.3版本的源碼。
解決方法:下載的jdk tool版本不對,這里需要到官網(wǎng)上下載一下jdk-6u45-linux-x64.bin,重新安裝一下。鏈接http://www.oracle.com/technetwor ... javase6-419409.html。
安裝jdk1.6步驟
# cd /usr
# sudo mkdir java
# cd java 
# sudo cp <路徑>/jdk-6u45-linux-x64.bin ./
# sudo chmod 777 ./jdk-6u45-linux-x64.bin
-----------Begin to install jdk1.6-----開始安裝 jdk1.6
# sudo ./jdk-6u45-linux-x64.bin
---------Configuring Environmet Variables--------------配置環(huán)境變量
# cd /etc
# sudo cp profile profile-bak
# sudo gedit profile
Adding the following lines at the beginning:
export JAVA_HOME=/usr/java/jdk1.6.0_45
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$PATH:$JRE_HOME/bin

查看 java jdk1.6 是否已經(jīng)安裝成功
# source ./profile
# java –version
注:如再次出現(xiàn)同樣的錯誤,請查看環(huán)境是否修改正確。
9.報錯如下:
在使能UBIFS后,編譯是出現(xiàn)error:
 
本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
Ubuntu 12.04 編譯Android 4.0.3 的環(huán)境配置
Android編譯環(huán)境搭建
tiny_4412編譯環(huán)境搭建ubuntu12.04
EMC2 安裝 包
在Windows下使用nmake+Makefile+編譯ZThread庫(附例子)
Ubuntu 16.04下iTop4412環(huán)境搭建+Android4.0.3編譯
更多類似文章 >>
生活服務(wù)
熱點新聞
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服