简体   繁体   English

Windows CMake GUI 找不到 Boost 库

[英]Windows CMake GUI cannot find Boost library

This is my first time using cmake gui in windows.这是我第一次在 windows 中使用 cmake gui。 I am trying to install the vsomeip library in Windows.我正在尝试在 Windows 中安装 vsomeip 库。 This is mainly required for my common API someip application.这主要是我常见的API someip应用程序需要的。 Now, I am having issue to compile the vsomeip library.现在,我在编译 vsomeip 库时遇到问题。 When I run CMake gui, it says Could NOT find Boost (missing: system thread filesystem) (found suitable version "1.67.0", minimum required is "1.55")当我运行 CMake gui 时,它说Could NOT find Boost (missing: system thread filesystem) (found suitable version "1.67.0", minimum required is "1.55")

I have already added the boost directory to my environment Path variable.我已经将 boost 目录添加到我的环境路径变量中。 I am not sure whether are there any additional configurations is required.我不确定是否需要任何其他配置。 When I try the same in Linux, it works fine.当我在 Linux 中尝试相同的操作时,它工作正常。 Only in Windows there is an issue.仅在 Windows 中存在问题。

I fixed the issue by changing the boost version inside the boost/version.hpp.我通过更改 boost/version.hpp 中的 boost 版本解决了这个问题。

Previously the version was written as 1_55_0 .以前版本写为1_55_0 So I just changed the version to 1_55 .所以我只是将版本更改为1_55

The other fixed was to add the environment variable Path.另一个修复是添加环境变量 Path。 I added the boost include directory itself: C:\local\boost_1_55_0\boost我添加了 boost 包含目录本身: C:\local\boost_1_55_0\boost

I am not sure this is the right way for the fix but this fixes worked for me.我不确定这是修复的正确方法,但这个修复对我有用。 Maybe if you guys have better solution can share it here.也许如果你们有更好的解决方案可以在这里分享。

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

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