www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - dmd can't build gtk x64

reply FoxyBrown <Foxy Brown.IPT> writes:
Error: can't run 
'C:\VS\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64', check PATH

It is trying to run some x64.exe/com/bat file... why? What is 
this file?

simply doing dmd -m64 build.d

Works fine for x86.
Jul 28 2017
parent reply FoxyBrown <Foxy Brown.IPT> writes:
On Friday, 28 July 2017 at 22:45:58 UTC, FoxyBrown wrote:
 Error: can't run 
 'C:\VS\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64', check PATH

 It is trying to run some x64.exe/com/bat file... why? What is 
 this file?

 simply doing dmd -m64 build.d

 Works fine for x86.
I was able to get this to work by copying all the required lib's to the lib dir from the windows sdk(liburct.lib, shell32.lib) and copying link.exe to x64. The program compiles, but when ran, I get the error object.Exception generated\gtkd\gtkd\Loader.d(125): Library load failed (libgdk-3-0.dll): is not a valid Win32 application. which I assume is due to the fact that I have x86 gtk installed(I think, as I thought I installed the dual package... can't seem to find x64 gtk3+ standalone).
Jul 28 2017
parent Mike Wey <mike-wey example.com> writes:
On 29-07-17 01:57, FoxyBrown wrote:
 On Friday, 28 July 2017 at 22:45:58 UTC, FoxyBrown wrote:
 Error: can't run 'C:\VS\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64', 
 check PATH

 It is trying to run some x64.exe/com/bat file... why? What is this file?

 simply doing dmd -m64 build.d

 Works fine for x86.
I was able to get this to work by copying all the required lib's to the lib dir from the windows sdk(liburct.lib, shell32.lib) and copying link.exe to x64. The program compiles, but when ran, I get the error object.Exception generated\gtkd\gtkd\Loader.d(125): Library load failed (libgdk-3-0.dll): is not a valid Win32 application. which I assume is due to the fact that I have x86 gtk installed(I think, as I thought I installed the dual package... can't seem to find x64 gtk3+ standalone).
Yes, that error is probably because you only have the 32bit version of the GTK runtime installed. On gtkd.org installers for both 32bit and 64bit are available, they can be installed side by side without any issues. -- Mike Wey
Jul 29 2017