[GtkD] How to use Glade?

Carlos checoimg at gmail.com
Thu May 2 14:22:40 PDT 2013


>
>> I get thhis error when trying to compile it :
>>
>> testgithub.d(3): Error: module Builder is in file 
>> 'gtk/Builder.d' which
>> cannot be read
>> import path[0] = /usr/include/dmd/phobos
>> import path[1] = /usr/include/dmd/druntime/import
>> import path[2] = /usr/local/includes/d
>> --------------------------------------------------------------------------------
>>
>>
>> I installed from here :
>>
>> link : http://www.dsource.org/projects/gtkd/wiki/DebianPackages
>
> Try:
>
> dmd testgithub.d $(pkg-config --cflags --libs gtkd-2)

Now I get this error on tha command line :

No glade file specified, using default "builderTest.glade"
glib.GException.GException at src/glib/GException.d(75): Failed to 
open file 'builderTest.glade': No such file or directory
----------------
./testgithub(_Dmain+0x10f) [0x67a7ff]
./testgithub(extern (C) int rt.dmain2._d_run_main(int, char**, 
extern (C) int function(char[][])*).void runMain()+0x18) 
[0x843bb4]
./testgithub(extern (C) int rt.dmain2._d_run_main(int, char**, 
extern (C) int function(char[][])*).void tryExec(scope void 
delegate())+0x2a) [0x8436f2]
./testgithub(extern (C) int rt.dmain2._d_run_main(int, char**, 
extern (C) int function(char[][])*).void runAll()+0x3b) [0x843bfb]
./testgithub(extern (C) int rt.dmain2._d_run_main(int, char**, 
extern (C) int function(char[][])*).void tryExec(scope void 
delegate())+0x2a) [0x8436f2]
./testgithub(_d_run_main+0x1a8) [0x8436ac]
./testgithub(main+0x17) [0x8434ff]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) 
[0x7f3b7001dea5]
----------------

Downloaded from here :


link : 
https://github.com/SawfishWM/rep-gtk/blob/master/examples/gtk-builder-test.glade

And still get errors.

No glade file specified, using default "builderTest.glade"
glib.GException.GException at src/glib/GException.d(75): Failed to 
open file 'builderTest.glade': No such file or directory
----------------
./testgithub(_Dmain+0x10f) [0x67a7ff]
./testgithub(extern (C) int rt.dmain2._d_run_main(int, char**, 
extern (C) int function(char[][])*).void runMain()+0x18) 
[0x843bb4]
./testgithub(extern (C) int rt.dmain2._d_run_main(int, char**, 
extern (C) int function(char[][])*).void tryExec(scope void 
delegate())+0x2a) [0x8436f2]
./testgithub(extern (C) int rt.dmain2._d_run_main(int, char**, 
extern (C) int function(char[][])*).void runAll()+0x3b) [0x843bfb]
./testgithub(extern (C) int rt.dmain2._d_run_main(int, char**, 
extern (C) int function(char[][])*).void tryExec(scope void 
delegate())+0x2a) [0x8436f2]
./testgithub(_d_run_main+0x1a8) [0x8436ac]
./testgithub(main+0x17) [0x8434ff]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) 
[0x7f98ed0ceea5]
----------------


More information about the Digitalmars-d-learn mailing list