当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 5 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : GoldenDict 编译时 出错!
帖子发表于 : 2012-03-26 22:15 

注册: 2009-10-07 15:49
帖子: 47
系统: U10.04 10.10 12.04 W
送出感谢: 1
接收感谢: 0 次
编译GoldenDict 1.0.1出错了。求助:
执行过程

代码:
will@notBills-laptop:/opt/goldendict-1.0.1/goldendict$ ./configure

To build the program, run qmake, then make.

The following dependency packages are required: libvorbis-dev, zlib1g-dev, libhunspell-dev, x11proto-record-dev, qt4-qmake, libqt4-dev, g++, libxtst-dev, libphonon-dev. They can be named slightly different in different distributions.
will@notBills-laptop:/opt/goldendict-1.0.1/goldendict$ qmake
Error processing project file: config.pri
common.pri:3: Unknown replace function: qtLibraryTarget

于是搜了下,参考:安装QGtkStyle的问题 viewtopic.php?p=885345
引用:
默认的qmake链接的是qmake-qt3,正确的使用应该是qmake-qt4 && make

然后执行:
代码:
will@notBills-laptop:/opt/goldendict-1.0.1/goldendict$ qmake-qt4
Package vorbisfile was not found in the pkg-config search path.
Perhaps you should add the directory containing `vorbisfile.pc'
to the PKG_CONFIG_PATH environment variable
No package 'vorbisfile' found
Package vorbisfile was not found in the pkg-config search path.
Perhaps you should add the directory containing `vorbisfile.pc'
to the PKG_CONFIG_PATH environment variable
No package 'vorbisfile' found
Package vorbisfile was not found in the pkg-config search path.
Perhaps you should add the directory containing `vorbisfile.pc'
to the PKG_CONFIG_PATH environment variable
No package 'vorbisfile' found
Package vorbis was not found in the pkg-config search path.
Perhaps you should add the directory containing `vorbis.pc'
to the PKG_CONFIG_PATH environment variable
No package 'vorbis' found
Package vorbis was not found in the pkg-config search path.
Perhaps you should add the directory containing `vorbis.pc'
to the PKG_CONFIG_PATH environment variable
No package 'vorbis' found
Package vorbis was not found in the pkg-config search path.
Perhaps you should add the directory containing `vorbis.pc'
to the PKG_CONFIG_PATH environment variable
No package 'vorbis' found
Package ogg was not found in the pkg-config search path.
Perhaps you should add the directory containing `ogg.pc'
to the PKG_CONFIG_PATH environment variable
No package 'ogg' found
Package ogg was not found in the pkg-config search path.
Perhaps you should add the directory containing `ogg.pc'
to the PKG_CONFIG_PATH environment variable
No package 'ogg' found
Package ogg was not found in the pkg-config search path.
Perhaps you should add the directory containing `ogg.pc'
to the PKG_CONFIG_PATH environment variable
No package 'ogg' found
Package hunspell was not found in the pkg-config search path.
Perhaps you should add the directory containing `hunspell.pc'
to the PKG_CONFIG_PATH environment variable
No package 'hunspell' found
Package hunspell was not found in the pkg-config search path.
Perhaps you should add the directory containing `hunspell.pc'
to the PKG_CONFIG_PATH environment variable
No package 'hunspell' found
Package hunspell was not found in the pkg-config search path.
Perhaps you should add the directory containing `hunspell.pc'
to the PKG_CONFIG_PATH environment variable
No package 'hunspell' found
will@notBills-laptop:/opt/goldendict-1.0.1/goldendict$ make
/usr/bin/lrelease locale/ru_RU.ts -qm locale/ru_RU.qm
/usr/bin/lrelease locale/zh_CN.ts -qm locale/zh_CN.qm
/usr/bin/lrelease locale/cs_CZ.ts -qm locale/cs_CZ.qm
/usr/bin/lrelease locale/de_DE.ts -qm locale/de_DE.qm
/usr/bin/lrelease locale/el_GR.ts -qm locale/el_GR.qm
/usr/bin/lrelease locale/bg_BG.ts -qm locale/bg_BG.qm
/usr/bin/lrelease locale/ar_SA.ts -qm locale/ar_SA.qm
/usr/bin/lrelease locale/lt_LT.ts -qm locale/lt_LT.qm
/usr/bin/lrelease locale/uk_UA.ts -qm locale/uk_UA.qm
/usr/bin/lrelease locale/vi_VN.ts -qm locale/vi_VN.qm
/usr/bin/lrelease locale/it_IT.ts -qm locale/it_IT.qm
/usr/bin/lrelease locale/pl_PL.ts -qm locale/pl_PL.qm
/usr/bin/lrelease locale/ja_JP.ts -qm locale/ja_JP.qm
/usr/bin/lrelease locale/zh_TW.ts -qm locale/zh_TW.qm
/usr/bin/lrelease locale/sq_AL.ts -qm locale/sq_AL.qm
/usr/bin/lrelease locale/pt_BR.ts -qm locale/pt_BR.qm
/usr/bin/lrelease locale/es_AR.ts -qm locale/es_AR.qm
/usr/bin/lrelease locale/es_BO.ts -qm locale/es_BO.qm
/usr/bin/lrelease locale/es_ES.ts -qm locale/es_ES.qm
/usr/bin/lrelease locale/sk_SK.ts -qm locale/sk_SK.qm
/usr/bin/lrelease locale/tr_TR.ts -qm locale/tr_TR.qm
/usr/bin/lrelease locale/qu_WI.ts -qm locale/qu_WI.qm
/usr/bin/uic-qt4 groups.ui -o build/ui_groups.h
make: /usr/bin/uic-qt4: Command not found
make: *** [build/ui_groups.h] Error 127

whY?
没人理?
好吧,我分段解决:
对于提示:
引用:
Package vorbisfile was not found in the pkg-config search path.
Perhaps you should add the directory containing `vorbisfile.pc'
to the PKG_CONFIG_PATH environment variable
No package 'vorbisfile' found

我执行:
代码:
will@notBills-laptop:/opt/goldendict-1.0.1/goldendict$ find . -name "vorbisfile*" -print
./winlibs/include/vorbis/vorbisfile.h
./maclibs/include/vorbis/vorbisfile.h

结果,没有找到vorbisfile.pc。這是何方神聖?


_________________
10.10
10.04LTS
12.04LTS


页首
 用户资料  
 
2 楼 
 文章标题 : Re: GoldenDict 编译时 出错!
帖子发表于 : 2012-03-26 22:47 
头像

注册: 2008-09-06 5:11
帖子: 363
地址: 石家庄
送出感谢: 1
接收感谢: 8
为什么不用stardict?


_________________
http://phpcj.org/
河北Linux用户组QQ群:249872047
Gentoo中文社区QQ群:160294591


页首
 用户资料  
 
3 楼 
 文章标题 : Re: GoldenDict 编译时 出错!
帖子发表于 : 2012-03-26 23:03 

注册: 2009-10-07 15:49
帖子: 47
系统: U10.04 10.10 12.04 W
送出感谢: 1
接收感谢: 0 次
zhcj 写道:
为什么不用stardict?

个人习惯吧


_________________
10.10
10.04LTS
12.04LTS


页首
 用户资料  
 
4 楼 
 文章标题 : Re: GoldenDict 编译时 出错!
帖子发表于 : 2014-05-11 22:53 

注册: 2009-10-07 15:49
帖子: 47
系统: U10.04 10.10 12.04 W
送出感谢: 1
接收感谢: 0 次
悲催的再次遇到这个问题。
悲催的google到自己发的帖子。
这次,提示要友好些:
引用:
will@willsalienware:/opt/exgoldendict$ sudo qmake-qt4 PREFIX=/usr/local
Project MESSAGE: Install Prefix is: /usr/local
Project ERROR: Package vorbisfile not found

http://www.experts-exchange.com/OS/Linu ... 57808.html
中说是依赖问题。
于是执行:
代码:
sudo apt-get install git pkg-config build-essential qt4-qmake \
     libvorbis-dev zlib1g-dev libhunspell-dev x11proto-record-dev \
     libqt4-dev libqtwebkit-dev libxtst-dev liblzo2-dev libbz2-dev \
     libao-dev libavutil-dev libavformat-dev libtiff5-dev

然后,ERROR提示消失了,留下:
引用:
Project MESSAGE: Install Prefix is: /usr/local

于是:
代码:
sudo qmake-qt4 && sudo make

开始执行。


_________________
10.10
10.04LTS
12.04LTS


页首
 用户资料  
 
5 楼 
 文章标题 : Re: GoldenDict 编译时 出错!
帖子发表于 : 2014-05-12 9:16 
头像

注册: 2010-10-07 14:23
帖子: 33999
地址: 某系某星某洲某国某省某市
系统: Archdows10
送出感谢: 29
接收感谢: 151
源里有为什么要编译?wiki图片的问题新版已经解决了啊

来自我的 MI 2S 上的 Tapatalk


_________________
心似浮云常自在,意如流水任东西。
此事背后一定有个天大的咪咪
广告:
1、走过路过,不要错过,dropbox网盘2.25G大放送
py大法好,退C保平安
java多妖孽,VB本异端
日诵一千遍,快活似神仙


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 5 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译