distcc

2024-05-15 01:18
文章标签 distcc

本文主要是介绍distcc,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

distcc 是一个分布式编译的工具的设置distcc 是一个分布式编译的工具1.安装distccapt-get install distcc2.修改/etc/default/distcc配置文件# Defaults for distcc initscript# sourced by /etc/init.d/distcc## should distcc be started on boot?#STARTDISTCC="true"#STARTDISTCC="false"## Which networks/hosts should be allowed to connect to the daemon?# You can list multiple hosts/networks separated by spaces.# Networks have to be in CIDR notation, f.e. 192.168.1.0/24# Hosts are represented by a single IP Adress## ALLOWEDNETS="127.0.0.1"ALLOWEDNETS="192.168.0.1/24"## Which interface should distccd listen on?# You can specify a single interface, identified by it's IP address, here.## LISTENER="127.0.0.1"LISTENER="192.168.0.62"## You can specify a (positive) nice level for the distcc process here## NICE="10"NICE="10"## You can specify a maximum number of jobs, the server will accept concurrently## JOBS=""JOBS=""## Enable Zeroconf support?# If enabled, distccd will register via mDNS/DNS-SD.# It can then automatically be found by zeroconf enabled distcc clients# without the need of a manually configured host list.## ZEROCONF="true"ZEROCONF="true" 3.修改vi /etc/init.d/distcc脚本,添加交叉工具链,可执行文件的位置PATH=/home/project/trunk/3rdpartyPackage/qt4.6.2/bin:/home/project/trunk/3rdpartyPackage/ncurses/bin:/home/project/toolchain/armv6/codesourcery/bin:/home/project/toolchain/armv6/codesourcery/arm-none-linux-gnueabi/libc/usr/bin:/home/project/trunk/3rdpartyPackage/qt4.6.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/project/trunk/3rdpartyPackage/qt4.6.2/bin:$PATH4.制件distcc编译器链接文件cd /usr/lib/distccln -s ../../bin/distcc arm-none-linux-gnueabi-g++ln -s ../../bin/distcc arm-none-linux-gnueabi-gcc5.重新启动distcc服务6.安装ccache.以提速编译apt-get install ccache.7.运行以下环境export PATH=/home/project/trunk/3rdpartyPackage/qt4.6.2/bin:/home/project/trunk/3rdpartyPackage/ncurses/bin:/home/project/toolchain/armv6/codesourcery/bin:/home/project/toolchain/armv6/codesourcery/arm-none-linux-gnueabi/libc/usr/bin:/home/project/trunk/3rdpartyPackage/qt4.6.2/bin:$PATHexport QTDIR=/home/project/trunk/3rdpartyPackage/qt4.6.2export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATHexport PATH=$PATH:$QTDIR/bin#export MANPATH=$QTDIR/man:$MANPATH#export QMAKESPEC=/unix/project/yuante-ivi/3rdpartyPackage/qt4.6.2/mkspecs/linux-g++#/usr/bin/distccd --daemon --allow 192.168.0.0/24 --user openexport DISTCC_HOSTS='192.168.0.248 192.168.0.216 192.168.0.219 192.168.0.215 192.168.0.218 192.168.0.220 192.168.0.64 192.168.0.110 192.168.0.52'export DISTCC_LOG="/var/log/distcc.log"export CC="distcc arm-none-linux-gnueabi-gcc"export CXX="distcc arm-none-linux-gnueabi-g++"alias make="make -j100 CC='ccache distcc arm-none-linux-gnueabi-gcc' CXX='ccache distcc arm-none-linux-gnueabi-g++'"

这篇关于distcc的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/990391

相关文章

debian配置distcc分布式编译

前言 distcc 是一个用于在网络上的多台机器上分发 C、C++、Objective C 或 Objective C++ 代码构建的程序。 distcc 应始终生成与本地构建相同的结果,易于安装和使用,并且通常比本地编译快得多。 distcc 不要求所有机器共享文件系统、同步时钟或安装相同的库或头文件。如果安装了交叉编译器,它们甚至可以具有不同的处理器或操作系统。 它甚至不要求远程主机安装

Using Distcc between Ubuntu Gentoo

distcc 是linux分布式编译工具,可以大大提高编译速度。 下面就是在两台机子上进行的distcc的配置,一台是gentoo,另一台是ubuntu Section 1 - Setting up Distcc on gentoo.a) Install distcc and distcc-config Code: emerge distccemerge distcc-config

分布式编译distcc

工程代码编译速度太慢,决定采用分布式编译来提高编译速度. distcc ,请参考https://www.distcc.org/ 安装 我用的distcc的版本是distcc-3.2rc1, 下载源码,安装步骤如下: ./autogen.sh ./configure --disable-Werror --prefix=/usr/local/distcc-3.2rc1 make make

分布式编译distcc

工程代码编译速度太慢,决定采用分布式编译来提高编译速度. distcc ,请参考https://www.distcc.org/ 安装 我用的distcc的版本是distcc-3.2rc1, 下载源码,安装步骤如下: ./autogen.sh ./configure --disable-Werror --prefix=/usr/local/distcc-3.2rc1 make make

distcc分布式编译

distcc https://gitee.com/bison-fork/distcc.git 下载工具链 mingw,https://www.mingw-w64.org/downloads/#w64devkitperl,https://strawberryperl.com/releases.html免安装zip版本,autoconf等脚本依赖perlautoconf、automake,htt