cmake error at cmakelists-qutecom

本文档详细介绍了在Windows上遇到的CMake错误及如何解决,包括删除生成后事件中的错误命令,处理编译错误如lang.h和yahoo_profile.c,以及解决中文系统下的UNICODE支持问题。此外,还提供了关于Visual Studio 2008的编译问题的解决方案,如修改预编译头文件设置和解决附加选项中的错误。同时,文章给出了CMake的简单教程,帮助初学者理解CMake构建过程。
摘要由CSDN通过智能技术生成

 

某个工具从以下位置返回了错误代码: "正在执行生成后事件

直接在  项目属性  ->生成事件 ->生成后事件 ->命令行  中的内容删掉。

//

我遭到的 lang.h 和 yahoo_profile.c 编译出错,我的处理措施是把无须要的语言剔除非,省时省力。

对于以下这个问题,有个更好的解决方案。

***我遇到的 lang.h 和 yahoo_profile.c 编译出错,我的处理方式是把不需要的语言删掉了,省时省力。 ****

这个主要是在中文系统下对非UNICODE的支持问题,可以在WINDOWS XP/VISTA/WIN7 下将非UNICODE的支持语言改为 English(United States)


/

“DD_SOFTPHONE_NAME”: 未声明的标识符e:\qutecom-3.0\qutecom\src\QuteComBuildId.cpp

61: “WengoPhoneBuildId::getSvnRevision”: 函数必须返回值
e:/qutecom-2-2-fbced64fe19d/wengophone/src/WengoPhoneBuildId.h(70) : 参见“WengoPhoneBuildId::getSvnRevision”的声明

解决方法如下:
改成
const char * WengoPhoneBuildId::getSvnRevision() {
return stringize(DD_VERSION);
}

/

boost的源码路径
BOOST_ROOT=D:\Program Files\boost_1_41    重启操作系统...
 "Its not necessary to add boost to environment because cmake will discover it automatically."

cmake_minimum_required(VERSION 2.8.3)

//

error:

 CMake Error at cmake/Macros/CMakeLists.txt:3 (include):
>       include could not find load file:
>
>         /GetMercurialRevision.cmake
>     Call Stack (most recent call first):
>       CMakeLists-QuteCom.txt:10 (include)
>       CMakeLists.txt:3 (include)
>
>
>     CMake Error at cmake/Macros/CMakeLists.txt:4 (include):
>       include could not find load file:
>
>         /GetCurrentDateTime.cmake
>     Call Stack (most recent call first):
>       CMakeLists-QuteCom.txt:10 (include)
>       CMakeLists.txt:3 (include)
>
>
>     CMake Error at cmake/Macros/CMakeLists.txt:6 (include):
>       include could not find load file:

原因: http://pl.digipedia.org/usenet/thread/17138/3323/

This is the problem : this directory should contains a CMakelists.txt see http://hg.qutecom.org/win32-libs/file//CMakeLists.txt  Maybe you have download a tar archive from http://hg.qutecom.org/qutecom-3.0  This archive should not contain submodules ( win32-libs is a submobule )  To download complete revision of qutecom-3.3 do : hg clone http://hg.qutecom.org/qutecom-3.0

下载:

http://mercurial.selenic.com/downloads/

hg clone http://hg.qutecom.org/qutecom-3.0


//

1. http://bbs.pediy.com/showthread.php?t=157763


d/ /GZ "_DEBUG" /c 

最后多了一个 "_DEBUG"

改成 
/nologo /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_WINDLL" /D "_AFXDLL" /Fp"Debug/HookJmp.pch" /Yu"stdafx.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c 
就好了 


你传的是VC6的工程,我这里用VC6直接可以编译
升级成08的工程,Debug版本出现你说的错误,解决办法,Debug版本的属性,C/C++分支下,最后有个命令行的选项,右边的附加选项/D/md/ "_DEBUG",整个删掉,同时还要把版本改成MFC共享DLL.
Release版本也是直接编译通过,就不说了 


2.  

http://pl.digipedia.org/usenet/thread/17156/340/



3. 

 VS2008打开项目源代码中有乱码,且不能通过编译

正好出现乱码这块就是为了解析该乱码字符串的代码,有表明编码方式为ISO-8859-1,就是Latin-1(这个编码好像欧美很常用?), 我在VS中找到了latin-3打开,然后显示

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值