我正在尝试使用cmake编译dOxygen verseion 1.8.13的源文件。我已经正确下载并设置了所有正确的库和编译器,但它仍然为我返回错误。我从dOxygen网站下载了tar.gz包,并用tar解压缩。
然后我运行此命令完成编译(正如它在网站上所做的那样):
cmake -G "Visual Studio 15 2017" ..
这给了我以下打印输出:
CMake Error at C:/Program Files/CMake/share/cmake-3.8/Modules/FindBISON.cmake:102 (message):
Command "C:/Users/Barr/Documents/bison-2.4.1-bin/bin/bison.exe --version"
failed with output:
Call Stack (most recent call first):
CMakeLists.txt:69 (find_package)
-- Found BISON: C:/Users/Barr/Documents/bison-2.4.1-bin/bin/bison.exe
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Looking for iconv_open
-- Looking for iconv_open - not found
-- Performing Test ICONV_COMPILES
-- Performing Test ICONV_COMPILES - Success
-- Found ICONV: C:/tools/doxygen-1.8.13/winbuild/iconv.lib
-- One (and only one) of the ICONV_ACCEPTS_... tests must pass
-- Performing Test ICONV_ACCEPTS_NONCONST_INPUT
-- Performing Test ICONV_ACCEPTS_NONCONST_INPUT - Failed
-- Performing Test ICONV_ACCEPTS_CONST_INPUT
-- Performing Test ICONV_ACCEPTS_CONST_INPUT - Success
-- Configuring incomplete, errors occurred!
我删除了在命令开头返回的一些信息,因为他们所做的只是表明已经成功完成的事情。有什么我可能会失踪吗?
答案 0 :(得分:0)
问题是我的bison.exe已经过时了。更新到更新版本允许构建成功完成。