digitalmars.D.learn - GtkD "No GSettings schemas installed"
- Josh (37/37) Mar 29 2013 This is the code causing the problem:
- Mike Wey (10/46) Mar 30 2013 It looks like the Gtk Runtime wasn't installed properly, you could try
- Josh (25/84) Mar 30 2013 Thanks Mike. But I already have these files in the schemas
- Josh (23/111) Mar 30 2013 Sorry, I misread, I thought the xml files were the compiled bits.
- Mike Wey (5/26) Mar 30 2013 That are the same warnings i get, does the FileChooserDialog work
- Josh (3/37) Mar 30 2013 No, nothing has changed Mike.
- Mike Wey (5/36) Mar 31 2013 I'm not sure why its not working, could you try the 3.6 runtime?
- Josh (13/57) Apr 02 2013 Uninstalled GTK 3.4.2 and GtkD 2.0, installed GTK 3.6.1 64 bit,
- Mike Wey (6/58) Apr 02 2013 For 32bits Windows fdopen was added to druntime with dmd 2.061.
- Josh (13/86) Apr 02 2013 Ah, thank you, I didn't realise there was a new compiler.
- Mike Wey (9/84) Apr 03 2013 If you have installed the 64bits version of the Gtk runtime you will
- Josh (8/117) Apr 10 2013 After trying to compile in 64 bit and failing, I've given up and
- Mike Wey (7/13) Apr 10 2013 Try running the following commands in the windows console:
- Josh (32/49) Apr 12 2013 C:\Program Files (x86)\Gtk-Runtime\bin>gsettings list-schemas
This is the code causing the problem: class myInputDialog : Dialog ... this() { super("Please enter file location...", this, GtkDialogFlags.MODAL | GtkDialogFlags.DESTROY_WITH_PARENT, [StockID.OK], [GtkResponseType.OK]); with (addButton(StockID.OPEN, GtkResponseType.NONE)) { setLabel("_Find file"); addOnClicked(&findFile); } addButton(StockID.CANCEL, GtkResponseType.CANCEL); ... Entry fileLocInput = new Entry(); ... } void findFile(Button but) { FileChooserDialog fileWindow = new FileChooserDialog("Use File...", this, GtkFileChooserAction.OPEN, ["Open", "Cancel"], [GtkResponseType.ACCEPT, GtkResponseType.CANCEL]); fileWindow.run(); writeln(fileWindow.getFilename()); } It produces the error "GLib-GIO-ERROR **: No GSettings schemas are installed on the system". The command prompt window in the background says "This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information." and then appears to segfault. Windows 7 x64, DMD v2.060, GTK+ Runtime 3.4.2, GtkD 2.0 Anyone know why this is happening? If I comment out the addOnClicked(&findFile) bit, findFile never runs and the problem doesn't happen, except I can't browse for files. Thanks, Josh
Mar 29 2013
On 03/30/2013 05:25 AM, Josh wrote:This is the code causing the problem: class myInputDialog : Dialog ... this() { super("Please enter file location...", this, GtkDialogFlags.MODAL | GtkDialogFlags.DESTROY_WITH_PARENT, [StockID.OK], [GtkResponseType.OK]); with (addButton(StockID.OPEN, GtkResponseType.NONE)) { setLabel("_Find file"); addOnClicked(&findFile); } addButton(StockID.CANCEL, GtkResponseType.CANCEL); ... Entry fileLocInput = new Entry(); ... } void findFile(Button but) { FileChooserDialog fileWindow = new FileChooserDialog("Use File...", this, GtkFileChooserAction.OPEN, ["Open", "Cancel"], [GtkResponseType.ACCEPT, GtkResponseType.CANCEL]); fileWindow.run(); writeln(fileWindow.getFilename()); } It produces the error "GLib-GIO-ERROR **: No GSettings schemas are installed on the system". The command prompt window in the background says "This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information." and then appears to segfault. Windows 7 x64, DMD v2.060, GTK+ Runtime 3.4.2, GtkD 2.0 Anyone know why this is happening? If I comment out the addOnClicked(&findFile) bit, findFile never runs and the problem doesn't happen, except I can't browse for files. Thanks, JoshIt looks like the Gtk Runtime wasn't installed properly, you could try manualy generating the GSettings schemas by running: C:\Program Files\Gtk-Runtime\bin\glib-compile-schemas.exe C:\Program Files\Gtk-Runtime\share\glib-2.0\schemas\ The schemas directory should contain a bunch of xml files that will need to be compiled. The paths may vary depemding on where the Gtk runtime was installed. -- Mike Wey
Mar 30 2013
On Saturday, 30 March 2013 at 13:19:03 UTC, Mike Wey wrote:On 03/30/2013 05:25 AM, Josh wrote:Thanks Mike. But I already have these files in the schemas folder. Do I have to still compile them again? gschemas.compiled org.gnome.desktop.a11y.applications.gschema.xml org.gnome.desktop.a11y.keyboard.gschema.xml org.gnome.desktop.a11y.magnifier.gschema.xml org.gnome.desktop.a11y.mouse.gschema.xml org.gnome.desktop.background.gschema.xml org.gnome.desktop.default-applications.gschema.xml org.gnome.desktop.enums.xml org.gnome.desktop.interface.gschema.xml org.gnome.desktop.lockdown.gschema.xml org.gnome.desktop.media-handling.gschema.xml org.gnome.desktop.screensaver.gschema.xml org.gnome.desktop.session.gschema.xml org.gnome.desktop.sound.gschema.xml org.gnome.desktop.thumbnail-cache.gschema.xml org.gnome.desktop.thumbnailers.gschema.xml org.gnome.system.proxy.gschema.xml org.gtk.Demo.gschema.xml org.gtk.Settings.ColorChooser.gschema.xml org.gtk.Settings.FileChooser.gschema.xml Thanks, JoshThis is the code causing the problem: class myInputDialog : Dialog ... this() { super("Please enter file location...", this, GtkDialogFlags.MODAL | GtkDialogFlags.DESTROY_WITH_PARENT, [StockID.OK], [GtkResponseType.OK]); with (addButton(StockID.OPEN, GtkResponseType.NONE)) { setLabel("_Find file"); addOnClicked(&findFile); } addButton(StockID.CANCEL, GtkResponseType.CANCEL); ... Entry fileLocInput = new Entry(); ... } void findFile(Button but) { FileChooserDialog fileWindow = new FileChooserDialog("Use File...", this, GtkFileChooserAction.OPEN, ["Open", "Cancel"], [GtkResponseType.ACCEPT, GtkResponseType.CANCEL]); fileWindow.run(); writeln(fileWindow.getFilename()); } It produces the error "GLib-GIO-ERROR **: No GSettings schemas are installed on the system". The command prompt window in the background says "This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information." and then appears to segfault. Windows 7 x64, DMD v2.060, GTK+ Runtime 3.4.2, GtkD 2.0 Anyone know why this is happening? If I comment out the addOnClicked(&findFile) bit, findFile never runs and the problem doesn't happen, except I can't browse for files. Thanks, JoshIt looks like the Gtk Runtime wasn't installed properly, you could try manualy generating the GSettings schemas by running: C:\Program Files\Gtk-Runtime\bin\glib-compile-schemas.exe C:\Program Files\Gtk-Runtime\share\glib-2.0\schemas\ The schemas directory should contain a bunch of xml files that will need to be compiled. The paths may vary depemding on where the Gtk runtime was installed.
Mar 30 2013
On Saturday, 30 March 2013 at 14:45:07 UTC, Josh wrote:On Saturday, 30 March 2013 at 13:19:03 UTC, Mike Wey wrote:Sorry, I misread, I thought the xml files were the compiled bits. When I ran glib-compile-schemas.exe, I get the following: warning: Schema 'org.gnome.system.proxy' has path '/system/proxy/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.http' has path '/system/proxy/http/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.https' has path '/system/proxy/https/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.ftp' has path '/system/proxy/ftp/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.socks' has path '/system/proxy/socks/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: undefined reference to <schema id='org.gnome.desktop.default-applications.at'/> Anything I should be worried about? Thanks again, JoshOn 03/30/2013 05:25 AM, Josh wrote:Thanks Mike. But I already have these files in the schemas folder. Do I have to still compile them again? gschemas.compiled org.gnome.desktop.a11y.applications.gschema.xml org.gnome.desktop.a11y.keyboard.gschema.xml org.gnome.desktop.a11y.magnifier.gschema.xml org.gnome.desktop.a11y.mouse.gschema.xml org.gnome.desktop.background.gschema.xml org.gnome.desktop.default-applications.gschema.xml org.gnome.desktop.enums.xml org.gnome.desktop.interface.gschema.xml org.gnome.desktop.lockdown.gschema.xml org.gnome.desktop.media-handling.gschema.xml org.gnome.desktop.screensaver.gschema.xml org.gnome.desktop.session.gschema.xml org.gnome.desktop.sound.gschema.xml org.gnome.desktop.thumbnail-cache.gschema.xml org.gnome.desktop.thumbnailers.gschema.xml org.gnome.system.proxy.gschema.xml org.gtk.Demo.gschema.xml org.gtk.Settings.ColorChooser.gschema.xml org.gtk.Settings.FileChooser.gschema.xml Thanks, JoshThis is the code causing the problem: class myInputDialog : Dialog ... this() { super("Please enter file location...", this, GtkDialogFlags.MODAL | GtkDialogFlags.DESTROY_WITH_PARENT, [StockID.OK], [GtkResponseType.OK]); with (addButton(StockID.OPEN, GtkResponseType.NONE)) { setLabel("_Find file"); addOnClicked(&findFile); } addButton(StockID.CANCEL, GtkResponseType.CANCEL); ... Entry fileLocInput = new Entry(); ... } void findFile(Button but) { FileChooserDialog fileWindow = new FileChooserDialog("Use File...", this, GtkFileChooserAction.OPEN, ["Open", "Cancel"], [GtkResponseType.ACCEPT, GtkResponseType.CANCEL]); fileWindow.run(); writeln(fileWindow.getFilename()); } It produces the error "GLib-GIO-ERROR **: No GSettings schemas are installed on the system". The command prompt window in the background says "This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information." and then appears to segfault. Windows 7 x64, DMD v2.060, GTK+ Runtime 3.4.2, GtkD 2.0 Anyone know why this is happening? If I comment out the addOnClicked(&findFile) bit, findFile never runs and the problem doesn't happen, except I can't browse for files. Thanks, JoshIt looks like the Gtk Runtime wasn't installed properly, you could try manualy generating the GSettings schemas by running: C:\Program Files\Gtk-Runtime\bin\glib-compile-schemas.exe C:\Program Files\Gtk-Runtime\share\glib-2.0\schemas\ The schemas directory should contain a bunch of xml files that will need to be compiled. The paths may vary depemding on where the Gtk runtime was installed.
Mar 30 2013
On 03/30/2013 03:49 PM, Josh wrote:Sorry, I misread, I thought the xml files were the compiled bits. When I ran glib-compile-schemas.exe, I get the following: warning: Schema 'org.gnome.system.proxy' has path '/system/proxy/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.http' has path '/system/proxy/http/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.https' has path '/system/proxy/https/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.ftp' has path '/system/proxy/ftp/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.socks' has path '/system/proxy/socks/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: undefined reference to <schema id='org.gnome.desktop.default-applications.at'/> Anything I should be worried about? Thanks again, JoshThat are the same warnings i get, does the FileChooserDialog work properly after running glib-compile-schemas.exe ? -- Mike Wey
Mar 30 2013
On Saturday, 30 March 2013 at 16:17:22 UTC, Mike Wey wrote:On 03/30/2013 03:49 PM, Josh wrote:No, nothing has changed Mike. JoshSorry, I misread, I thought the xml files were the compiled bits. When I ran glib-compile-schemas.exe, I get the following: warning: Schema 'org.gnome.system.proxy' has path '/system/proxy/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.http' has path '/system/proxy/http/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.https' has path '/system/proxy/https/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.ftp' has path '/system/proxy/ftp/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.socks' has path '/system/proxy/socks/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: undefined reference to <schema id='org.gnome.desktop.default-applications.at'/> Anything I should be worried about? Thanks again, JoshThat are the same warnings i get, does the FileChooserDialog work properly after running glib-compile-schemas.exe ?
Mar 30 2013
On 03/30/2013 05:42 PM, Josh wrote:On Saturday, 30 March 2013 at 16:17:22 UTC, Mike Wey wrote:I'm not sure why its not working, could you try the 3.6 runtime? https://code.google.com/p/gtkd-packages/downloads/list -- Mike WeyOn 03/30/2013 03:49 PM, Josh wrote:No, nothing has changed Mike. JoshSorry, I misread, I thought the xml files were the compiled bits. When I ran glib-compile-schemas.exe, I get the following: warning: Schema 'org.gnome.system.proxy' has path '/system/proxy/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.http' has path '/system/proxy/http/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.https' has path '/system/proxy/https/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.ftp' has path '/system/proxy/ftp/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.socks' has path '/system/proxy/socks/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: undefined reference to <schema id='org.gnome.desktop.default-applications.at'/> Anything I should be worried about? Thanks again, JoshThat are the same warnings i get, does the FileChooserDialog work properly after running glib-compile-schemas.exe ?
Mar 31 2013
On Sunday, 31 March 2013 at 14:21:50 UTC, Mike Wey wrote:On 03/30/2013 05:42 PM, Josh wrote:Uninstalled GTK 3.4.2 and GtkD 2.0, installed GTK 3.6.1 64 bit, tried building GtkD 2.1.1, and got this: C:\D\GtkD\build>build gtkD.brf ..\src\glib\Spawn.d(244): Error: undefined identifier fdopen, did you mean function fopen? ..\src\glib\Spawn.d(245): Error: undefined identifier fdopen, did you mean function fopen? ..\src\glib\Spawn.d(246): Error: undefined identifier fdopen, did you mean function fopen? Do I just rename the fdopen to fopen in Spawn.d? Thanks, JoshOn Saturday, 30 March 2013 at 16:17:22 UTC, Mike Wey wrote:I'm not sure why its not working, could you try the 3.6 runtime? https://code.google.com/p/gtkd-packages/downloads/listOn 03/30/2013 03:49 PM, Josh wrote:No, nothing has changed Mike. JoshSorry, I misread, I thought the xml files were the compiled bits. When I ran glib-compile-schemas.exe, I get the following: warning: Schema 'org.gnome.system.proxy' has path '/system/proxy/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.http' has path '/system/proxy/http/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.https' has path '/system/proxy/https/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.ftp' has path '/system/proxy/ftp/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.socks' has path '/system/proxy/socks/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: undefined reference to <schema id='org.gnome.desktop.default-applications.at'/> Anything I should be worried about? Thanks again, JoshThat are the same warnings i get, does the FileChooserDialog work properly after running glib-compile-schemas.exe ?
Apr 02 2013
On 04/02/2013 02:38 PM, Josh wrote:On Sunday, 31 March 2013 at 14:21:50 UTC, Mike Wey wrote:For 32bits Windows fdopen was added to druntime with dmd 2.061. So you are probably using an older compiler, if thats the case you could remove the "version(Win64)" from src/gtkc/glibtypes.d line 111. -- Mike WeyOn 03/30/2013 05:42 PM, Josh wrote:Uninstalled GTK 3.4.2 and GtkD 2.0, installed GTK 3.6.1 64 bit, tried building GtkD 2.1.1, and got this: C:\D\GtkD\build>build gtkD.brf ..\src\glib\Spawn.d(244): Error: undefined identifier fdopen, did you mean function fopen? ..\src\glib\Spawn.d(245): Error: undefined identifier fdopen, did you mean function fopen? ..\src\glib\Spawn.d(246): Error: undefined identifier fdopen, did you mean function fopen? Do I just rename the fdopen to fopen in Spawn.d? Thanks, JoshOn Saturday, 30 March 2013 at 16:17:22 UTC, Mike Wey wrote:I'm not sure why its not working, could you try the 3.6 runtime? https://code.google.com/p/gtkd-packages/downloads/listOn 03/30/2013 03:49 PM, Josh wrote:No, nothing has changed Mike. JoshSorry, I misread, I thought the xml files were the compiled bits. When I ran glib-compile-schemas.exe, I get the following: warning: Schema 'org.gnome.system.proxy' has path '/system/proxy/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.http' has path '/system/proxy/http/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.https' has path '/system/proxy/https/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.ftp' has path '/system/proxy/ftp/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.socks' has path '/system/proxy/socks/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: undefined reference to <schema id='org.gnome.desktop.default-applications.at'/> Anything I should be worried about? Thanks again, JoshThat are the same warnings i get, does the FileChooserDialog work properly after running glib-compile-schemas.exe ?
Apr 02 2013
On Tuesday, 2 April 2013 at 20:50:16 UTC, Mike Wey wrote:On 04/02/2013 02:38 PM, Josh wrote:Ah, thank you, I didn't realise there was a new compiler. Installed that, built GtkD, compiled my program fine, ran it, and it said: The image file C:\Program Files\Gtk-Runtime\bin\libgdk-3-0.dll is valid, but is for a machine type other than the current machine. Select OK to continue, or CANCEL to fail the DLL load. and The image file C:\Program Files\Gtk-Runtime\bin\libgtk-3-0.dll is valid, but is for a machine type other than the current machine. Select OK to continue, or CANCEL to fail the DLL load. and then has an access violation. Am I right in assuming this is a 64 bit problem? I thought dmd now had Windows 64 bit support?On Sunday, 31 March 2013 at 14:21:50 UTC, Mike Wey wrote:For 32bits Windows fdopen was added to druntime with dmd 2.061. So you are probably using an older compiler, if thats the case you could remove the "version(Win64)" from src/gtkc/glibtypes.d line 111.On 03/30/2013 05:42 PM, Josh wrote:Uninstalled GTK 3.4.2 and GtkD 2.0, installed GTK 3.6.1 64 bit, tried building GtkD 2.1.1, and got this: C:\D\GtkD\build>build gtkD.brf ..\src\glib\Spawn.d(244): Error: undefined identifier fdopen, did you mean function fopen? ..\src\glib\Spawn.d(245): Error: undefined identifier fdopen, did you mean function fopen? ..\src\glib\Spawn.d(246): Error: undefined identifier fdopen, did you mean function fopen? Do I just rename the fdopen to fopen in Spawn.d? Thanks, JoshOn Saturday, 30 March 2013 at 16:17:22 UTC, Mike Wey wrote:I'm not sure why its not working, could you try the 3.6 runtime? https://code.google.com/p/gtkd-packages/downloads/listOn 03/30/2013 03:49 PM, Josh wrote:No, nothing has changed Mike. JoshSorry, I misread, I thought the xml files were the compiled bits. When I ran glib-compile-schemas.exe, I get the following: warning: Schema 'org.gnome.system.proxy' has path '/system/proxy/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.http' has path '/system/proxy/http/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.https' has path '/system/proxy/https/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.ftp' has path '/system/proxy/ftp/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.socks' has path '/system/proxy/socks/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: undefined reference to <schema id='org.gnome.desktop.default-applications.at'/> Anything I should be worried about? Thanks again, JoshThat are the same warnings i get, does the FileChooserDialog work properly after running glib-compile-schemas.exe ?
Apr 02 2013
On 04/03/2013 05:38 AM, Josh wrote:On Tuesday, 2 April 2013 at 20:50:16 UTC, Mike Wey wrote:If you have installed the 64bits version of the Gtk runtime you will need to build GtkD and your application for 64 bits, using the -m64 flag of dmd. To build a 64 bits version of GtkD build the dgen tool with dmd -m64. The same holds true for 32bits but as far as i know building for 32bits is still the default for dmd on Windows. -- Mike WeyOn 04/02/2013 02:38 PM, Josh wrote:Ah, thank you, I didn't realise there was a new compiler. Installed that, built GtkD, compiled my program fine, ran it, and it said: The image file C:\Program Files\Gtk-Runtime\bin\libgdk-3-0.dll is valid, but is for a machine type other than the current machine. Select OK to continue, or CANCEL to fail the DLL load. and The image file C:\Program Files\Gtk-Runtime\bin\libgtk-3-0.dll is valid, but is for a machine type other than the current machine. Select OK to continue, or CANCEL to fail the DLL load. and then has an access violation. Am I right in assuming this is a 64 bit problem? I thought dmd now had Windows 64 bit support?On Sunday, 31 March 2013 at 14:21:50 UTC, Mike Wey wrote:For 32bits Windows fdopen was added to druntime with dmd 2.061. So you are probably using an older compiler, if thats the case you could remove the "version(Win64)" from src/gtkc/glibtypes.d line 111.On 03/30/2013 05:42 PM, Josh wrote:Uninstalled GTK 3.4.2 and GtkD 2.0, installed GTK 3.6.1 64 bit, tried building GtkD 2.1.1, and got this: C:\D\GtkD\build>build gtkD.brf ..\src\glib\Spawn.d(244): Error: undefined identifier fdopen, did you mean function fopen? ..\src\glib\Spawn.d(245): Error: undefined identifier fdopen, did you mean function fopen? ..\src\glib\Spawn.d(246): Error: undefined identifier fdopen, did you mean function fopen? Do I just rename the fdopen to fopen in Spawn.d? Thanks, JoshOn Saturday, 30 March 2013 at 16:17:22 UTC, Mike Wey wrote:I'm not sure why its not working, could you try the 3.6 runtime? https://code.google.com/p/gtkd-packages/downloads/listOn 03/30/2013 03:49 PM, Josh wrote:No, nothing has changed Mike. JoshSorry, I misread, I thought the xml files were the compiled bits. When I ran glib-compile-schemas.exe, I get the following: warning: Schema 'org.gnome.system.proxy' has path '/system/proxy/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.http' has path '/system/proxy/http/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.https' has path '/system/proxy/https/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.ftp' has path '/system/proxy/ftp/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.socks' has path '/system/proxy/socks/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: undefined reference to <schema id='org.gnome.desktop.default-applications.at'/> Anything I should be worried about? Thanks again, JoshThat are the same warnings i get, does the FileChooserDialog work properly after running glib-compile-schemas.exe ?
Apr 03 2013
On Wednesday, 3 April 2013 at 20:41:47 UTC, Mike Wey wrote:On 04/03/2013 05:38 AM, Josh wrote:After trying to compile in 64 bit and failing, I've given up and just used 32 bit. So now I have GTK-Runtime 3.6.1 32 bit, GtkD 2.1.1 and DMD 2.062. My program is still giving the no schemas error, and trying to compile the schemas gives the same warnings as before. Any more ideas? Thanks, JoshOn Tuesday, 2 April 2013 at 20:50:16 UTC, Mike Wey wrote:If you have installed the 64bits version of the Gtk runtime you will need to build GtkD and your application for 64 bits, using the -m64 flag of dmd. To build a 64 bits version of GtkD build the dgen tool with dmd -m64. The same holds true for 32bits but as far as i know building for 32bits is still the default for dmd on Windows.On 04/02/2013 02:38 PM, Josh wrote:Ah, thank you, I didn't realise there was a new compiler. Installed that, built GtkD, compiled my program fine, ran it, and it said: The image file C:\Program Files\Gtk-Runtime\bin\libgdk-3-0.dll is valid, but is for a machine type other than the current machine. Select OK to continue, or CANCEL to fail the DLL load. and The image file C:\Program Files\Gtk-Runtime\bin\libgtk-3-0.dll is valid, but is for a machine type other than the current machine. Select OK to continue, or CANCEL to fail the DLL load. and then has an access violation. Am I right in assuming this is a 64 bit problem? I thought dmd now had Windows 64 bit support?On Sunday, 31 March 2013 at 14:21:50 UTC, Mike Wey wrote:For 32bits Windows fdopen was added to druntime with dmd 2.061. So you are probably using an older compiler, if thats the case you could remove the "version(Win64)" from src/gtkc/glibtypes.d line 111.On 03/30/2013 05:42 PM, Josh wrote:Uninstalled GTK 3.4.2 and GtkD 2.0, installed GTK 3.6.1 64 bit, tried building GtkD 2.1.1, and got this: C:\D\GtkD\build>build gtkD.brf ..\src\glib\Spawn.d(244): Error: undefined identifier fdopen, did you mean function fopen? ..\src\glib\Spawn.d(245): Error: undefined identifier fdopen, did you mean function fopen? ..\src\glib\Spawn.d(246): Error: undefined identifier fdopen, did you mean function fopen? Do I just rename the fdopen to fopen in Spawn.d? Thanks, JoshOn Saturday, 30 March 2013 at 16:17:22 UTC, Mike Wey wrote:I'm not sure why its not working, could you try the 3.6 runtime? https://code.google.com/p/gtkd-packages/downloads/listOn 03/30/2013 03:49 PM, Josh wrote:No, nothing has changed Mike. JoshSorry, I misread, I thought the xml files were the compiled bits. When I ran glib-compile-schemas.exe, I get the following: warning: Schema 'org.gnome.system.proxy' has path '/system/proxy/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.http' has path '/system/proxy/http/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.https' has path '/system/proxy/https/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.ftp' has path '/system/proxy/ftp/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: Schema 'org.gnome.system.proxy.socks' has path '/system/proxy/socks/'. Paths starting with '/apps/', '/desktop/' or '/system/' are deprecated. warning: undefined reference to <schema id='org.gnome.desktop.default-applications.at'/> Anything I should be worried about? Thanks again, JoshThat are the same warnings i get, does the FileChooserDialog work properly after running glib-compile-schemas.exe ?
Apr 10 2013
On 04/10/2013 03:20 PM, Josh wrote:After trying to compile in 64 bit and failing, I've given up and just used 32 bit. So now I have GTK-Runtime 3.6.1 32 bit, GtkD 2.1.1 and DMD 2.062. My program is still giving the no schemas error, and trying to compile the schemas gives the same warnings as before. Any more ideas? Thanks, JoshTry running the following commands in the windows console: gsettings list-schemas gsettings list-relocatable-schemas They should output a list of installed schemas. -- Mike Wey
Apr 10 2013
On Wednesday, 10 April 2013 at 20:17:36 UTC, Mike Wey wrote:On 04/10/2013 03:20 PM, Josh wrote:C:\Program Files (x86)\Gtk-Runtime\bin>gsettings list-schemas org.gnome.desktop.background org.gnome.desktop.sound org.gnome.desktop.default-applications.office org.gnome.system.proxy.ftp org.gnome.desktop.a11y.magnifier org.gnome.desktop.default-applications.office.calendar org.gnome.system.proxy.socks org.gnome.desktop.default-applications org.gnome.system.proxy org.gnome.desktop.media-handling org.gnome.system.proxy.https org.gnome.desktop.screensaver org.gnome.desktop.thumbnailers org.gnome.desktop.default-applications.terminal org.gnome.desktop.a11y.mouse org.gnome.desktop.a11y.applications org.gnome.desktop.a11y.keyboard org.gnome.desktop.lockdown org.gtk.Demo org.gnome.desktop.interface org.gnome.desktop.default-applications.office.tasks org.gnome.desktop.session org.gnome.system.proxy.http org.gnome.desktop.thumbnail-cache C:\Program Files (x86)\Gtk-Runtime\bin>gsettings list-relocatable-schemas org.gtk.Settings.ColorChooser org.gtk.Settings.FileChooser Thanks so much for all your help so far Mike. JoshAfter trying to compile in 64 bit and failing, I've given up and just used 32 bit. So now I have GTK-Runtime 3.6.1 32 bit, GtkD 2.1.1 and DMD 2.062. My program is still giving the no schemas error, and trying to compile the schemas gives the same warnings as before. Any more ideas? Thanks, JoshTry running the following commands in the windows console: gsettings list-schemas gsettings list-relocatable-schemas They should output a list of installed schemas.
Apr 12 2013
On 04/13/2013 07:00 AM, Josh wrote:On Wednesday, 10 April 2013 at 20:17:36 UTC, Mike Wey wrote:So it looks like the shemas are installed properly. You could try running the gsettings app from a different location than where it's located, it should be in your path. If it doesn't give the same output then there may be a problem with how the path is setup. If it gives the same output then i have no idea what else could be going on. -- Mike WeyOn 04/10/2013 03:20 PM, Josh wrote:C:\Program Files (x86)\Gtk-Runtime\bin>gsettings list-schemas org.gnome.desktop.background org.gnome.desktop.sound org.gnome.desktop.default-applications.office org.gnome.system.proxy.ftp org.gnome.desktop.a11y.magnifier org.gnome.desktop.default-applications.office.calendar org.gnome.system.proxy.socks org.gnome.desktop.default-applications org.gnome.system.proxy org.gnome.desktop.media-handling org.gnome.system.proxy.https org.gnome.desktop.screensaver org.gnome.desktop.thumbnailers org.gnome.desktop.default-applications.terminal org.gnome.desktop.a11y.mouse org.gnome.desktop.a11y.applications org.gnome.desktop.a11y.keyboard org.gnome.desktop.lockdown org.gtk.Demo org.gnome.desktop.interface org.gnome.desktop.default-applications.office.tasks org.gnome.desktop.session org.gnome.system.proxy.http org.gnome.desktop.thumbnail-cache C:\Program Files (x86)\Gtk-Runtime\bin>gsettings list-relocatable-schemas org.gtk.Settings.ColorChooser org.gtk.Settings.FileChooser Thanks so much for all your help so far Mike. JoshAfter trying to compile in 64 bit and failing, I've given up and just used 32 bit. So now I have GTK-Runtime 3.6.1 32 bit, GtkD 2.1.1 and DMD 2.062. My program is still giving the no schemas error, and trying to compile the schemas gives the same warnings as before. Any more ideas? Thanks, JoshTry running the following commands in the windows console: gsettings list-schemas gsettings list-relocatable-schemas They should output a list of installed schemas.
Apr 14 2013
On Sunday, 14 April 2013 at 13:34:07 UTC, Mike Wey wrote:On 04/13/2013 07:00 AM, Josh wrote:Yeah, it gives the same output when I run it from somewhere else. Guess I'm back to where I started. Thanks for all your help though Mike. JoshOn Wednesday, 10 April 2013 at 20:17:36 UTC, Mike Wey wrote:So it looks like the shemas are installed properly. You could try running the gsettings app from a different location than where it's located, it should be in your path. If it doesn't give the same output then there may be a problem with how the path is setup. If it gives the same output then i have no idea what else could be going on.On 04/10/2013 03:20 PM, Josh wrote:C:\Program Files (x86)\Gtk-Runtime\bin>gsettings list-schemas org.gnome.desktop.background org.gnome.desktop.sound org.gnome.desktop.default-applications.office org.gnome.system.proxy.ftp org.gnome.desktop.a11y.magnifier org.gnome.desktop.default-applications.office.calendar org.gnome.system.proxy.socks org.gnome.desktop.default-applications org.gnome.system.proxy org.gnome.desktop.media-handling org.gnome.system.proxy.https org.gnome.desktop.screensaver org.gnome.desktop.thumbnailers org.gnome.desktop.default-applications.terminal org.gnome.desktop.a11y.mouse org.gnome.desktop.a11y.applications org.gnome.desktop.a11y.keyboard org.gnome.desktop.lockdown org.gtk.Demo org.gnome.desktop.interface org.gnome.desktop.default-applications.office.tasks org.gnome.desktop.session org.gnome.system.proxy.http org.gnome.desktop.thumbnail-cache C:\Program Files (x86)\Gtk-Runtime\bin>gsettings list-relocatable-schemas org.gtk.Settings.ColorChooser org.gtk.Settings.FileChooser Thanks so much for all your help so far Mike. JoshAfter trying to compile in 64 bit and failing, I've given up and just used 32 bit. So now I have GTK-Runtime 3.6.1 32 bit, GtkD 2.1.1 and DMD 2.062. My program is still giving the no schemas error, and trying to compile the schemas gives the same warnings as before. Any more ideas? Thanks, JoshTry running the following commands in the windows console: gsettings list-schemas gsettings list-relocatable-schemas They should output a list of installed schemas.
Apr 15 2013
On 04/15/2013 05:45 PM, Josh wrote:On Sunday, 14 April 2013 at 13:34:07 UTC, Mike Wey wrote:Could you post the output of the following gtkD app: import glib.Util; import std.stdio; void main() { writeln(Util.getSystemDataDirs()); } -- Mike WeySo it looks like the shemas are installed properly. You could try running the gsettings app from a different location than where it's located, it should be in your path. If it doesn't give the same output then there may be a problem with how the path is setup. If it gives the same output then i have no idea what else could be going on.Yeah, it gives the same output when I run it from somewhere else. Guess I'm back to where I started. Thanks for all your help though Mike. Josh
Apr 15 2013
On Monday, 15 April 2013 at 18:10:00 UTC, Mike Wey wrote:On 04/15/2013 05:45 PM, Josh wrote:I have the same problem as Josh, your code prints: ["C:\\ProgramData", "C:\\Users\\Public\\Documents", "C:\\Program Files (x86)\\GtkSharp\\2.12\\share", "[app location here]\\share"]On Sunday, 14 April 2013 at 13:34:07 UTC, Mike Wey wrote:Could you post the output of the following gtkD app: import glib.Util; import std.stdio; void main() { writeln(Util.getSystemDataDirs()); }So it looks like the shemas are installed properly. You could try running the gsettings app from a different location than where it's located, it should be in your path. If it doesn't give the same output then there may be a problem with how the path is setup. If it gives the same output then i have no idea what else could be going on.Yeah, it gives the same output when I run it from somewhere else. Guess I'm back to where I started. Thanks for all your help though Mike. Josh
Apr 28 2013
On 04/28/2013 04:32 PM, QAston wrote:On Monday, 15 April 2013 at 18:10:00 UTC, Mike Wey wrote:It looks like a path issue you could try putting the location of the Gtk+ 3 installation before that of GtkSharp and see if that fixes the problems. -- Mike WeyOn 04/15/2013 05:45 PM, Josh wrote:I have the same problem as Josh, your code prints: ["C:\\ProgramData", "C:\\Users\\Public\\Documents", "C:\\Program Files (x86)\\GtkSharp\\2.12\\share", "[app location here]\\share"]On Sunday, 14 April 2013 at 13:34:07 UTC, Mike Wey wrote:Could you post the output of the following gtkD app: import glib.Util; import std.stdio; void main() { writeln(Util.getSystemDataDirs()); }So it looks like the shemas are installed properly. You could try running the gsettings app from a different location than where it's located, it should be in your path. If it doesn't give the same output then there may be a problem with how the path is setup. If it gives the same output then i have no idea what else could be going on.Yeah, it gives the same output when I run it from somewhere else. Guess I'm back to where I started. Thanks for all your help though Mike. Josh
Apr 28 2013
On Sunday, 28 April 2013 at 17:18:48 UTC, Mike Wey wrote:On 04/28/2013 04:32 PM, QAston wrote:I've set GTK_BASEPATH as gtkd wiki says(didn't notice that before) and it helped. Thanks!On Monday, 15 April 2013 at 18:10:00 UTC, Mike Wey wrote:It looks like a path issue you could try putting the location of the Gtk+ 3 installation before that of GtkSharp and see if that fixes the problems.On 04/15/2013 05:45 PM, Josh wrote:I have the same problem as Josh, your code prints: ["C:\\ProgramData", "C:\\Users\\Public\\Documents", "C:\\Program Files (x86)\\GtkSharp\\2.12\\share", "[app location here]\\share"]On Sunday, 14 April 2013 at 13:34:07 UTC, Mike Wey wrote:Could you post the output of the following gtkD app: import glib.Util; import std.stdio; void main() { writeln(Util.getSystemDataDirs()); }So it looks like the shemas are installed properly. You could try running the gsettings app from a different location than where it's located, it should be in your path. If it doesn't give the same output then there may be a problem with how the path is setup. If it gives the same output then i have no idea what else could be going on.Yeah, it gives the same output when I run it from somewhere else. Guess I'm back to where I started. Thanks for all your help though Mike. Josh
Apr 29 2013