OpenBEAGLE - PACC安装缺少文件

时间:2018-01-22 14:18:23

标签: cmake installation cmake-gui

我正在使用OpenBEAGLE(http://chgagne.github.io/beagle/)作为我的硕士论文的遗传算法框架,我正在尝试安装PACC(这是事先需要的),但我正在努力实现它。有一些丢失的文件,如ZLIB库和pthread.h头文件,我不知道如何处理它们。已经下载并将它们放在各自的路径文件夹中,Cmake会在这些文件夹中查找它们,但Cmake总是给我这些错误。

`++ Building in release mode (default)...
++ Building static library (default on Microsoft Visual C++)
++ Building static library
++ Windows found...
++ NSIS installer creator not found
++ System configuration detection...
++ Looking for ZLib library...
Could NOT find ZLIB (missing: ZLIB_LIBRARY) (found version "1.2.11")
++ Cannot find ZLib, socket compression disabled...
++ Looking for threads libraries...
Looking for pthread.h
Looking for pthread.h - not found
Found Threads: TRUE  
++ Using Windows threads...
CMake Error at CMakeLists.txt:183 (check_include_files):
Unknown CMake command "check_include_files"`

有人知道如何克服这些错误吗?顺便说一句,我使用的是OS 64位Windows 10。

提前致谢。安德烈

1 个答案:

答案 0 :(得分:0)

当您尝试安装PACC时,请确保您具有ZLIB。如果没有,您可以从https://zlib.net下载。然后将ZLIB文件夹保存在程序文件中,并尝试使用Cmake编译PACC。如果Cmake没有找到ZLIB(您将看到错误“PACC_LIB_FOUND_PATH = NOTFOUND”),请确保在Cmake中指定头文件zlib.h所在的变量“PACC_LIB_FOUND_PATH”的路径。

在此之后,您可以配置OpenBEAGLE。这里确保你指定文件config.h的路径,你可以在尝试编译一次后在“... \ include \ PACC”文件夹中找到它。