我按照这里的说明构建了html文档https://code.ros.org/trac/opencv/browser/trunk/opencv/doc/README.txt(实际上是OpenCV 2.2附带的本地副本,但它们是相同的),但运行sh buildall后出现此错误:
parsing
Traceback (most recent call last):
File "latex.py", line 714, in <module>
fulldoc = latexparser(sys.argv[1])
File "/home/user/OpenCV-2.2.0/doc/latex2sphinx/latexparser.py", line 114, in latexparser
tokens = tokenize(filename)
File "/home/user/OpenCV-2.2.0/doc/latex2sphinx/latexparser.py", line 106, in tokenize
pickle.dump(r, open(cache_filename, 'w'))
IOError: [Errno 2] No such file or directory: 'parse-cache/c83e178b805f6b01ff8d55cda4bd4a29'
pdf文件构建正常,但我更喜欢html。
我正在使用Ubuntu 10.10。
答案 0 :(得分:0)
我只需在opencv / doc / latex2sphinx目录中执行“mkdir parse-cache”即可实现此功能。