cmake非常令人沮丧的问题 [英] Very frustrating problem with cmake

查看:275
本文介绍了cmake非常令人沮丧的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows上有一个令人沮丧的问题。我有kde库安装。

I am having a frustrating problem with cmake on windows. i have the kde libs installed.

当我试图编译我的项目与cmake。

when i am trying to compile my project with cmake . this shoots up again and again.

 Found Qt-Version 4.7.0 (using C:/Qt/2010.05/qt/bin/qmake.exe)
    CMake Error at c:/Program Files/KDE/share/apps/cmake/modules/FindPackageHandleStandardArgs.cmake:198 (MESSAGE):
      Did not find automoc4 (Automoc4Config.cmake, part of kdesupport).
      (missing: AUTOMOC4_EXECUTABLE)
    Call Stack (most recent call first):
      c:/Program Files/KDE/share/apps/cmake/modules/FindAutomoc4.cmake:56 (find_package_handle_standard_args)
      c:/Program Files/KDE/share/apps/cmake/modules/FindKDE4Internal.cmake:402 (find_package)
      C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindKDE4.cmake:95 (FIND_PACKAGE)
      CMakeLists.txt:96 (find_package)


    Configuring incomplete, errors occurred!

好吧,我正在挖掘这个问题的网。我得到了automoc4文件,缺少与默认kde-win安装程序。所以我下载文件,并运行cmake为automoc4,并得到automoc4.exe,我放在%KDE_INSTALL%/ bin文件夹。但运气不是与我。

Well i was digging around the net for this problem. and i got the automoc4 file which were missing with the default kde-win-installer. So i downloaded the files and ran cmake for the automoc4 and got the automoc4.exe which i place in the %KDE_INSTALL%/bin folder. But luck was not with me. And again my favorite error fires up.

推荐答案

感谢patrick和kde-windows团队

Problem solved thanks to patrick and the kde-windows team

下载以下文件

download the following files from this url

然后打开cmake-gui选择浏览源到下载的文件夹,并构建源文件到某个文件夹。

then open cmake-gui select the browse source to the downloaded folder, and build source to some folder.

生成cmake,打开cmd并导航到build文件夹并键入mingw-make。

generate the cmake , open cmd and navigate to the build folder and type mingw-make.

U然后获取automoc4.exe。
1.将它放在%KDE_INSTALL%\bin中。
2.然后在%KDE_INSTALL%\lib\automoc4中放置Automoc4Config.cmake,Automoc4.files.in和Automoc4Version.cmake。

U then get the automoc4.exe. 1. place it in the %KDE_INSTALL%\bin. 2. Then place Automoc4Config.cmake,Automoc4.files.in and Automoc4Version.cmake in %KDE_INSTALL%\lib\automoc4.

现在只需尝试现在。

这篇关于cmake非常令人沮丧的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆