重建opencv 2.1 debian包

时间:2012-09-14 13:24:43

标签: opencv package debian

我正在尝试重建opencv 2.1的debian包,为armel支持hard-float创建一个包。我正在关注this guide,但当我使用命令 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!

它在文件的末尾给了我一个奇怪的错误,好像我在函数的末尾错过了一个“)”,但事实并非如此,正如你在整个{{3 }}

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

1 个答案:

答案 0 :(得分:1)

我遇到了同样的问题,结果却是不匹配的引号字符。我一直在使用Mac上的textEdit编辑CMakeLists文件,它插入了一个右双引号而不是中性双引号,这就是字符串另一端的内容。

因此,字符串在每一端都有引号,但引号并不匹配,因此错误。