LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: LiYanrui

TeXworks 及其 ebuild

[复制链接]
发表于 2008-7-22 01:36:59 | 显示全部楼层
安装失败。 找不到poppler-qt4.h
是不是因为amd64的问题

  1. In file included from src/TWApp.cpp:25:
  2. src/PDFDocument.h:33:25: error: poppler-qt4.h: No such file or directory
  3. src/PDFDocument.h:55: error: ‘Poppler’ has not been declared
  4. src/PDFDocument.h:55: error: expected ‘,’ or ‘...’ before ‘*’ token
  5. src/PDFDocument.h:62: error: ‘Poppler’ has not been declared
  6. src/PDFDocument.h:62: error: ISO C++ forbids declaration of ‘Page’ with no type
  7. src/PDFDocument.h:62: error: expected ‘;’ before ‘*’ token
  8. src/PDFDocument.h:70: error: ‘Poppler’ has not been declared
  9. src/PDFDocument.h:70: error: ISO C++ forbids declaration of ‘Page’ with no type
  10. src/PDFDocument.h:70: error: expected ‘;’ before ‘*’ token
  11. src/PDFDocument.h:85: error: ‘Poppler’ has not been declared
  12. src/PDFDocument.h:85: error: expected ‘,’ or ‘...’ before ‘*’ token
  13. src/PDFDocument.h:139: error: expected ‘,’ or ‘...’ before ‘::’ token
  14. src/PDFDocument.h:139: error: ISO C++ forbids declaration of ‘Poppler’ with no type
  15. src/PDFDocument.h:140: error: expected ‘,’ or ‘...’ before ‘::’ token
  16. src/PDFDocument.h:140: error: ISO C++ forbids declaration of ‘Poppler’ with no type
  17. src/PDFDocument.h:144: error: ‘Poppler’ has not been declared
  18. src/PDFDocument.h:144: error: ISO C++ forbids declaration of ‘Document’ with no type
  19. src/PDFDocument.h:144: error: expected ‘;’ before ‘*’ token
  20. src/PDFDocument.h:145: error: ‘Poppler’ has not been declared
  21. src/PDFDocument.h:145: error: ISO C++ forbids declaration of ‘Page’ with no type
  22. src/PDFDocument.h:145: error: expected ‘;’ before ‘*’ token
  23. src/PDFDocument.h:146: error: ‘Poppler’ has not been declared
  24. src/PDFDocument.h:146: error: ISO C++ forbids declaration of ‘Link’ with no type
  25. src/PDFDocument.h:146: error: expected ‘;’ before ‘*’ token
  26. src/PDFDocument.h:159: error: ‘Poppler’ has not been declared
  27. src/PDFDocument.h:159: error: ISO C++ forbids declaration of ‘Page’ with no type
  28. src/PDFDocument.h:159: error: expected ‘;’ before ‘*’ token
  29. src/PDFDocument.h:200: error: ‘Poppler’ has not been declared
  30. src/PDFDocument.h:200: error: ISO C++ forbids declaration of ‘Document’ with no type
  31. src/PDFDocument.h:200: error: expected ‘;’ before ‘*’ token
  32. src/PDFDocument.h:205: error: expected `;' before ‘protected’
  33. src/PDFDocument.h:238: error: ‘Poppler’ has not been declared
  34. src/PDFDocument.h:238: error: ISO C++ forbids declaration of ‘Document’ with no type
  35. src/PDFDocument.h:238: error: expected ‘;’ before ‘*’ token
  36. make: *** [obj/TWApp.o] Error 1

复制代码


安装了qt4.4
已安装poppler-bindings有qt4标记,并确认了以下文件的存在


  1. >>> Merging app-text/poppler-bindings-0.8.4 to /
  2. --- /usr/
  3. --- /usr/lib64/
  4. >>> /usr/lib64/libpoppler-qt4.so.3.0.0
  5. >>> /usr/lib64/libpoppler-qt4.so.3 -> libpoppler-qt4.so.3.0.0
  6. >>> /usr/lib64/libpoppler-qt4.la
  7. --- /usr/lib64/pkgconfig/
  8. >>> /usr/lib64/pkgconfig/poppler-qt4.pc
  9. >>> /usr/lib64/libpoppler-qt4.a
  10. --- /usr/include/
  11. --- /usr/include/poppler/
  12. >>> /usr/include/poppler/qt4/
  13. >>> /usr/include/poppler/qt4/poppler-export.h
  14. >>> /usr/include/poppler/qt4/poppler-qt4.h
  15. >>> /usr/include/poppler/qt4/poppler-optcontent.h
  16. >>> /usr/include/poppler/qt4/poppler-annotation.h
  17. >>> /usr/include/poppler/qt4/poppler-form.h
  18. >>> /usr/include/poppler/qt4/poppler-link.h
复制代码
回复 支持 反对

使用道具 举报

发表于 2008-7-22 01:47:54 | 显示全部楼层
Post by acevery;1876968
excellent!
有一点忘了跟你说,9999的svn或git的ebuild一般是要用keywords=""的,我把它改了一下,放到gentoo-china overlay中了,是app-editors/texworks  

刚才用sunrise-commit 检查发现了一些小错误,比如变量没有用双引号括起来,description太长等等。

另外,我加上了metadata.xml到目录中了。

你可以考虑把ebuild等提交到bugs.gentoo.org上

我在gentoo-china中怎么没有发现这个包。
回复 支持 反对

使用道具 举报

发表于 2008-7-22 02:54:17 | 显示全部楼层
没有同步吧
又是一位不上IRC的老兄
14:29 < CIA-55> gentoo-china-overlay: acevery * r438 /trunk/app-editors:
14:29 < CIA-55> gentoo-china-overlay: acevery * r439 /trunk/app-editors/texworks:
14:29 < CIA-55> gentoo-china-overlay: acevery * r440 /trunk/app-editors/texworks/ (9 files in 3 dirs):  
                app-editors/texworks: add into overlay, ebuild by LiYanrui
回复 支持 反对

使用道具 举报

发表于 2008-7-22 04:38:00 | 显示全部楼层
Post by gentookit;1877140
安装失败。 找不到poppler-qt4.h
是不是因为amd64的问题


有可能,我这边是32位的机子,但是没有找到头文件实在是比较奇怪。
回复 支持 反对

使用道具 举报

发表于 2008-7-22 05:04:16 | 显示全部楼层
Post by gentookit;1877140
安装失败。 找不到poppler-qt4.h
是不是因为amd64的问题
安装了qt4.4
已安装poppler-bindings有qt4标记,并确认了以下文件的存在


成功解决了。 SVN中的TeXworks.pro没有写好
里边的linux-g++标记判断includepath和libs在amd64下有问题
导致qmake产生的MakeFile信息不全。
回复 支持 反对

使用道具 举报

发表于 2008-7-22 07:04:36 | 显示全部楼层
Post by zhllg;1877151
没有同步吧
又是一位不上IRC的老兄
14:29 < CIA-55> gentoo-china-overlay: acevery * r438 /trunk/app-editors:
14:29 < CIA-55> gentoo-china-overlay: acevery * r439 /trunk/app-editors/texworks:
14:29 < CIA-55> gentoo-china-overlay: acevery * r440 /trunk/app-editors/texworks/ (9 files in 3 dirs):  
                app-editors/texworks: add into overlay, ebuild by LiYanrui
我同步了,是我查找错误,我去app-text下找了.
基本不上IRC,有机会上上.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-22 08:16:33 | 显示全部楼层
Post by gentookit;1877158
成功解决了。 SVN中的TeXworks.pro没有写好
里边的linux-g++标记判断includepath和libs在amd64下有问题
导致qmake产生的MakeFile信息不全。


我在补丁中干脆将 .h 目录的判断也都弄成 pkg-config 查询好了。
回复 支持 反对

使用道具 举报

发表于 2008-7-22 08:28:55 | 显示全部楼层
Post by gentookit;1877140
安装失败。 找不到poppler-qt4.h
是不是因为amd64的问题

  1. In file included from src/TWApp.cpp:25:
  2. src/PDFDocument.h:33:25: error: poppler-qt4.h: No such file or directory
  3. src/PDFDocument.h:55: error: ‘Poppler’ has not been declared
  4. src/PDFDocument.h:55: error: expected ‘,’ or ‘...’ before ‘*’ token
  5. src/PDFDocument.h:62: error: ‘Poppler’ has not been declared
  6. src/PDFDocument.h:62: error: ISO C++ forbids declaration of ‘Page’ with no type
  7. src/PDFDocument.h:62: error: expected ‘;’ before ‘*’ token
  8. src/PDFDocument.h:70: error: ‘Poppler’ has not been declared
  9. src/PDFDocument.h:70: error: ISO C++ forbids declaration of ‘Page’ with no type
  10. src/PDFDocument.h:70: error: expected ‘;’ before ‘*’ token
  11. src/PDFDocument.h:85: error: ‘Poppler’ has not been declared
  12. src/PDFDocument.h:85: error: expected ‘,’ or ‘...’ before ‘*’ token
  13. src/PDFDocument.h:139: error: expected ‘,’ or ‘...’ before ‘::’ token
  14. src/PDFDocument.h:139: error: ISO C++ forbids declaration of ‘Poppler’ with no type
  15. src/PDFDocument.h:140: error: expected ‘,’ or ‘...’ before ‘::’ token
  16. src/PDFDocument.h:140: error: ISO C++ forbids declaration of ‘Poppler’ with no type
  17. src/PDFDocument.h:144: error: ‘Poppler’ has not been declared
  18. src/PDFDocument.h:144: error: ISO C++ forbids declaration of ‘Document’ with no type
  19. src/PDFDocument.h:144: error: expected ‘;’ before ‘*’ token
  20. src/PDFDocument.h:145: error: ‘Poppler’ has not been declared
  21. src/PDFDocument.h:145: error: ISO C++ forbids declaration of ‘Page’ with no type
  22. src/PDFDocument.h:145: error: expected ‘;’ before ‘*’ token
  23. src/PDFDocument.h:146: error: ‘Poppler’ has not been declared
  24. src/PDFDocument.h:146: error: ISO C++ forbids declaration of ‘Link’ with no type
  25. src/PDFDocument.h:146: error: expected ‘;’ before ‘*’ token
  26. src/PDFDocument.h:159: error: ‘Poppler’ has not been declared
  27. src/PDFDocument.h:159: error: ISO C++ forbids declaration of ‘Page’ with no type
  28. src/PDFDocument.h:159: error: expected ‘;’ before ‘*’ token
  29. src/PDFDocument.h:200: error: ‘Poppler’ has not been declared
  30. src/PDFDocument.h:200: error: ISO C++ forbids declaration of ‘Document’ with no type
  31. src/PDFDocument.h:200: error: expected ‘;’ before ‘*’ token
  32. src/PDFDocument.h:205: error: expected `;' before ‘protected’
  33. src/PDFDocument.h:238: error: ‘Poppler’ has not been declared
  34. src/PDFDocument.h:238: error: ISO C++ forbids declaration of ‘Document’ with no type
  35. src/PDFDocument.h:238: error: expected ‘;’ before ‘*’ token
  36. make: *** [obj/TWApp.o] Error 1

复制代码


安装了qt4.4
已安装poppler-bindings有qt4标记,并确认了以下文件的存在


  1. >>> Merging app-text/poppler-bindings-0.8.4 to /
  2. --- /usr/
  3. --- /usr/lib64/
  4. >>> /usr/lib64/libpoppler-qt4.so.3.0.0
  5. >>> /usr/lib64/libpoppler-qt4.so.3 -> libpoppler-qt4.so.3.0.0
  6. >>> /usr/lib64/libpoppler-qt4.la
  7. --- /usr/lib64/pkgconfig/
  8. >>> /usr/lib64/pkgconfig/poppler-qt4.pc
  9. >>> /usr/lib64/libpoppler-qt4.a
  10. --- /usr/include/
  11. --- /usr/include/poppler/
  12. >>> /usr/include/poppler/qt4/
  13. >>> /usr/include/poppler/qt4/poppler-export.h
  14. >>> /usr/include/poppler/qt4/poppler-qt4.h
  15. >>> /usr/include/poppler/qt4/poppler-optcontent.h
  16. >>> /usr/include/poppler/qt4/poppler-annotation.h
  17. >>> /usr/include/poppler/qt4/poppler-form.h
  18. >>> /usr/include/poppler/qt4/poppler-link.h
复制代码

我的机器是amd64,编译正常.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-22 08:36:25 | 显示全部楼层
晕,qmake 的 INCLUDEPATH 不能直接加入 pkg-config --cflags 的返回结果,没辙了。
回复 支持 反对

使用道具 举报

发表于 2008-7-22 09:37:47 | 显示全部楼层
很强大!!,,,
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表