+ -
当前位置:首页 → 问答吧 → 在红旗6.2里安装KDE4.2.1,在cmake KDELIBS时出现问题,失败了,有懂的来看看啊!!都快结束了,哎!!!

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

时间:2009-03-24

来源:互联网

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。 停止。

作者: lxflhy   发布时间: 2009-03-24

有懂的帮我看看阿,这段话啥意思阿,快安装结束了阿!!!!
我在网上搜到有人对类似问题的回复是
修改configure的cmake -DCMAKE_INSTALL_PREFIX=这一行:
去掉: --debug-output
加上:-Wno-dev
[http://www.linuxsir.org] 4楼

可是我找不到那句话!!!
在哪个文档里找啊!!!

作者: lxflhy   发布时间: 2009-03-24

引用:
作者: lxflhy
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/

引用:
作者: lxflhy
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最低版本的限制语句,完全可以忽略的。

作者: blucidy   发布时间: 2009-03-24

我安装了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或者版本低?

作者: lxflhy   发布时间: 2009-03-25

我觉得主要是这句:
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装上试试

作者: FreeOrDie   发布时间: 2009-03-25

我在网上找了个FC的rpm包,安装了,需要的依赖太多,没办法装,我又找了个automoc的源码包,好像是要用cmake编译,可我对这个不懂,如何作呢?

作者: lxflhy   发布时间: 2009-03-27