linux - Plot2kill 无法在 Manjaro Linux 上编译

标签 linux compilation d gtkd

我正在尝试按照给定的说明编译 Plot2kill here .我使用 yaourt 安装 GtkD,所以我知道我肯定有这个库。然而,当我尝试

dmd -lib -ofplot2kill.lib -O -inline -release *.d

我收到以下错误消息:

subplot.d(437): Error: module DrawingArea is in file 'gtk/DrawingArea.d' which cannot be read
import path[0] = /usr/include/dlang/dmd

我不确定我在这里遗漏了什么。

最佳答案

您需要告诉 DMD 在哪里可以找到 GtkD 文件。最简单的方法是使用 -I 参数。示例:-I/usr/include/d/gtk-d。 您的命令行应该类似于:dmd -lib -ofplot2kill.lib -O -inline -release -I/usr/include/d/gtk-d -L-lgtkd-2 *.d

检查 this thread在 StackOverflow 上。

关于linux - Plot2kill 无法在 Manjaro Linux 上编译,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24749995/

相关文章:

java - Ant4Eclipse - 在 buildJdtProject 任务中排除某些源文件夹

c++ - Cmake 错误 : The following variables are used in the project, 但它们被设置为 NOTFOUND 试图在 archlinux 中编译 Rigs of Rods

linux - Linux 上使用 D 编程语言的 GLFW

python - 将Python移植到D : urllib

java - 如何使用 Java exec 通过 tee 传输 telnet

compiler-construction - 将多种语言一起编译并从一种语言调用另一种语言的函数

python - linux下如何获取所有进程信息?

d - 如何逐个字符地读取字符串作为 D 中的范围?

linux - 内存在 32 位系统中未使用?

linux - EC2 中的 apt 命令采用了错误的版本