Jump to page: 1 2
Thread overview
GtkD "No GSettings schemas installed"
Mar 30, 2013
Josh
Mar 30, 2013
Mike Wey
Mar 30, 2013
Josh
Mar 30, 2013
Josh
Mar 30, 2013
Mike Wey
Mar 30, 2013
Josh
Mar 31, 2013
Mike Wey
Apr 02, 2013
Josh
Apr 02, 2013
Mike Wey
Apr 03, 2013
Josh
Apr 03, 2013
Mike Wey
Apr 10, 2013
Josh
Apr 10, 2013
Mike Wey
Apr 13, 2013
Josh
Apr 14, 2013
Mike Wey
Apr 15, 2013
Josh
Apr 15, 2013
Mike Wey
Apr 28, 2013
QAston
Apr 28, 2013
Mike Wey
Apr 29, 2013
QAston
March 30, 2013
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
March 30, 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,
>
> Josh

It 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
March 30, 2013
On Saturday, 30 March 2013 at 13:19:03 UTC, Mike Wey wrote:
> 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,
>>
>> Josh
>
> It 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.

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,
Josh
March 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:
>> 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,
>>>
>>> Josh
>>
>> It 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.
>
> 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,
> Josh

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,
Josh
March 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,
> Josh

That are the same warnings i get, does the FileChooserDialog work properly after running glib-compile-schemas.exe ?

-- 
Mike Wey
March 30, 2013
On Saturday, 30 March 2013 at 16:17:22 UTC, Mike Wey wrote:
> 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,
>> Josh
>
> That are the same warnings i get, does the FileChooserDialog work properly after running glib-compile-schemas.exe ?

No, nothing has changed Mike.

Josh
March 31, 2013
On 03/30/2013 05:42 PM, Josh wrote:
> On Saturday, 30 March 2013 at 16:17:22 UTC, Mike Wey wrote:
>> 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,
>>> Josh
>>
>> That are the same warnings i get, does the FileChooserDialog work
>> properly after running glib-compile-schemas.exe ?
>
> No, nothing has changed Mike.
>
> Josh

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 Wey
April 02, 2013
On Sunday, 31 March 2013 at 14:21:50 UTC, Mike Wey wrote:
> On 03/30/2013 05:42 PM, Josh wrote:
>> On Saturday, 30 March 2013 at 16:17:22 UTC, Mike Wey wrote:
>>> 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,
>>>> Josh
>>>
>>> That are the same warnings i get, does the FileChooserDialog work
>>> properly after running glib-compile-schemas.exe ?
>>
>> No, nothing has changed Mike.
>>
>> Josh
>
> I'm not sure why its not working, could you try the 3.6 runtime?
> https://code.google.com/p/gtkd-packages/downloads/list

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,
Josh
April 02, 2013
On 04/02/2013 02:38 PM, Josh wrote:
> On Sunday, 31 March 2013 at 14:21:50 UTC, Mike Wey wrote:
>> On 03/30/2013 05:42 PM, Josh wrote:
>>> On Saturday, 30 March 2013 at 16:17:22 UTC, Mike Wey wrote:
>>>> 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,
>>>>> Josh
>>>>
>>>> That are the same warnings i get, does the FileChooserDialog work
>>>> properly after running glib-compile-schemas.exe ?
>>>
>>> No, nothing has changed Mike.
>>>
>>> Josh
>>
>> I'm not sure why its not working, could you try the 3.6 runtime?
>> https://code.google.com/p/gtkd-packages/downloads/list
>
> 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,
> Josh

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 Wey
April 03, 2013
On Tuesday, 2 April 2013 at 20:50:16 UTC, Mike Wey wrote:
> On 04/02/2013 02:38 PM, Josh wrote:
>> On Sunday, 31 March 2013 at 14:21:50 UTC, Mike Wey wrote:
>>> On 03/30/2013 05:42 PM, Josh wrote:
>>>> On Saturday, 30 March 2013 at 16:17:22 UTC, Mike Wey wrote:
>>>>> 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,
>>>>>> Josh
>>>>>
>>>>> That are the same warnings i get, does the FileChooserDialog work
>>>>> properly after running glib-compile-schemas.exe ?
>>>>
>>>> No, nothing has changed Mike.
>>>>
>>>> Josh
>>>
>>> I'm not sure why its not working, could you try the 3.6 runtime?
>>> https://code.google.com/p/gtkd-packages/downloads/list
>>
>> 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,
>> Josh
>
> 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.

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?
« First   ‹ Prev
1 2