瓦拉找不到gtk + -3.0 Ubuntu 12.04 [英] Vala can't find gtk+-3.0 Ubuntu 12.04

查看:131
本文介绍了瓦拉找不到gtk + -3.0 Ubuntu 12.04的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始学习Vala(在Ubuntu 12.04下),并且尝试遵循教程;但是,在第一个编译步骤( valac --pkg gtk + -3.0 gtktut.vala )中,我收到此错误:

I'm just starting to learn Vala (under Ubuntu 12.04), and I'm attempting to follow this tutorial; however, at the very first compilation step (valac --pkg gtk+-3.0 gtktut.vala), I receive this error:

错误:在指定的Vala API目录或GObject-Introspection GIR目录中找不到gtk + -3.0

除了可能表示我没有GTK3 .vapi文件(我的 / usr / share / vala / vapi <中没有任何文件),我似乎在Internet上找不到有关此信息的任何信息。 / code>目录);但是,即使这是造成我问题的原因,我也无法找到该神话文件的下载位置。

I can't seem to find any information about this on the Internet except that it may mean I don't have the GTK3 .vapi file (there is none in my /usr/share/vala/vapi directory); however, I can't find out where I should even download this mythical file if it even is the cause of my problem. Supposedly it's supposed to be included with my installation of the vala compiler.

同样,在编译语言方面,我是一个完全的新手,我已经尽力了找到答案。

Again, I'm a complete novice when it comes to compiled languages and I've tried my best to find the answer.

如何将valac指向必要的gtk3软件包?

How can I point valac to the necessary gtk3 packages?

更新:

我发现 gtk + -3.0.vapi 确实存在于 /usr/share/vala-0.16/vapi ;但是,仍然找不到。有任何想法吗?

I found the gtk+-3.0.vapi does exist in /usr/share/vala-0.16/vapi; however, it still isn't being found. Any ideas?

推荐答案

我发现了问题。似乎由于某种原因,valac-0.16无法使用其自己的GTK + 3.0 vapi文件或类似的文件。我更新了源代码并安装了valac-0.18,它工作正常。

I found the problem. It seems for some reason valac-0.16 isn't capable of using its own GTK+3.0 vapi file or something like that. I updated my sources and installed valac-0.18 and it worked fine.

这篇关于瓦拉找不到gtk + -3.0 Ubuntu 12.04的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆