About Xorg building from the source codes

来源:互联网 发布:淘宝旺铺有什么功能 编辑:程序博客网 时间:2024/05/28 11:48

Start of the Xorg building is very simple:

mkdir -p /home/xorg/srccd /home/xorg/srcgit clone git://anongit.freedesktop.org/git/xorg/util/modular util/modularmkdir -p /home/xorg/buildcd /home/xorg/src./util/modular/build.sh --clone /home/xorg/build

The build process takes a long time and can failed due to any failed dependencies. But if we start it again If it again start then the building will start from the very beginning. To prevent this moment we should use the key autoresume:

./util/modular/build.sh --clone --autoresume built.modules /home/xorg_build/build/

We can also start the building for a specific list of modules. Full list of modules can be seen in such a way:

./util/modular/build.sh -L > build_modules

Modules that do not require the building we should comment out wich the # symbol and start the building with the key modfile:

./util/modular/build.sh --clone --autoresume built.modules --modfile build_modules /home/xorg_build/build/

Error while Xorg building:

error: possibly undefined macro: AC_CHECK_FILE

The solution:
the package pkg-config have been not installed

# apt-get install pkg-config

Error while Xorg building:

configure: error: zlib.h is required to compile libfontenc

The solution:

# apt-get install zlib1g-dev

Error while Xorg building:

configure: error: yacc not found - unable to compile laygram.y

The solution:

# apt-get install bison

Error while Xorg building:

checking for freetype-config... noconfigure: error: You must have freetype installed; see http://www.freetype.org/

The solution:

# apt-get install libfreetype6-dev

Error while Xorg building:

configure: error: Package requirements (fontconfig >= 2.5.92) were not met:No package 'fontconfig' found

The solution:

# apt-get install libfontconfig1-dev

Error while Xorg building:

configure: error: No suitable SHA1 implementation found

The solution:

# apt-get install libgcrypt11-dev

Error while Xorg building:

Can't exec "intltoolize": No such file or directory

The solution:

# apt-get install intltool

After building the starting of Xorg and further start of any graphical shell looks like this:

As en example there is the starting of the graphical shell xfce4:
а) we can run: startx or startxfce4
б) or run the applications step by step by ourself:
1. Xorg &
2. export DISPLAY=:0.0
3. /usr/bin/xfce4-session

As en example there is the starting of xterm (graphical terminal of command line):
1. Xorg &
2. export DISPLAY=:0.0
3. xterm -g 80x40+0+0 &

原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 戒奶宝宝不喝奶粉怎么办 2岁半宝宝老晚睡怎么办 老是熬夜然后想调生物钟怎么办 一个月宝宝睡眠不好怎么办 个人怎么办一清pos机 社保到退休年龄未交满15年怎么办 退休时社保没交满15时怎么办 单位不支付病假工资怎么办 一年级学生上课注意力不集中怎么办 一年级学生的理解能力差怎么办 一年级学生学习太差怎么办 宝宝屁眼破皮怎么办啊 九个月婴儿不爱喝奶怎么办 十一个月婴儿发烧怎么办 四个月宝宝睡不踏实怎么办 5个月宝宝瘦了怎么办 宝宝只吃迷糊奶怎么办 宝宝五个月了不吃奶粉怎么办 1岁婴儿入睡困难怎么办 怀孕五个月胎儿肾积水怎么办 15个月宝宝总喊怎么办 学业水平考试有d怎么办 买了水果碰见领导怎么办 高一孩子不愿意上学怎么办 专家解答 孩子不愿意上学怎么办 冬天脚冷怎么办膝盖疼 拉拉裤大了怎么办小妙招 孕37周翻身困难怎么办 晚上睡不好白天犯困怎么办 抑郁症又不想起床了怎么办 儿童憋尿功能太差怎么办 一个月的宝宝睡眠不好怎么办 被商场要求撤场怎么办 上班没法接孩子放学怎么办 幼儿下午放学与上班错开怎么办 宝宝早上醒的早怎么办 晚卜睡不着尿多怎么办 要求正常休息公司不准怎么办 我早起被室友说怎么办? 小孩晚上睡的晚怎么办 初中一年级学不扎实怎么办