下载

0下载券

加入VIP
  • 专属下载特权
  • 现金文档折扣购买
  • VIP免费专区
  • 千万文档免费下载

上传资料

关闭

关闭

关闭

封号提示

内容

首页 ubuntu-android-download(Ubuntu Android下载)

ubuntu-android-download(Ubuntu Android下载).doc

ubuntu-android-download(Ubuntu …

he建香
2019-01-08 0人阅读 举报 0 0 0 暂无简介

简介:本文档为《ubuntu-android-download(Ubuntu Android下载)doc》,可适用于社会民生领域

ubuntuandroiddownload(UbuntuAndroid下载)ubuntuandroiddownload(UbuntuAndroid下载)AsanopensourcemobilephoneoperatingsystemAndroid,oncelaunched,ithasattractedgreatconcernintheindustryGooglenowAndroidsourcecodeversionnumberisrMoreandmoreenthusiastsbegantojointheAndroidsourcecoderesearch,thefollowingonUbuntu,ifyougetthelatestAndroidsourcecodeinstallingGITandgnupginput$sudoaptgetinstallgitcoregnupginstallothertools$sudoaptgetinstallflexbisonGPERFlibsdldevlibesddevlibwxgtkdevbuildessentialzipzlibgdevcurllibncursesdevinstallValgrindtools$sudoaptgetinstallValgrindinstallJavaSDK$sudoaptgetinstallsunjavajdk$sudoaptgetinstallsunjavajdk$cdetcalternatives$sudoRMjavadocgzJavadoc$sudolnsusrlibjvmjavasunmanmanjavadocgzjavadocgz$sudolnsusrlibjvmjavasunbinjavadocJavadocAndroidonlysupportsmorethanversionsofJavaSDK,andtheversionoftheJavaSDKinAndroidSDKJavadocwillcompiletimeerrors,hereinmysolutiontoinstallJavaSDK,andtheninstallJavaSDK,thenJavaSDKsystemlinktoJavaSDK,isonlyJavadocandjavadocgzlinktoJavaSDK,thebenefitsofdoingsoistocompiletheAndroidsourcecodeandAndroidapplicationdevelopment,usingjavaSDK,SDKdoconlyintheAndroidcompiler,usingjavaSDKversionofJavadocandjavadocgzdownloadrepotools$mkdir$HOMEbin$viBashrcjoinExportPATH=$HOMEbin:$PATH$sourceBashrc$curl$HOMEbinrepo$CD$HOMEbin$ChmodxrepoexportAndroidproject$CD$MKDIRAndroid$CDAndroid$repoinitugit:androidgitkernelorgplatformmanifestgitAndcompletetheconfigurationofthepromptsothatthedirectorywebuilthasalreadybeenlinkedtotheAndroidGooglesourcelibrarystartdownloadingAndroidplatformsourcecode$reposyncBecausetheAndroidsourcecodeisverylarge,nowthecompletecodehasreachedashighasG,sothemostsubfolderforsynchronousdownloadIfyouwanttodownloadkernel:$reposynckernelNow,youcandosomethingelse,letthecomputerautomaticallycompletesourcecodedownloadworkThisoperationistodownloadtheentireAndroidsourcetothelocal,thespecifictimespentandspeedrelated,CupcakeversionofthesourcecodeisaboutGYoucanseetheAndroidsourcecodeintothe$HOMEAndroiddirectoryasfollows:repoisaseriesoffilesynchronizationmanagementusedSomelibrariesneedbionicAndroidcompilationprocessSomeofthefilesbootableresponsibleforstartingandbackupSomeofthemakefile'smainbuildandcompilerconfigurationfilesdalvikafterJavaGooglevirtualmachineoptimizedWiththedevelopmentofdevelopmentsomefolders,includingsimulatorsandtoolsetcTheintroductionofexternalfunctionlibraryinAndroidexternalframeworksmiddlewarepartSomesupportfiles,thehardwareandthehardwareincludingWiFi,telecommunicationsmoduleetckernelafteroptimizationandmodificationoftheLinuxkernelpackagesallofthetopapplicationpackagesprebuildAndroidcompilertoolsdirectorysystemsomesystemlevelfilesKernelistoseparaterepoinitreposyncTheaddressisdifferentTheaptgetcommandgenerallyrequiresrootpermissiontoexecute,sogenerallyfollowthesudocommandSudoaptgetinstallgitcorecurlThiscommandwillinstallgitcoreandcurlsoftwarefromtheInternetinthewarehouseWherecurlisafiletransfertoolusingURLsyntaxtoworkatthecommandline,itsupportsmanyprotocols,includingFTP,FTPS,HTTP,HTTPS,TELENTandsoon,weneedtoinstallitforReposcriptfilefromthenetworkCurl~binrepoThiscommandwilldownloadthereposcriptfiletothebindirectoryofthecurrenthomedirectoryandsaveitinthefilerepoFinally,weneedtogiverepoexecutablefilepermissionsChmodax~binrepoNext,wecanusereposcriptsandGit,curlsoftwaretoobtainthesourcecodeofAndroid:First,buildadirectory,suchas~androidThenusethefollowingcommandtoobtainthesourcecode:Repoinitugit:androidgitkernelorgplatformmanifestgitThisprocesswillcontinueforalongtime(Idownloadedaday),afterdownloadingrepoinitializedinandroidwillseethissuggeststhatlocalrepositoryhasbeeninitialized,andcontainsthelatestsourcecodeIfwewanttotakethecodeofabranchversion,ratherthanthemainlinecode,weneedtospecifythenameofbranchusingthebparameter,forexample:Repoinit–ugit:androidgitkernelorgplatformmanifestgit–BCupcakeIfwejustwanttogetaprojectcode,suchaskernelcommon,donotneedreposcript,youcandirectlyusetheGittools,ifcarefullystudiedthereposcript,thereposcriptisactuallyGittoolstogeteachProjectandorganizethemintoaprojectinAndroidGitclonegit:androidgitkernelorgkernelcommongitWeusethereposcripttogetalltheprojects,andthenweneedtosynchronizetheentireAndroidcodetreetothelocal,asfollows:ReposyncprojectprojectIusethereposynccommanddirectlytothelocalsynchronizationofallitemsTwo,sourcecodecompilationAfterallthesynchronizationisfinished,entertheAndroiddirectory,andusethemakecommandtocompile,youwillfindthefollowingerrorprompts:HostC:libneocgiexternalclearsilvercgicgicExternalclearsilvercgicgic:::error:zlibh:NosuchfileordirectoryThisisbecausewelackzlibgdev,andweneedtoinstallitfromthesoftwarerepositoryusingtheaptgetcommand,asfollows:SudoaptgetinstallzlibgdevSimilarly,wealsoneedthefollowingsoftwareinstalledSudoaptgetinstallflexSudoaptgetinstallbisonSudoaptgetinstallGPERFSudoaptgetinstalllibsdldevSudoaptgetinstalllibesddevSudoaptgetinstalllibncursesdevSudoaptgetinstalllibxdevAftertheabovesoftwareisinstalled,runthemakecommandtocompiletheAndroidsourcecodeagainThistimeyouwillfindalotofjavafilescannotcompileerrors,OpentheAndroidsourcecode,wecanseethattherearealotofJavasourcefilesunderandroiddalviklibcoredomsrctestjavaorgwcdomts,whichmeansthatbeforecompilingAndroid,youneedtoinstallJDKFirst,fromthesunofficialwebsitetodownloadthejdkulinuxibinfileandinstallitInUbuntu,theetcprofilefileisaglobalenvironmentvariableconfigurationfilethatappliestoallshellWhenwegototheLinuxsystem,theetcprofilefiletostartfirst,andthenstarttheuserdirectoryunderthe~bashprofile,~bashloginor~profilefilesinoneorder,andexecutedtheorderIfthe~bashprofilefileexists,thegeneralwillexecutethe~bashrcfileSoweonlyneedtoputtheJDKintotheetcprofiledirectory,asfollows:JAVAHOME=usrlocalsrcjdkPATH=$PATH:$JAVAHOMEbin:usrlocalsrcandroidsdklinuxxrtools:~binThenrestartthemachine,andentertheJava–versioncommand,whichpromptsthefollowinginformationtorepresenttheconfigurationsuccess:Javaversion"""Java(TM)SERuntimeEnvironment(buildb)JavaHotSpot(TM)ClientVM(buildb,mixedmode,sharing)Tocompilethecompleteproject,theterminalwillappearasbelow:TargetsystemFSimage:outtargetproductgenericobjPACKAGINGsystemimageunoptintermediatessystemimgInstallsystemFSimage:outtargetproductgenericsystemimgTargetramdisk:outtargetproductgenericramdiskimgTargetUserDataFSimage:outtargetproductgenericuserdataimgInstalledfilelist:outtargetproductgenericinstalledfilestxtRootdfsundesktop:binandroid#Three,sourceoperationAftercompilingthecompleteproject,ifweneedtowatchthecompiledoperationeffect,thenweneedtoinstallthesimulatorandroidsdklinuxxrinthesystem,andthedownloadaddressofthisSDKis:Linux:Mac:Windows:Afterdecompression,youneedtoaddtheusrlocalsrcandroidsdklinuxxrtoolsdirectorytothesystemenvironmentvariableetcprofileThenfindthecompiledAndroidfiledirectoryout,wefoundthatinmanyandroidouthostlinuxxbinapplications,thefoundationoftheseapplicationsistoAndroid,soweneedtoputthisdirectoryisalsoaddedtothePATHsystem,addthefollowinginthe$HOMEProfilefile:PATH=$PATH:$HOMEandroidouthostlinuxxbin"Next,weneedtoloadthemirrorfileofAndroidintoemulatorsothatemulatorcanseetheactualeffectofAndroidrunningandaddthefollowingcontentsinthe$HOMEprofilefile:ANDROIDPRODUCTOUT=$HOMEandroidouttargetproductgenericExportANDROIDPRODUCTOUTThenrestartthemachineHereyoucanenterthedirectoryandlaunchthesimulatorsimulatorCD$HOMEandroidouttargetproductgenericEmulatorimagesystemimgdatauserdataimgramdiskramdiskimgSummarizethekeypointsintheinstallationprocess:The:JDKversionmustbeinstalled:usethefollowingcommandtoensurethattherequiredsoftwareisproperlyinstalledSudoaptgetinstallflexbisonGPERFlibsdldevlibesddevlibwxgtkdevbuildessentialPythongitValgrindcurl:memoryandvirtualmemoryguaranteemorethanGB,youcanusethecommandlinefreemtoseeifthememoryisenough,ifthememoryisnotenough,terminalstagnationCompilingenvironmentUbuntuDesktopDownloadandcompileprocessesAccordingto'sinstructions,allthesourcecodewasdownloadedsuccessfully,andthewholedirectoryfilewasclosetoGPreliminarypreparation:InstalltheGITtoolaptgetinstallgitcorekernel,sudocommanddownloadrepotoolsCurl$HOMEbinrepoCD$HOMEbinChmodxrepoexportAndroidprojectMKDIRAndroidCDAndroidRepoinitugit:androidgitkernelorgplatformmanifestgitbCupcake(ifthereisnoerror,minutesshouldpromptsuccess,relatedtonetworkspeed)downloadthesourcecodeofAndroidplatformReposync(thiswilllastforaperiodoftime,withyourownspeed)compiler,suggesttoinstallsoftwarepackagesareasfollows(usingtheaptgetinstallation)FlexbisonGPERFlibsdldevlibesddevcurllibncursesdevzlibgdevlibxdevcompilerMake(verylongwait,andyourCPUspeedhasacertainrelationship,suggestingthatitiscompiledbeforesleep)Whencompilingthefollowingsourcecodeneedstoaddthecorrespondingheaderfiles(include)androidcupcakeframeworksbasetoolsaidlaidlcppstringh,stdlibhandroidcupcakeframeworksbasetoolsaidloptionscppstringhandroidcupcakeframeworksbasetoolsaidlsearchpathhstring,stringhandroidcupcakeframeworksbasetoolsaidlgeneratejavastringhandroidcupcakeexternalsrectoolsthirdpartyOpenFstfstlibvectorfsthstringhandroidcupcakeexternalsrectoolsthirdpartyOpenFstfstlibsymboltablecppstringhandroidcupcakebuildtoolsatreefilescppstringh,stdlibhandroidcupcakebuildtoolsatreefscppstringhandroidcupcakeframeworksbasetoolslocalizefileutilscppstringh,stdlibhandroidcupcakeframeworksbasetoolslocalizelocalizecppstringh,stdlibhandroidcupcakeframeworksbasetoolslocalizePerforcecppstringh,stdlibhandroidcupcakeframeworksbasetoolslocalizeXLIFFFilecppiostream,algorithmandroidcupcakeframeworksbasetoolslocalizeXMLHandlercppiostream,algorithmandroidcupcakedevelopmentemulatorqtoolsdmtracecppunistdhThecompileriscompleted,willbefoundinthecodedirectoryhasaoutdirectorySixSetuptheoperatingenvironment($HOMEprofilefiles),addthefollowingcontent#AndroidPATH=$PATH:$HOMEandroidouthostlinuxxbin"ANDROIDPRODUCTOUT=$HOMEandroidouttargetproductgenericExportANDROIDPRODUCTOUTAftersetup,quitandloginagainrunwithvirtualmachinesCD$HOMEandroidouttargetproductgenericEmulatorimagesystemimgdatauserdataimgramdiskramdiskimgYoushouldseethefollowingpicture(thefirsttimeitopens,thereshouldbeadialogboxtoGooglefeedback,pressOK)

用户评价(0)

关闭

新课改视野下建构高中语文教学实验成果报告(32KB)

抱歉,积分不足下载失败,请稍后再试!

提示

试读已结束,如需要继续阅读或者下载,敬请购买!

评分:

/12

VIP

在线
客服

免费
邮箱

爱问共享资料服务号

扫描关注领取更多福利