问题描述
您知道, Devhelp 是GTK +和GNOME的API文档浏览器.默认情况下,它包含许多GTK +相关库的参考,但没有 Gtkmm (GTK +的C ++包装器),它在gnome官方参考网站上有在线参考.
As you know, Devhelp is an API documentation browser for GTK+ and GNOME.It by default have included reference for many GTK+ related libraries but it doesn't have Gtkmm, the C++ wrapper for GTK+, which has an online reference in gnome official reference website.
我需要获取Gtkmm的离线参考,以便我可以不在线时继续学习.我在Murrayc网页的说明中读到,可以以某种方式添加此内容,但是该链接和网页似乎早就消失了.
I need to get an offline reference for Gtkmm so I can keep studying while not online. I read in the description of Murrayc web page that this can be added somehow, but that link and webpage seem to dead long ago.
那么,有没有办法将此官方库引用添加到我的Devhelp应用程序中?
So,is there a way to add this official library reference to my Devhelp app?
推荐答案
在Ubuntu上,文档与常规软件包是分开的(由于篇幅和许可).这样,您将需要安装单独的软件包以获取gtkmm的文档:
On Ubuntu, documentation is separate from normal packages (both because of space and because of licensing). As such, you will need to install separate packages to get gtkmm's documentation:
-
libgtkmm-3.0-doc
for gtkmm for GTK + 3 -
libgtkmm-2.4-doc
for gtkmm for GTK + 2
libgtkmm-3.0-doc
for gtkmm for GTK+ 3libgtkmm-2.4-doc
for gtkmm for GTK+ 2
有很多方法可以找到这些软件包.如果知道库的名称,则可以在命令行上执行 sudo apt-get install libname
,然后按几次Tab键以尝试以Tab键完成软件包名称.您应该在结尾处看到带有 -doc
的一个.您还可以使用Synaptic之类的软件包管理工具来找到相关的软件包.
There are a number of ways you can find these packages. If you know the name of the library, you can do sudo apt-get install libname
on the command line and press Tab a few times to try to tab-complete the package name. You should see one with -doc
at the end. You can also use a package management tool like Synaptic to find relevant packages.
相同的规则适用于头文件和链接器库;将 -doc
替换为 -dev
.
The same rules apply to header files and linker libraries; substitute -doc
with -dev
.
这篇关于如何将GTKmm添加到Devhelp?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!