ubuntu12.04 make xconfig出错解决
xconfig是linux下X Window环境中用于配制的一个工具,和menuconfig相似,但用法更友好方便,用如下命令可以进入配制界面:
make xconfig
因为在ubuntu系统中,编译内核需要安装一些工具,如makemenuconfig或make xconfig,来配置内核参数,但弹出下面的错误信息:
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c:在函数‘traps’中:
scripts/basic/fixdep.c:377:2:警告: 提领类型双关的指针将破坏强重叠规则[-Wstrict-aliasing]
scripts/basic/fixdep.c:379:4:警告: 提领类型双关的指针将破坏强重叠规则[-Wstrict-aliasing]
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
HOSTCC scripts/kconfig/conf.o
scripts/kconfig/conf.c:在函数‘conf_sym’中:
scripts/kconfig/conf.c:158:6:警告: 变量‘type’被设定但未被使用 [-Wunused-but-set-variable]
scripts/kconfig/conf.c:在函数‘conf_choice’中:
scripts/kconfig/conf.c:230:6:警告: 变量‘type’被设定但未被使用 [-Wunused-but-set-variable]
scripts/kconfig/conf.c:306:9:警告: 忽略声明有warn_unused_result 属性的‘fgets’的返回值 [-Wunused-result]
scripts/kconfig/conf.c:在函数‘conf_askvalue’中:
scripts/kconfig/conf.c:104:8:警告: 忽略声明有warn_unused_result 属性的‘fgets’的返回值 [-Wunused-result]
HOSTCC scripts/kconfig/kconfig_load.o
HOSTCC scripts/kconfig/kxgettext.o
HOSTCC scripts/kconfig/zconf.tab.o
Packageqt-mt was not found in the pkg-config search path.
Perhapsyou should add the directory containing `qt-mt.pc'
to thePKG_CONFIG_PATH environment variable
Nopackage 'qt-mt' found
Packageqt-mt was not found in the pkg-config search path.
Perhapsyou should add the directory containing `qt-mt.pc'
to thePKG_CONFIG_PATH environment variable
Nopackage 'qt-mt' found
Packageqt-mt was not found in the pkg-config search path.
Perhapsyou should add the directory containing `qt-mt.pc'
to thePKG_CONFIG_PATH environment variable
Nopackage 'qt-mt' found
Packageqt-mt was not found in the pkg-config search path.
Perhapsyou should add the directory containing `qt-mt.pc'
to thePKG_CONFIG_PATH environment variable
Nopackage 'qt-mt' found
HOSTCXX scripts/kconfig/qconf.o
scripts/kconfig/qconf.cc:6:26:致命错误: qapplication.h:没有那个文件或目录
编译中断。
make[1]:*** [scripts/kconfig/qconf.o] 错误 1
make:*** [xconfig] 错误 2
在正常步骤下,除了安装ncurses,还要安装build-essential 和 kernel-package
首先,查询kernel-package信息
#apt-cache show kernel-package
Package:kernel-package
Priority:optional
Section:universe/misc
Installed-Size:1806
Maintainer:Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer:Manoj Srivastava <srivasta@debian.org>
Architecture:all
Version:12.036+nmu2
Depends:build-essential, make (>= 3.80-10), po-debconf, gettext, file, debianutils(>= 2.30), binutils (>= 2.12), util-linux (>= 2.10o),module-init-tools (>= 0.9.10)
Recommends:cpio
Suggests:linux-source | kernel-source, e2fsprogs (>= 1.41.4), libncurses-dev,docbook-utils, xmlto, bzip2, linux-initramfs-tool, grub (>= 0.93) | grub2,jfsutils (>= 1.1.3), mcelog (>= 0.6), oprofile (>= 0.9), pcmciautils(>= 004),
ppp (>= 2.4.0), procps (>= 3.2.0), reiserfsprogs (>=3.6.3), squashfs-tools (>= 4.0), udev (>= 081), xfsprogs (>= 2.6.0),quota, btrfs-tools
Filename:pool/universe/k/kernel-package/kernel-package_12.036+nmu2_all.deb
Size:399694
MD5sum:0168c3dc45aadc08bdfbb96e98a8e6fa
SHA1:3451296ca4b502746152378bb4e9e0560ee2c79c
SHA256:30650206e074e918b27e856a32bfed41e6b0b76e9104bedb45c205e3a4996d6f
Description-en:A utility for building Linux kernel related Debian packages.
This package provides the capability to createa Debian kernel image
package by just running make-kpkg kernel_imagein a kernel source
directory tree. It can also package the relevant kernelheaders into
a kernel-headers package. In general, thispackage is very useful if
you need to create a custom kernel, if, forexample, the default
kernel does not support some of your hardware,or you wish a leaner,
meaner kernel. It also scripts the steps that need be taken to
compile the kernel, which is quite convenient(forgetting a crucial
step once was the initial motivation for thispackage). Please look at
/usr/share/doc/kernel-package/Rationale.gz fora full list of advantages
of this package.
Description-md5:45bea2a67b3b2cf92611d53927d2676e
Bugs:https://bugs.launchpad.net/ubuntu/+filebug
Origin:Ubuntu
查询一下kernel-package安装设置状态,
#apt-cache policy kernel-package
kernel-package:
已安装: (无)
候选软件包:12.036+nmu2
版本列表:
12.036+nmu2 0
500http://cn.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
所以需要安装kernel-package:
# apt-get install kernel-package
正在读取软件包列表...完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列软件包是自动安装的并且现在不需要了:
zerofree gir1.2-ubuntuoneui-3.0 libdumbnet1dkms libubuntuoneui-3.0-1
thunderbird-globalmenu
使用'apt-getautoremove'来卸载它们
将会安装下列额外的软件包:
gettext intltool-debian libgettextpo0libmail-sendmail-perl libsys-hostname-long-perl
libunistring0 po-debconf
建议安装的软件包:
gettext-doc linux-source kernel-sourcedocbook-utils xmlto grub grub2 jfsutils mcelog
oprofile reiserfsprogs squashfs-toolsxfsprogs quota btrfs-tools libmail-box-perl
下列【新】软件包将被安装:
gettext intltool-debian kernel-packagelibgettextpo0 libmail-sendmail-perl
libsys-hostname-long-perl libunistring0po-debconf
升级了 0 个软件包,新安装了 8 个软件包,要卸载 0 个软件包,有59 个软件包未被升级。
需要下载 2,414kB 的软件包。
解压缩后会消耗掉8,393 kB 的额外空间。
您希望继续执行吗?[Y/n]y
…
ldconfigdeferred processing now taking place
接下来查看build-essential,
#apt-cache policy build-essential
build-essential:
已安装: 11.5ubuntu2.1
候选软件包:11.5ubuntu2.1
版本列表:
*** 11.5ubuntu2.1 0
500http://cn.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
100 /var/lib/dpkg/status
11.5ubuntu2 0
500http://cn.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
接着安装QT3库, libqt3-headers相关信息:
http://www.examplenow.com/zh-cn/package/libqt3-headers/
apt-getinstall libqt3-headers libqt3-mt-dev
然后make xconfig就可以正常化打开下面的界面:
图1
接着apt-get install libqt3-compat-headers,具体为什么还要安装这个,以后再弄明白
到此,执行make xconfig,即可
我们通过Make menuconfig也来看看menuconfig界面:
HOSTCC scripts/kconfig/lxdialog/checklist.o
HOSTCC scripts/kconfig/lxdialog/inputbox.o
HOSTCC scripts/kconfig/lxdialog/menubox.o
HOSTCC scripts/kconfig/lxdialog/textbox.o
scripts/kconfig/lxdialog/textbox.c:在函数‘print_line’中:
scripts/kconfig/lxdialog/textbox.c:323:9:警告: 变量‘x’被设定但未被使用 [-Wunused-but-set-variable]
scripts/kconfig/lxdialog/textbox.c:323:6:警告: 变量‘y’被设定但未被使用 [-Wunused-but-set-variable]
HOSTCC scripts/kconfig/lxdialog/util.o
HOSTCC scripts/kconfig/lxdialog/yesno.o
HOSTCC scripts/kconfig/mconf.o
HOSTLD scripts/kconfig/mconf
scripts/kconfig/mconfarch/arm/Kconfig
***End of Linux kernel configuration.
***Execute 'make' to build the kernel or try 'make help'.
弹出下面的对话框:
图2
如果出错,需要sudo apt-get insatll ncurses-dev
对比xconfig和menuconfig的界面,可见xconfig的使用更为 方便。
参考链接:
http://blog.chinaunix.net/uid-27200305-id-3318232.html
ubuntu12.04 make xconfig出错解决的更多相关文章
- RP4412开发板烧写Ubuntu12.04失败原因分析解决
Ubuntu烧写失败可能是卡的问题 问:用RP4412开发板,卡烧了光盘中的fastboot失败,现在如何补救呢? 答:INAND格式化,利用usb来升级啊. 也有文档,看升级文档. 问:这个是怎么回 ...
- ubuntu12.04 安装CAJViewer-ubuntu(待解决)
ubuntu12.04测试通过 1.sudo apt-get install wine 2.unzip CAJViewer-ubuntu12.04版.zip 3.wine CAJVieweru.exe
- Ubuntu12.04解决gedit中文乱码问题
Ubuntu12.04,终端中分别输入下面两条指令: gsettings set org.gnome.gedit.preferences.encodings auto-detected “['GB18 ...
- Android编译环境——ubuntu12.04上android2.3.4编译错误以及解决
Android编译环境——ubuntu12.04上android2.3.4编译错误以及解决 分类: android应用开发2013-08-21 09:20 4222人阅读 评论(3) 收藏 举报 li ...
- VMware下的ubuntu12.04不识别usb设备问题的解决方法
情况一:U盘通过USB连接到Ubuntu后,点击VM—removable devices,无usb信息? 解决方法: 在“服务”中启动“VMware USB Arbitration Service”服 ...
- ubuntu12.04+Elasticsearch2.3.3伪分布式配置,集群状态分片调整
目录 [TOC] 1.什么是Elashticsearch 1.1 Elashticsearch介绍 Elasticsearch是一个基于Apache Lucene(TM)的开源搜索引擎.能够快速搜索数 ...
- VirtualBox中安装Ubuntu12.04/Ubuntu14.04虚拟机
NOTE: 一开始安装的Ubuntu12.04,后来又重新安装了14.04.截图基本使用了安装12.04时的截图,后来安装14.04时又补充了几张.该安装过程对Ubuntu12.04和14.04都是适 ...
- ubuntu12.04安装svn 1.7(转载)
ubuntu12.04安装svn 1.7 分类: ubuntu2013-10-22 16:03 239人阅读 评论(0) 收藏 举报 svnubuntu 目录(?)[+] 1.问题 在 ...
- ubuntu12.04下安卓编译环境搭建总结
前言: 因为工作需要,经常要编译安卓下的动态库,公司有已经搭建好环境的服务器,但是第一自己想自己搭建一下了解一个整个过程,另外,公司的服务器也经常出现问 题,导致编译不了,所以就想自己搭建环 ...
随机推荐
- discuz论坛X3升级时 文件下载出现问题,请查看您的服务器网络以及data目录是否有写权限
discuz论坛2.5升级X3时候, 在线升级一半提示: 文件 static/image/postbg/3.jpg 下载出现问题,请查看您的服务器网络以及data目录是否有写权限,请确认无误后点击确定 ...
- jquery.prompt.js 弹窗的使用
/*** * Prompt提示语插件 * 编写时间:2013年4月8号 * version:Prompt.1.0.js * author:小宇<i@windyland.com> ***/ ...
- mac 下 配置 xhprof
1: 下载 安装 xhprof wget http://pecl.php.net/get/xhprof-0.9.3.tgztar zxf xhprof-0.9.3.tgzcd xhprof-0.9.3 ...
- 二、记一次失败的 CAS 搭建 之 证书配置
==================================================================================================== ...
- WebUploader API
Uploader new Uploader( opts ) ⇒ Uploader 上传入口类. var uploader = WebUploader.Uploader({ swf: 'path_of_ ...
- 常见架构TLB miss处理方法(转)
转自网站:http://blog.sina.com.cn/s/blog_633f462901018reb.html 0. 综述 总的来说TLB miss处理分为硬件处理和软件处理两种,硬件 ...
- shell复习笔记----入门知识
Unix 简史 UNIX 最初是由贝尔实验室(Bell Telephone Laborataries)的计算机科学研究中心开发的,第一版诞生于1970年--也就是在贝尔实验室退出Multics项目不久 ...
- 3140:[HNOI2013]消毒 - BZOJ
题目描述 Description 最近在生物实验室工作的小 T 遇到了大麻烦. 由于实验室最近升级的缘故,他的分格实验皿是一个长方体,其尺寸为 a*b*c,a.b.c均为正整数.为了实验的方便,它被划 ...
- [转载]js 遍历数组对象
有一个JSON数组如下 all = {"error":0,"content":[{"name":"北京","v ...
- How To Monitor Remote Linux Host using Nagios 3.0
In the previous post Nagios 3.0 Jumpstart guide , I explained the overview, installation and configu ...