我试图编译 dsfml 使用dub
我不断收到此错误:
Linking...
/usr/bin/ld: cannot find -ldsfml-window
/usr/bin/ld: cannot find -ldsfml-system
/usr/bin/ld: cannot find -ldsfml-audio
/usr/bin/ld: cannot find -ldsfml-network
/usr/bin/ld: cannot find -ldsfml-graphics
collect2: error: ld returned 1 exit status
--- errorlevel 1
FAIL .dub/build/application-debug-linux.posix-x86-dmd_2067-FDAB6DCF10EB7D29BC4DAB2CF2FAFD5C/ dsfmlapps executable
Error executing command build:
dmd failed with exit code 1.
我确保通过存储库在我的 Ubuntu(14.04 32 位)上安装了 sfml 和 csmfl。知道有什么问题吗?
编辑:这是我的dub.json
文件
{
"name": "dsfmlapps",
"description": "A minimal D application.",
"copyright": "Copyright © 2015, karabuta",
"authors": ["karabuta"],
"lflags" : ["-L/usr/include"],
"dependencies": {
"dsfml": "~master"
}
}