LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2128|回复: 5

在红旗6.2里安装KDE4.2.1,在cmake KDELIBS时出现问题,失败了,有懂的来看看啊!!都快结束了

[复制链接]
发表于 2009-3-24 12:13:49 | 显示全部楼层 |阅读模式
cmakeKDELIBS失败,提示如下,难道又嫌CMAKE版本太高?没搞懂!!!
[kde-devel@localhost kdelibs]$ cmakekde
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at cmake/modules/FindKDE4Internal.cmake:247 (cmake_minimum_required):
CMake 2.6.2 or higher is required. You are running version 2.6.1
Call Stack (most recent call first):
CMakeLists.txt:33 (find_package)


CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.6)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring done
make: *** 没有指明目标并且找不到 makefile。 停止。
 楼主| 发表于 2009-3-24 12:14:39 | 显示全部楼层
有懂的帮我看看阿,这段话啥意思阿,快安装结束了阿!!!!
我在网上搜到有人对类似问题的回复是
修改configure的cmake -DCMAKE_INSTALL_PREFIX=这一行:
去掉: --debug-output
加上:-Wno-dev
[www.linuxsir.cn] 4楼

可是我找不到那句话!!!
在哪个文档里找啊!!!
回复 支持 反对

使用道具 举报

发表于 2009-3-24 13:52:49 | 显示全部楼层
Post by lxflhy;1964794
cmakeKDELIBS失败,提示如下,难道又嫌CMAKE版本太高?没搞懂!!!
CMake Error at cmake/modules/FindKDE4Internal.cmake:247 (cmake_minimum_required):
CMake 2.6.2 or higher is required. You are running version 2.6.1
Call Stack (most recent call first):
CMakeLists.txt:33 (find_package)

由此看来,你机子上安装的是cmake 2.6.1
而kde4.2.1需要2.6.2,也就是你的cmake版本太低,而不是太高,升级cmake就可以了。
PS:不是红旗用户,所以无法给出具体的升级方法。2.6.2依赖xmlrpc-c
http://xmlrpc-c.sourceforge.net/
Post by lxflhy;1964794

CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.6)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.  
这段话只是警告你cmakelist里没有cmake最低版本的限制语句,完全可以忽略的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-25 12:43:08 | 显示全部楼层
我安装了2.6.2版的,那个问题解决了,但又来新问题了,下面是输出:
输出如下:
[kde-devel@localhost KDE]$ cd kdelibs
[kde-devel@localhost kdelibs]$ cmakekde
-- Found Qt-Version 4.5.0 (using /home/kde-devel/qt-copy/bin/qmake)
-- Found X11: /usr/lib/libX11.so
CMake Error at /usr/local/share/cmake-2.6/Modules/FindPackageHandleStandardArgs.cmake:57 (MESSAGE):
Did not find automoc4 (part of kdesupport). Searched for
Automoc4Config.cmake in using suffixes automoc4 lib/automoc4
lib64/automoc4. (missing: AUTOMOC4_EXECUTABLE)
Call Stack (most recent call first):
cmake/modules/FindAutomoc4.cmake:56 (find_package_handle_standard_args)
cmake/modules/FindKDE4Internal.cmake:294 (find_package)
CMakeLists.txt:33 (find_package)

-- Configuring incomplete, errors occurred!
make: *** 没有指明目标并且找不到 makefile。 停止。

是不是缺少automoc4或者版本低?
回复 支持 反对

使用道具 举报

发表于 2009-3-25 16:51:44 | 显示全部楼层
我觉得主要是这句:
CMake Error at /usr/local/share/cmake-2.6/Modules/FindPackageHandleStandardArgs.cmake:57 (MESSAGE):
Did not find automoc4 (part of kdesupport).

没有装automoc4
找个automoc-1.0装上试试
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-27 11:48:51 | 显示全部楼层
我在网上找了个FC的rpm包,安装了,需要的依赖太多,没办法装,我又找了个automoc的源码包,好像是要用cmake编译,可我对这个不懂,如何作呢?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表