diff --git a/Software/Development/Environment/Autoconf/Configure_编译配置选项.md b/Software/Development/Environment/Autoconf/Configure_编译配置选项.md new file mode 100644 index 0000000..abd067f --- /dev/null +++ b/Software/Development/Environment/Autoconf/Configure_编译配置选项.md @@ -0,0 +1,47 @@ +# Configure 编译配置选项 + +Configure 脚本是 Autoconf 工具的基本应用。 + +```bash +autoreconf -fvi +# 或 +autogen.sh + +./configure [各种可选参数...] +``` + +可选参数如下: + +## 1. --build + +执行代码编译的主机,可选项如下: + +* arm-linux +* x86-64-linux +* i386-linux + +```bash +./configure --build=arm-linux +``` + +## 2. --host + +指定该软件将运行的平台,可选项与 --build 一致。 + +示例如下: + +```bash +./configure --host=arm-linux +``` + +## 3. --target + +这个选项只有在建立交叉编译环境的时候用到,正常编译和交叉编译都不会用到。他用 build 主机上的编译器,编译一个新的编译器(binutils, gcc,gdb 等),这个新的编译器将来编译出来的其他程序将运行在 target 指定的系统上。 + +## 4. --prefix + +指定 install 路径,比如: + +```bash +./configure --prefix=$(pwd)/install +``` diff --git a/Software/System/Linux/Editions/Ubuntu/Ubuntu_初始配置.md b/Software/System/Linux/Editions/Ubuntu/Ubuntu_初始配置.md index 8dabc35..afee108 100644 --- a/Software/System/Linux/Editions/Ubuntu/Ubuntu_初始配置.md +++ b/Software/System/Linux/Editions/Ubuntu/Ubuntu_初始配置.md @@ -106,7 +106,7 @@ dpkg -l ## 安装开发工具 ```bash -sudo apt-get install bison build-essential make gcc gcc-multilib global git-core git openssl module-init-tools gnu-efi xz-utils debianutils iputils-ping e2fslibs-dev ccache gawk wget diffstat bc zip unzip chrpath socat texinfo cpio flex minicom xterm gtkterm parted gparted tmux python python-pip python-wand python-crypto python3 python3-pip python3-pexpect libncurses-dev libncurses5-dev libncursesw5-dev libssl-dev libpciaccess-dev uuid-dev libsystemd-dev libevent-dev libxml2-dev libusb-1.0-0-dev liblz4-tool libsdl1.2-dev libssl-dev libblkid-dev libcv-dev libopencv-*-dev protobuf-c-compiler protobuf-compiler libprotobuf-dev libboost-dev libleveldb-dev libgflags-dev libgoogle-glog-dev libblas-dev liblmdb-dev libsnappy-dev libopenblas-dev python-numpy libboost-python-dev gfortran python-scikits-learn python-skimage-lib usbutils pciutils module-init-tools +sudo apt-get install bison build-essential make gcc gcc-multilib global git-core git openssl module-init-tools gnu-efi xz-utils debianutils iputils-ping e2fslibs-dev ccache gawk wget diffstat bc zip unzip chrpath socat texinfo cpio flex minicom xterm gtkterm parted gparted tmux python python-pip python-wand python-crypto python3 python3-pip python3-pexpect libncurses-dev libncurses5-dev libncursesw5-dev libssl-dev libpciaccess-dev uuid-dev libsystemd-dev libevent-dev libxml2-dev libusb-1.0-0-dev liblz4-tool libsdl1.2-dev libssl-dev libblkid-dev libcv-dev libopencv-*-dev protobuf-c-compiler protobuf-compiler libprotobuf-dev libboost-dev libleveldb-dev libgflags-dev libgoogle-glog-dev libblas-dev liblmdb-dev libsnappy-dev libopenblas-dev python-numpy libboost-python-dev gfortran python-scikits-learn python-skimage-lib usbutils pciutils module-init-tools autoconf automake autotools-dev libltdl-dev libtool sudo pip3 install kconfiglib ```