digitalmars.D.learn - Errors building GtkD on windows
- Enjoys Math (13/13) May 18 2013 Doing 'rdmd Build.d' gives:
- Enjoys Math (6/6) May 18 2013 Well I can get it to build using the bud method provided but I
- Mike Wey (5/18) May 19 2013 dmd / rdmd is calling the Microsoft linker instead of the one from
- Mike Wey (5/7) May 19 2013 Scratch that, the build script is calling the linker directly. It should...
- Enjoys Math (13/22) May 19 2013 I don't see how the build script is calling link.exe directly,
- Mike Wey (5/17) May 19 2013 It was using lib.exe. Fixed in:
Doing 'rdmd Build.d' gives: Microsoft (R) Library Manager Version 11.00.50727.1 Copyright (C) Microsoft Corporation. All rights reserved. LINK : warning LNK4044: unrecognized option '/c'; ignored LINK : fatal error LNK1104: cannot open file 'gtkd.lib' Microsoft (R) Library Manager Version 11.00.50727.1 Copyright (C) Microsoft Corporation. All rights reserved. LINK : warning LNK4044: unrecognized option '/c'; ignored LINK : fatal error LNK1104: cannot open file 'gtkdgl.lib' Microsoft (R) Library Manager Version 11.00.50727.1 Copyright (C) Microsoft Corporation. All rights reserved. LINK : warning LNK4044: unrecognized option '/c'; ignored LINK : fatal error LNK1104: cannot open file 'gtkdsv.lib'
May 18 2013
Well I can get it to build using the bud method provided but I was concerned that gtkgl wasn't built into the final lib, but just noticed that the .brf file includes the srcgl directory. So surely gl stuff is included in the final GtkD.lib when budding? It's weird though that I need to include the libraries glu32.lib and opengl32.lib when building SimpleGL.d
May 18 2013
On 05/19/2013 06:54 AM, Enjoys Math wrote:Doing 'rdmd Build.d' gives: Microsoft (R) Library Manager Version 11.00.50727.1 Copyright (C) Microsoft Corporation. All rights reserved. LINK : warning LNK4044: unrecognized option '/c'; ignored LINK : fatal error LNK1104: cannot open file 'gtkd.lib' Microsoft (R) Library Manager Version 11.00.50727.1 Copyright (C) Microsoft Corporation. All rights reserved. LINK : warning LNK4044: unrecognized option '/c'; ignored LINK : fatal error LNK1104: cannot open file 'gtkdgl.lib' Microsoft (R) Library Manager Version 11.00.50727.1 Copyright (C) Microsoft Corporation. All rights reserved. LINK : warning LNK4044: unrecognized option '/c'; ignored LINK : fatal error LNK1104: cannot open file 'gtkdsv.lib'dmd / rdmd is calling the Microsoft linker instead of the one from Digital Mars. Try checking if the LINKCMD is set correctly in sc.ini. -- Mike Wey
May 19 2013
On 05/19/2013 03:07 PM, Mike Wey wrote:dmd / rdmd is calling the Microsoft linker instead of the one from Digital Mars. Try checking if the LINKCMD is set correctly in sc.ini.Scratch that, the build script is calling the linker directly. It should probably use dmd for linking the the lib. -- Mike Wey
May 19 2013
On Sunday, 19 May 2013 at 13:20:18 UTC, Mike Wey wrote:On 05/19/2013 03:07 PM, Mike Wey wrote:I don't see how the build script is calling link.exe directly, but my sc.ini looks like this: [Version] version=7.51 Build 020 [Environment] LIB="% P%\..\lib";\dm\lib DFLAGS="-I% P%\..\..\src\phobos" "-I% P%\..\..\src\druntime\import" "-I% P%\..\..\src" LINKCMD=% P%\link.exe LINKCMD64=%VCINSTALLDIR%bin\amd64\link.exe VCINSTALLDIR=%VCINSTALLDIR% WindowsSdkDir=%WindowsSdkDir%dmd / rdmd is calling the Microsoft linker instead of the one from Digital Mars. Try checking if the LINKCMD is set correctly in sc.ini.Scratch that, the build script is calling the linker directly. It should probably use dmd for linking the the lib.
May 19 2013
On 05/19/2013 04:51 PM, Enjoys Math wrote:I don't see how the build script is calling link.exe directly, but my sc.ini looks like this: [Version] version=7.51 Build 020 [Environment] LIB="% P%\..\lib";\dm\lib DFLAGS="-I% P%\..\..\src\phobos" "-I% P%\..\..\src\druntime\import" "-I% P%\..\..\src" LINKCMD=% P%\link.exe LINKCMD64=%VCINSTALLDIR%bin\amd64\link.exe VCINSTALLDIR=%VCINSTALLDIR% WindowsSdkDir=%WindowsSdkDir%It was using lib.exe. Fixed in: https://github.com/gtkd-developers/GtkD/commit/5bdf53d6fc831101bf0d461721514c0fd01d1479 -- Mike Wey
May 19 2013