配置时发生cmake错误 [英] cmake error when configuring
问题描述
很抱歉,如果不是在此处发布此内容的正确位置,但我认为librocket论坛已经死了。
我有Ubuntu 12.04,并且按照此处构建librocket的步骤进行操作。
我正在使用cmake按照步骤进行操作,但是当我按c键配置此错误时出现:
中的
CMake错误/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91
(MESSAGE):
无法查找Freetype(丢失:FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS)
调用堆栈(最近调用一次):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252
(_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-2.8/Modules/FindFreetype.cmake:83
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:61(find_package)
有什么帮助吗?谢谢。
解决方案这意味着CMake试图自动在磁盘上找到Freefree库,但没有找到它。您将不得不手动告诉cmake哪里与
FREETYPE_LIBRARY
相对应的.so文件在哪里,以及FREETYPE_INCLUDE_DIRS
。
假设这个库位于目录
/ foo / bar / freetype
中,您必须调用像您一样执行cmake,但具有以下选项:-DFREETYPE_LIBRARY = / foo / bar / freetype / freetype.so -DFREETYPE_INCLUDE_DIRS = / foo / bar / freetype / include
如果您的计算机上没有Freetype库,您-当然-必须事先下载。
Sorry if this is not the right place to post this but I think the librocket forum is long dead.
I have Ubuntu 12.04 and I followed the steps in building librocket here.
I'm using cmake as the steps said but when I pressed c to configure this error showed up:
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE): Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS) Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-2.8/Modules/FindFreetype.cmake:83 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:61 (find_package)
Any help? Thanks.
解决方案That means that CMake is trying to automatically find the library Freetype on your disk but does not find it. You will have to tell manually to cmake where is the .so file corresponding to
FREETYPE_LIBRARY
and where is the include directory forFREETYPE_INCLUDE_DIRS
.Let's say this library is in the directory
/foo/bar/freetype
, you will have to invoke cmake like you did but with the following options:-DFREETYPE_LIBRARY=/foo/bar/freetype/freetype.so -DFREETYPE_INCLUDE_DIRS=/foo/bar/freetype/include
And if you don't have the library Freetype on your computer, you will - of course - have to download it beforehand.
这篇关于配置时发生cmake错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!