找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 10384|回复: 0
打印 上一主题 下一主题
收起左侧

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

[复制链接]
跳转到指定楼层
楼主
ID:3721 发表于 2015-1-5 15:18 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
一直苦苦搜索相关内容,最终在ubuntu系统/usr/share/doc/qtchooser下找到了qtchooser的说明文件,所以就进来把这篇日志修改一下,原来搜到的内容是archlinux下的qtchooser的文件说明,与ubuntu的目录结构完全不吻合。
ubuntu下实际找到的和qtchooser在目录/usr/share/qtchooser和/usr/lib/i386-linux-gun/qtchooser下,我日志中原先介绍的是archlinux,他的目录在/etc/xdg/qtchooser下,所以原先的说明在ubuntu下无法使用。下面给出/usr/share/doc/qtchooser下的README.Debian的内容并做出翻译,此时此刻我并不知道我所找到的这些内容和所做的翻译对我下面的学习进展是否有帮助,但有一条至少可以确认的就是网上没有查找到任何的相关内容,其次这是工具安装时在系统留下的帮助内容,是具有最高权威的:
We currently patch qtchooser to make it look for configs
in three additional directories:

补丁qtchooser通过三个目录方式对qt进行配置。

- /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标志

- /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空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 顶 踩
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

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