构建 OpenCV 2.2 html 文档
我已按照此处的说明构建 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。
I've followed the directions here to build html documentation https://code.ros.org/trac/opencv/browser/trunk/opencv/doc/README.txt (actually my local copy that came with OpenCV 2.2, but they are the same), but I get this error after running 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'
The pdf file built fine but I prefer html.
I'm using Ubuntu 10.10.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我只需在 opencv/doc/latex2sphinx 目录中执行“mkdir parse-cache”即可完成此工作。
I was able to get this working by simply doing "mkdir parse-cache" in the opencv/doc/latex2sphinx directory.