Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
May 19, 2013 Errors building GtkD on windows | ||||
---|---|---|---|---|
| ||||
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 19, 2013 Re: Errors building GtkD on windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to Enjoys Math | 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 19, 2013 Re: Errors building GtkD on windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to Enjoys Math | 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 Re: Errors building GtkD on windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Wey | 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 Re: Errors building GtkD on windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Wey | On Sunday, 19 May 2013 at 13:20:18 UTC, Mike Wey wrote: > 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. 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% |
May 19, 2013 Re: Errors building GtkD on windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to Enjoys Math | 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 |
Copyright © 1999-2021 by the D Language Foundation