编译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。這是何方神聖?