GtkD "No GSettings schemas installed"

Mike Wey mike-wey at example.com
Wed Apr 3 13:43:03 PDT 2013


On 04/03/2013 05:38 AM, Josh wrote:
> 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?

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 Wey


More information about the Digitalmars-d-learn mailing list