ubuntu配置通用编译环境

第一步,安装JDK,参考手动安装JDK

第二步,安装交叉编译工具链

touch一个脚本文件,将下列代码贴入脚本文件

#!/bin/bash
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install ia32-libs -y
sudo apt-get install ncurses-dev -y
sudo apt-get install build-essential git u-boot-tools -y
sudo apt-get install texinfo texlive ccache zlib1g-dev gawk bison flex gettext uuid-dev -y
sudo apt-get install build-essential u-boot-tools uboot-mkimage -y
sudo apt-get install binutils-arm-linux-gnueabihf gcc-arm-linux-gnueabi -y
sudo apt-get install gcc-arm-linux-gnueabihf cpp-arm-linux-gnueabihf -y
sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev -y
sudo apt-get install git wget fakeroot kernel-package zlib1g-dev libncurses5-dev -y

执行一遍。

第三步,安装lunch

sudo apt-get install python-lunch -y

第四步,安装openssl library

sudo apt-get install libssl-dev

安装结束,可以导入linux或Android源码进行编译了。

你可能感兴趣的:(程序拾遗,ubuntu,编译环境安装)