標(biāo)題: qtchooser工作原理和使用方法研究 [打印本頁(yè)]

作者: heicc    時(shí)間: 2015-1-5 15:18
標(biāo)題: qtchooser工作原理和使用方法研究
一直苦苦搜索相關(guān)內(nèi)容,最終在ubuntu系統(tǒng)/usr/share/doc/qtchooser下找到了qtchooser的說(shuō)明文件,所以就進(jìn)來(lái)把這篇日志修改一下,原來(lái)搜到的內(nèi)容是archlinux下的qtchooser的文件說(shuō)明,與ubuntu的目錄結(jié)構(gòu)完全不吻合。
ubuntu下實(shí)際找到的和qtchooser在目錄/usr/share/qtchooser和/usr/lib/i386-linux-gun/qtchooser下,我日志中原先介紹的是archlinux,他的目錄在/etc/xdg/qtchooser下,所以原先的說(shuō)明在ubuntu下無(wú)法使用。下面給出/usr/share/doc/qtchooser下的README.Debian的內(nèi)容并做出翻譯,此時(shí)此刻我并不知道我所找到的這些內(nèi)容和所做的翻譯對(duì)我下面的學(xué)習(xí)進(jìn)展是否有幫助,但有一條至少可以確認(rèn)的就是網(wǎng)上沒(méi)有查找到任何的相關(guān)內(nèi)容,其次這是工具安裝時(shí)在系統(tǒng)留下的幫助內(nèi)容,是具有最高權(quán)威的:
We currently patch qtchooser to make it look for configs
in three additional directories:

補(bǔ)丁qtchooser通過(guò)三個(gè)目錄方式對(duì)qt進(jìn)行配置。

- /usr/share/qtchooser: holds qtx-triplet.conf configs.
  They are installed by libqtcore with it's arch triplet. In this way apps can
  call it's specific arch tools.

/usr/share/qtchooser下qtx-triplet.conf標(biāo)志

- /usr/lib/$(DEB_HOST_MULTIARCH)/qtchooser: holds qtx.conf and default.conf for
  the specific arch.

/usr/lib/i386-linux-gun/atchooser下qtx.conf和default.conf.

- /usr/lib/$(DEB_HOST_MULTIARCH)/qt-default/qtchooser: holds a default.conf which
  points to Qt4. In this way the Qt4 packages already in the archive should not
  FTBFS when we introduce qtchooser in unstable. Exporting QT_SELECT=qt4 or
  build-depending on qt4-default is recommended.

qtchooser的幫助信息
root@camel-dynabook-SS-1700MY-106S-2:/# qtchooser --help
Usage:
  qtchooser { -l | -list-versions | -print-env }
  qtchooser -run-tool=<tool name> [-qt=<Qt version>] [program arguments]
  <executable name> [-qt=<Qt version>] [program arguments]

Environment variables accepted:
QTCHOOSER_RUNTOOL  name of the tool to be run (same as the -run-tool argument)
QT_SELECT          version of Qt to be run (same as the -qt argument)






歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1