CMake error: error in configuration process, project files may be invalid

来源:互联网 发布:iqr淘宝网首页 编辑:程序博客网 时间:2024/06/11 15:20

很奇怪按照别人的安装步骤,竟然出现了问题,(好吧,其实我在安装的过程中,我在打字,不知道,按错按钮没)


可以查看Cmake 中具体的错误:


是说找不到boost的路径,当时我就重新安装了一下,用的是【1】boostpro,结果还是产生错误,后来查看了一下要编译程序的CMakeList.txt文件找不到这个BOOST_ROOT的定义,不知道这个定义是不是应该在安装boost的过程中,设为环境变量。自己就在这个文件中加入了


CMake的Configure 就成功了:


参考:

【1】http://boostpro.com/download/boost_1_47_setup.exe

【2】Cmake cannot find Boost libraries http://stackoverflow.com/questions/19303430/cmake-cannot-find-boost-libraries

【3】解决办法:CMake编译时出现“error in configuration process project files may be invalid http://blog.sina.com.cn/s/blog_a2d9d5c60100y1at.html

1 0