简体   繁体   English

(tortoisesvn)SVN项目上的CMAKE ::配置过程出错,项目文件可能无效

[英]CMAKE on (tortoisesvn) SVN project :: Error in configuring process, project files may be invalid

I have checked out a version of project from SVN. 我已经从SVN中签出了一个项目版本。 Below are the different kinds of errors I got while trying to CMAKE a project from SVN. 以下是我尝试从SVN进行CMAKE项目时遇到的各种错误。 Could it be that some of the files are not checked out ? 可能是某些文件未检出吗? Please, go through the three kinds of errors and help me out with it. 请解决三种错误,并帮我解决。

==================Type 1================================== =================类型1 ================================ ====
CMake Error at CMakeLists.txt:184 (add_subdirectory): add_subdirectory given source "google/gmock" which is not an existing directory. CMakeLists.txt:184(add_subdirectory)上的CMake错误:给定add_subdirectory的源“ google / gmock”不是现有目录。

==================Type 2================================== =================类型2 ================================ ====

Subversion executable was not found. 找不到Subversion可执行文件。 CMake Error at CMakeLists.txt:14 (UpLinqSVN_WC_INFO): Unknown CMake command "UpLinqSVN_WC_INFO". CMakeLists.txt:14(UpLinqSVN_WC_INFO)的CMake错误:未知的CMake命令“ UpLinqSVN_WC_INFO”。 Call Stack (most recent call first): CMakeLists.txt:207 (CreateVersionInfo) 调用堆栈(最近调用一次):CMakeLists.txt:207(CreateVersionInfo)

========================TYPE 3========================================== ========================类型3 ======================== ==================

CMake Error: The following variables are used in this project, but they are set to NOTFOUND. CMake错误:此项目中使用了以下变量,但是将它们设置为NOTFOUND。 Please set them or make sure they are set and tested correctly in the CMake files: FFMPEG_AVCODEC_LIB linked by target "UpLinq" in directory C:/Users/Krishna/Desktop/2.5/GUI FFMPEG_AVCORE_LIB linked by target "UpLinq" in directory C:/Users/Krishna/Desktop/2.5/GUI FFMPEG_AVDEVICE_LIB linked by target "UpLinq" in directory C:/Users/Krishna/Desktop/2.5/GUI 请在CMake文件中进行设置或确保它们已正确设置和测试:通过目录C:/Users/Krishna/Desktop/2.5/GUI中的目标“ UpLinq”链接的FFMPEG_AVCODEC_LIB通过目录C:/中的目标“ UpLinq”链接的FFMPEG_AVCORE_LIB通过目录“ C:/Users/Krishna/Desktop/2.5/GUI”中的目标“ UpLinq”链接的Users / Krishna / Desktop / 2.5 / GUI FFMPEG_AVDEVICE_LIB

Configuring incomplete, errors occurred! 配置不完整,发生错误!

Error 1 indeed indicates that the CMakeLists.txt expected there to be a directory called google/gmock (relative to the CMakeLists.txt which is calling add_subdirectory at line 184). 错误1确实表明CMakeLists.txt预期存在一个名为google / gmock的目录(相对于CMakeLists.txt,它在第184行调用add_subdirectory )。

Without more info, there's no way to tell if this is an error in the CMakeLists file or in the repository. 没有更多信息,就无法判断CMakeLists文件还是存储库中的错误。

The first part of error 2 (can't find Subversion exe) looks like a custom error message. 错误2的第一部分(找不到Subversion exe)看起来像是一条自定义错误消息。 It may be looking for a ".svn" folder in the project root, and assuming that Subversion is available. 它可能正在项目根目录中寻找“ .svn”文件夹,并假定Subversion可用。 Presumably it then looks for the Subversion exe and fails to find it (not in path maybe?) 大概然后它寻找Subversion exe并找不到它(也许不在路径中?)

The second part of error2 (unknown CMake command) is saying that at line 14 of CMakeLists.txt, there's a command called UpLinqSVN_WC_INFO being invoked. error2的第二部分(未知的CMake命令)说,在CMakeLists.txt的第14行,有一个名为UpLinqSVN_WC_INFO的命令被调用。 It doesn't recognise this as a valid command, which probably means that it's defined as a function or macro in another CMake file somewhere. 它不能将其识别为有效命令,这可能意味着已将其定义为某个地方的另一个CMake文件中的functionmacro It would need to be defined before it's invoked at line 14. It could be that the CMakeLists.txt you're executing is expected to be run as part of a larger build, which would define this function before starting on your CMakeLists.txt. 它需要在第14行被调用之前进行定义。可能是您正在执行的CMakeLists.txt有望作为较大版本的一部分运行,该版本将在开始CMakeLists.txt之前定义此功能。

Error 3 is saying that there's a CMake target called "UpLinq" (an exe or lib) which has a dependency on ${FFMPEG_AVCODEC_LIB} . 错误3表示存在一个名为“ UpLinq”(exe或lib)的CMake目标,该目标依赖于${FFMPEG_AVCODEC_LIB} At some point, there's probably been a find_library call looking for the avcodec library which has also failed. 在某个时候,可能有一个find_library调用在寻找同样失败的avcodec库。 The result of the search is held in the variable FFMPEG_AVCODEC , and it shows that ${FFMPEG_AVCODEC} has a value of FFMPEG_AVCODEC-NOTFOUND . 搜索结果保存在变量FFMPEG_AVCODEC ,并且显示${FFMPEG_AVCODEC}的值为FFMPEG_AVCODEC-NOTFOUND

If you need more help than this, you'll need to put up a copy of the relevant parts of the CMakeLists files involved, and a bit more info about your environment / directory structures. 如果您需要的不仅是这些,还需要提供所涉及的CMakeLists文件相关部分的副本,以及有关您的环境/目录结构的更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM