digitalmars.D.learn - GtkD DLL issues
Trying out GtkD for the first time today, compiled one of the sample applications and when I try to run it, it instantly crashes with the following error message: "The image file C:\Program Files\Intel\WiFi\bin\zlib1.dll is valid, but is for a machine type other than that current machine. Select OK to continue, or CANCEL to fail the DLL load." I've looked around and found people with similar problems, but nothing that seems to solve my problem. Using: Windows 8 (64 bit) DMD v2.062 GtkD v2.1.1 Code: import gtk.MainWindow; import gtk.Label; import gtk.Main; void main(string[] args) { Main.init(args); MainWindow win = new MainWindow("Hello World"); win.setDefaultSize(200, 100); win.add(new Label("Hello World")); win.showAll(); Main.run(); } Any help would be much appreciated.
Apr 23 2013
On 04/23/2013 09:00 PM, Jeff wrote:Trying out GtkD for the first time today, compiled one of the sample applications and when I try to run it, it instantly crashes with the following error message: "The image file C:\Program Files\Intel\WiFi\bin\zlib1.dll is valid, but is for a machine type other than that current machine. Select OK to continue, or CANCEL to fail the DLL load." I've looked around and found people with similar problems, but nothing that seems to solve my problem. Using: Windows 8 (64 bit) DMD v2.062 GtkD v2.1.1 Code: import gtk.MainWindow; import gtk.Label; import gtk.Main; void main(string[] args) { Main.init(args); MainWindow win = new MainWindow("Hello World"); win.setDefaultSize(200, 100); win.add(new Label("Hello World")); win.showAll(); Main.run(); } Any help would be much appreciated.Are you compiling gtkD and the app as 32 or 64 bit? Did you install the matching Gtk+ runtime 32 or 64 bits? I looks like its pikking up a different version of a dll used by Gtk+ and apperantly the Intel WiFi tools. But think it should loadthe right one if ist just 32 vs 64 bits. -- Mike Wey
Apr 23 2013
On Tuesday, 23 April 2013 at 20:21:51 UTC, Mike Wey wrote:On 04/23/2013 09:00 PM, Jeff wrote:Both as 32.Trying out GtkD for the first time today, compiled one of the sample applications and when I try to run it, it instantly crashes with the following error message: "The image file C:\Program Files\Intel\WiFi\bin\zlib1.dll is valid, but is for a machine type other than that current machine. Select OK to continue, or CANCEL to fail the DLL load." I've looked around and found people with similar problems, but nothing that seems to solve my problem. Using: Windows 8 (64 bit) DMD v2.062 GtkD v2.1.1 Code: import gtk.MainWindow; import gtk.Label; import gtk.Main; void main(string[] args) { Main.init(args); MainWindow win = new MainWindow("Hello World"); win.setDefaultSize(200, 100); win.add(new Label("Hello World")); win.showAll(); Main.run(); } Any help would be much appreciated.Are you compiling gtkD and the app as 32 or 64 bit? Did you install the matching Gtk+ runtime 32 or 64 bits? I looks like its pikking up a different version of a dll used by Gtk+ and apperantly the Intel WiFi tools. But think it should loadthe right one if ist just 32 vs 64 bits.
Apr 23 2013
On Tuesday, 23 April 2013 at 20:24:33 UTC, Jeff wrote:On Tuesday, 23 April 2013 at 20:21:51 UTC, Mike Wey wrote:Oh, and using the 32-bit runtime as well.On 04/23/2013 09:00 PM, Jeff wrote:Both as 32.Trying out GtkD for the first time today, compiled one of the sample applications and when I try to run it, it instantly crashes with the following error message: "The image file C:\Program Files\Intel\WiFi\bin\zlib1.dll is valid, but is for a machine type other than that current machine. Select OK to continue, or CANCEL to fail the DLL load." I've looked around and found people with similar problems, but nothing that seems to solve my problem. Using: Windows 8 (64 bit) DMD v2.062 GtkD v2.1.1 Code: import gtk.MainWindow; import gtk.Label; import gtk.Main; void main(string[] args) { Main.init(args); MainWindow win = new MainWindow("Hello World"); win.setDefaultSize(200, 100); win.add(new Label("Hello World")); win.showAll(); Main.run(); } Any help would be much appreciated.Are you compiling gtkD and the app as 32 or 64 bit? Did you install the matching Gtk+ runtime 32 or 64 bits? I looks like its pikking up a different version of a dll used by Gtk+ and apperantly the Intel WiFi tools. But think it should loadthe right one if ist just 32 vs 64 bits.
Apr 23 2013
On 04/23/2013 10:26 PM, Jeff wrote:On Tuesday, 23 April 2013 at 20:24:33 UTC, Jeff wrote:Then it's indeed picing up the copy of zlib1.dll installed with the Intel WiFi tools instead of the one installed with Gtk+. But i don't know what could be done about that. -- Mike WeyOn Tuesday, 23 April 2013 at 20:21:51 UTC, Mike Wey wrote:Oh, and using the 32-bit runtime as well.On 04/23/2013 09:00 PM, Jeff wrote:Both as 32.Trying out GtkD for the first time today, compiled one of the sample applications and when I try to run it, it instantly crashes with the following error message: "The image file C:\Program Files\Intel\WiFi\bin\zlib1.dll is valid, but is for a machine type other than that current machine. Select OK to continue, or CANCEL to fail the DLL load." I've looked around and found people with similar problems, but nothing that seems to solve my problem. Using: Windows 8 (64 bit) DMD v2.062 GtkD v2.1.1 Code: import gtk.MainWindow; import gtk.Label; import gtk.Main; void main(string[] args) { Main.init(args); MainWindow win = new MainWindow("Hello World"); win.setDefaultSize(200, 100); win.add(new Label("Hello World")); win.showAll(); Main.run(); } Any help would be much appreciated.Are you compiling gtkD and the app as 32 or 64 bit? Did you install the matching Gtk+ runtime 32 or 64 bits? I looks like its pikking up a different version of a dll used by Gtk+ and apperantly the Intel WiFi tools. But think it should loadthe right one if ist just 32 vs 64 bits.
Apr 23 2013
Then it's indeed picing up the copy of zlib1.dll installed with the Intel WiFi tools instead of the one installed with Gtk+. But i don't know what could be done about that.Try opening a command prompt (cmd.exe) and setting the path of the gtk runtime before the Intel Wifi tools. set PATH=C:\Path\To\GtkRuntime\bin;%PATH% This will use the gtk runtime zlib1.dll first. If that works and doesn't mess up your intel wifi program, you can make that a global path setting.
Apr 23 2013
On Tuesday, 23 April 2013 at 21:16:03 UTC, ollie wrote:Thanks, that did the trick. Should've know it was just a %PATH% issue.Then it's indeed picing up the copy of zlib1.dll installed with the Intel WiFi tools instead of the one installed with Gtk+. But i don't know what could be done about that.Try opening a command prompt (cmd.exe) and setting the path of the gtk runtime before the Intel Wifi tools. set PATH=C:\Path\To\GtkRuntime\bin;%PATH% This will use the gtk runtime zlib1.dll first. If that works and doesn't mess up your intel wifi program, you can make that a global path setting.
Apr 23 2013