找回密碼
 立即注冊(cè)

QQ登錄

只需一步,快速開始

搜索
查看: 10403|回復(fù): 0
打印 上一主題 下一主題
收起左側(cè)

qtchooser工作原理和使用方法研究

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
ID:3721 發(fā)表于 2015-1-5 15:18 | 只看該作者 回帖獎(jiǎng)勵(lì) |倒序?yàn)g覽 |閱讀模式
一直苦苦搜索相關(guān)內(nèi)容,最終在ubuntu系統(tǒng)/usr/share/doc/qtchooser下找到了qtchooser的說明文件,所以就進(jìn)來把這篇日志修改一下,原來搜到的內(nèi)容是archlinux下的qtchooser的文件說明,與ubuntu的目錄結(jié)構(gòu)完全不吻合。
ubuntu下實(shí)際找到的和qtchooser在目錄/usr/share/qtchooser和/usr/lib/i386-linux-gun/qtchooser下,我日志中原先介紹的是archlinux,他的目錄在/etc/xdg/qtchooser下,所以原先的說明在ubuntu下無法使用。下面給出/usr/share/doc/qtchooser下的README.Debian的內(nèi)容并做出翻譯,此時(shí)此刻我并不知道我所找到的這些內(nèi)容和所做的翻譯對(duì)我下面的學(xué)習(xí)進(jìn)展是否有幫助,但有一條至少可以確認(rèn)的就是網(wǎng)上沒有查找到任何的相關(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通過三個(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)

分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復(fù)

使用道具 舉報(bào)

本版積分規(guī)則

手機(jī)版|小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表