我怎样才能得到cmake的找到我的替代升压安装? [英] How can I get cmake to find my alternative boost installation?

查看:233
本文介绍了我怎样才能得到cmake的找到我的替代升压安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在/ usr /本地安装最新增强版本(在包括在/ usr /本地/包括/升压,以及/ usr / local / lib目录/ Boost库),我现在试图从安装重量源,但CMake的(版本2.6)似乎无法找到提升安装。它试图给有关设置BOOST_DIR和Boost_LIBRARYDIR有益的建议,但我一直没能得到它通过调整这些变量来工作。

I have installed the most recent version of boost in /usr/local (with includes in /usr/local/include/boost and libraries in /usr/local/lib/boost) and I am now attempting to install Wt from source, but cmake (version 2.6) can't seem to find the boost installation. It tries to give helpful suggestions about setting BOOST_DIR and Boost_LIBRARYDIR, but I haven't been able to get it to work by tweaking these variables.

这是我得到的最新的错误消息是它无法找到库,但它似乎表明它使用在/ usr /本地/包括为包含路径,这是不正确的(和我似乎无法修复它)。是否有人有此将它们的头顶部的解决方案,或者我需要去四处碴里面cmake的数字出来?

The most recent error message that I get is that it can't find the libraries, but it seems to indicate that it is using "/usr/local/include" for the include path, which isn't correct (and I can't seem to fix it). Does anybody have a solution for this off the top of their head, or do I need to go mucking around inside cmake to figure it out?

推荐答案

cmake的周围挖掘和实验后,我决定 cmake的并不满意我所有的Boost库被包含在的/ usr / local / lib目录/升压,而不是的/ usr / local / lib目录。有一次,我软链接它们背出来,构建工作。

After digging around in cmake and experimenting, I determined that cmake was unhappy with the fact that all of my boost libraries were contained in /usr/local/lib/boost and not /usr/local/lib. Once I soft-linked them back out, the build worked.

这篇关于我怎样才能得到cmake的找到我的替代升压安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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