在 Windows 上编译 Vala 源 [英] Compiling a Vala source On Windows

查看:40
本文介绍了在 Windows 上编译 Vala 源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下命令编译了一个 vala 程序:

I compiled a vala program by using following command:

valac test.vala

我当然可以在我的计算机上运行该程序,但是当我尝试在另一台计算机上运行 .exe 文件时,出现以下错误:

Of course am I able to run the program on my computer, but when I am trying to run the .exe file on a different one I get following error:

libglib-***.dll is missing on this computer

这是我的源代码的样子:

This is how my source code looks like:

using GLib;
int main(string[] args)
{
    bool running = true;
    while(running)
    {
        print("Hello World\n");
    }
    return 0;
}

错误很明显,但我能做些什么呢?提前致谢.

The error is pretty clear, but what can I do against it? Thanks in advance.

推荐答案

在你的 exe 文件中,你需要安装所有你使用的库(glib、gio 等...)和它们自己的依赖项(Gtk 将需要 gdk,cairo,pango 等等).

Along your exe file you will need to install all the libraries you use (glib, gio, etc ...) and their own dependencies (Gtk will require gdk,cairo,pango, and some more).

看看这个关于SO的问题,最小的列出了依赖项.

take a look at this question on SO, the minimal dependencies are listed.

这篇关于在 Windows 上编译 Vala 源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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