0

我正在尝试为 opencv 2.1 重建 debian 包,为支持硬浮点的 armel 创建一个包。我正在遵循本指南,但是当我使用命令debuild -us -uc -aarmel时,出现以下错误试图读取 CMakeLists.txt 文件:

CMake Error: Error in cmake code at
/home/rodrigo/tmp/opencv-2.1.0/CMakeLists.txt:1214:
Parse error.  Function missing ending ")".  Instead found unterminated string with text ")

#----------------------------------------------------------------------------
#   Generate the OpenCVConfig.cmake file for unix
#      installation in CMAKE_INSTALL_PREFIX
#----------------------------------------------------------------------------
".
-- Configuring incomplete, errors occurred!

它在文件末尾给了我一个奇怪的错误,好像我在函数末尾缺少一个“)”,事实并非如此,正如您在完整的CMakeLists.txt 文件中看到的那样。

我没有太多从源代码重建软件包的经验。以前有人见过这个错误吗?

4

1 回答 1

1

I had the same problem and it turned out to be mismatched quote characters. I had been editing the CMakeLists file using textEdit on the Mac and it inserted a right double quotation mark rather than a neutral double quotation mark, which is what was at the other end of the string.

As a result the string had quotes at each end but the quotes didn't match, hence the error.

于 2016-05-03T21:38:17.623 回答