【发布时间】:2017-08-02 10:07:15
【问题描述】:
我在 Linux(simple gtk window program) 中制作了一个 C GTK 程序,并在 Linux mint 中使用 this 方式使用 mingw 交叉编译器对其进行了编译。现在我已将 a.exe 文件发送到我的 windows 10 计算机到执行它。但是当我在 Windows 10 中单击 a.exe 文件时,它说
the program can't start because <some files that I have listed in notepad in scrennshot> is missing from your computer.try reinstalling the program to fix this problem
我的 windows 10 上没有安装 gtk。我需要在我的 windows 10 机器上安装 gtk 吗?
【问题讨论】:
-
要么静态链接,要么静态链接。
-
@FelixPalmen 我没明白你的意思??
-
您必须在 windows 10 机器上安装 Gtk 运行时。它必须与您在 linux 上编译的版本相同。 Gtk 运行时是一个庞大的文件集,不仅是那些列出的文件……一旦你复制了这些文件,windows 就会抱怨更多。然后你有主题等......
标签: c linux windows gtk cross-compiling