On 05/31/2017 06:17 PM, Dennis wrote:
Hello,
I am trying to run a Hello World program but I have trouble setting up gtkD. I first tried building gtkD the manual way (following the wiki) by downloading it from GitHub (commit 317b811) and running
rdmd Build.d
. While I can make a Build.exe, running it results in this error:generated/gtkd\pango\c\types.d(2159): Error: struct pango.c.types.PangoCairoFontMap conflicts with struct pango.c.types.PangoCairoFontMap at generated/gtkd\pango\c\types.d(1217)
master seems to be broken, but the latest release should work:
https://github.com/gtkd-developers/GtkD/releases/tag/v3.6.5
https://gtkd.org/Downloads/sources/GtkD-3.6.5.zip
When I try the 64-bits version
rdmd -m64 Build.d
it gives this error:Error: can't run '\bin\link.exe', check PATH
For 64bit builds on Windows dmd needs the Windows SDK, and the paths to
the SDK to be properly set in sc.ini. The dmd installer should do this
automatically if the SDK is installed.
More information here:
https://wiki.dlang.org/InstallingDMDon64-bitWindows7(COFF-compatible)
I also tried putting it in my DUB dependencies:
"dependencies": { "gtk-d": "~>3.6.5" },
But then when I run
dub build --force
it gives this output:Linking... OPTLINK (R) for Win32 Release 8.00.17 Copyright (C) Digital Mars 1989-2013 All rights reserved. http://www.digitalmars.com/ctg/optlink.html ..\..\..\AppData\Roaming\dub\packages\gtk-d-3.6.5\gtk-d\.dub\build\library-debug-windows-x86-dmd_2074-96367D1AA4D5586A22A54E9A562624C0\gtk-d.lib Warning 178: .LIB pagesize exceeds 512 ..\..\..\AppData\Roaming\dub\packages\gtk-d-3.6.5\gtk-d\.dub\build\library-debug-windows-x86-dmd_2074-96367D1AA4D5586A22A54E9A562624C0\gtk-d.lib Error 7: Out of Memory Error: linker exited with status 1 dmd failed with exit code 1.
How do I fix this?
Due to a dmd/optlink bug we can't build debug builds of GtkD on Windows.
Pass --build=plain
to dub so it does a regular build.