Compiling a Vala source On Windows

南笙酒味 提交于 2019-12-08 17:34:05

问题


I compiled a vala program by using following command:

valac test.vala

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.


回答1:


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).

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



来源:https://stackoverflow.com/questions/12324397/compiling-a-vala-source-on-windows

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!