首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何像在"man glRotate“中那样在Ubuntu上获得glRotate手册页?

如何像在"man glRotate“中那样在Ubuntu上获得glRotate手册页?
EN

Stack Overflow用户
提问于 2010-03-23 02:06:49
回答 2查看 2.6K关注 0票数 14

在MacOSX上,"man glRotate“打开了glRotate手册。

在ubuntu上,使用manpage -dev和manpage-posix-dev不饱和,"man glRotate“不会打开glRotate手册(尽管我可以构建和编译gl应用程序)。

我遗漏了什么?我该怎么设置这个?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2010-03-23 02:32:56

将Khronos OpenGL-刷新存储库与来自套餐脚本结合起来。

代码语言:javascript
复制
# $Id$
# Maintainer: AndyRTR <andyrtr@archlinux.org>

pkgname=opengl-man-pages
pkgver=20170404
_commit=03552a8094ae3017e0b8b2ad44c602f81c03e848
pkgrel=1
pkgdesc="OpenGL Man Pages"
arch=('any')
url="https://github.com/KhronosGroup/OpenGL-Refpages"
license=('custom')
# OpenGL 4.x (current) API and GLSL pages - libxslt' 'docbook-xsl'
# OpenGL 3.x and older 'w3c-mathml2' 'docbook-mathml'
makedepends=('libxslt' 'docbook-xsl' 'w3c-mathml2' 'docbook-mathml' 'git')
source=(${pkgname}::git+https://github.com/KhronosGroup/OpenGL-Refpages#commit=$_commit
        'LICENSE')
sha256sums=('SKIP'
            'a7b2f6669d7ead91dcaf5a03620cdf9d37c54d83fd1899b4ef84683c7e6d4024')
# gl2.1 = OpenGL 2.1 (including fixed functionality)
# es3   = OpenGL ES 3.x (will always be the latest ES, currently 3.2)
# gl4   = OpenGL 4.x (current) API and GLSL pages
_mandirs=(gl4 es3 gl2.1)

pkgver() {
  date +%Y%m%d
}

build() {
  export WD=`pwd`
  xmlcatalog --create --noout \
    --add public "-//W3C//DTD MathML 2.0//EN" "file:///usr/share/xml/w3c/mathml2/mathml2.dtd" \
    --add public "-//W3C//DTD MathML//EN" "file:///usr/share/xml/w3c/mathml2/mathml2.dtd" \
    --add system "http://www.w3.org/TR/MathML2/dtd/mathml2.dtd" "file:///usr/share/xml/w3c/mathml2/mathml2.dtd" \
    mathml2.cat
  export XML_CATALOG_FILES="$WD/mathml2.cat /etc/xml/catalog"

  for manpages in ${_mandirs[@]}; do
    cd "${srcdir}/${pkgname}/${manpages}"
    for file in gl*.xml; do
      xsltproc --noout --nonet /usr/share/xml/docbook/xsl-stylesheets-*/manpages/docbook.xsl ${file}
    done
  done
}

package() {
  install -d "${pkgdir}/usr/share/man/man3"
  for manpages in ${_mandirs[@]}; do
    cd "${srcdir}/${pkgname}/${manpages}"
    install -m644 *.3G "${pkgdir}/usr/share/man/man3/"
  done
  # license
  install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

为了构建文档,我不得不在Debian拉伸盒上安装一些额外的软件包:

代码语言:javascript
复制
sudo apt-get install xsltproc docbook-xsl docbook-xsl-ns w3-dtd-mathml docbook-mathml
票数 3
EN

Stack Overflow用户

发布于 2016-11-06 15:58:44

代码语言:javascript
复制
sudo apt-get install opengl-4-man-doc opencl-1.2-man-doc

包含许多手册页,例如:

代码语言:javascript
复制
man glDrawArrays

但它不包含man glRotate。我认为这是因为不包括不受欢迎的即时API。

apt-file search glRotate显示了一些热门,但它们似乎并不“正式”。

在Ubuntu 16.04上测试。

票数 7
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/2497104

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档