编译Linux源代码时遇到问题

Xin*_*nus 0 linux qt

我正在尝试编译Linux源但总是得到qt缺失,这是一个输出

[root@localhost linux-2.6.32.5]# yum install qt3
Loaded plugins: refresh-packagekit
Setting up Install Process
Package qt3-3.3.8b-25.fc11.i586 already installed and latest version
Nothing to do
[root@localhost linux-2.6.32.5]# make xconfig
  CHECK   qt
*
* Unable to find the QT3 installation. Please make sure that
* the QT3 development package is correctly installed and
* either install pkg-config or set the QTDIR environment
* variable to the correct location.
*
make[1]: *** No rule to make target `scripts/kconfig/.tmp_qtcheck', needed by `scripts/kconfig/qconf.o'.  Stop.
make: *** [xconfig] Error 2
[root@localhost linux-2.6.32.5]# echo $QTDIR
/usr/lib/qt-3.3
[root@localhost linux-2.6.32.5]# 
Run Code Online (Sandbox Code Playgroud)

可能是什么问题?

小智 8

可能是你正在安装的qt3包只包含库,但不包含头文件?也许你必须为你的Linux发行版安装包qt3-devel或类似的东西......

  • +1,"请确保*QT3开发包已正确安装并且" (2认同)