简体   繁体   English

如何将GTKmm添加到Devhelp?

[英]How to add GTKmm to Devhelp?

As you know, Devhelp is an API documentation browser for GTK+ and GNOME. 如您所知, Devhelp是GTK +和GNOME的API文档浏览器。 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 . 它默认包含许多GTK +相关库的参考,但它没有Gtkmm ,GTK +的C ++包装器,它在gnome官方参考网站上有一个在线参考

I need to get an offline reference for Gtkmm so I can keep studying while not online. 我需要获得Gtkmm的离线参考,以便我可以继续学习而不在线。 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. 我在Murrayc网页的描述中读到这可以以某种方式添加,但该链接和网页很久以前似乎已经死了。

So,is there a way to add this official library reference to my Devhelp app? 那么,有没有办法将这个官方库引用添加到我的Devhelp应用程序中?

On Ubuntu, documentation is separate from normal packages (both because of space and because of licensing ). 在Ubuntu上,文档与普通包分开(因为空间和许可 )。 As such, you will need to install separate packages to get gtkmm's documentation: 因此,您需要安装单独的软件包才能获得gtkmm的文档:

  • libgtkmm-3.0-doc for gtkmm for GTK+ 3 用于GTK + 3的gtkmm的libgtkmm-3.0-doc
  • libgtkmm-2.4-doc for gtkmm for GTK+ 2 用于GTK + 2的gtkmm的libgtkmm-2.4-doc

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. 如果您知道库的名称,可以在命令行上执行sudo apt-get install libname ,然后按Tab键几次以尝试选项卡完成包名称。 You should see one with -doc at the end. 你最后应该看到一个带-doc的文件。 You can also use a package management tool like Synaptic to find relevant packages. 您还可以使用像Synaptic这样的包管理工具来查找相关的包。

The same rules apply to header files and linker libraries; 相同的规则适用于头文件和链接库; substitute -doc with -dev . -dev替换-doc

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM