Re: Hello World Example with Glade?

2015-09-12 Thread Mike McKee via Digitalmars-d-learn
On Saturday, 12 September 2015 at 09:03:53 UTC, Russel Winder wrote: Once you get to a GtkD application bigger than "Hello World" create a project and use Dub. Oh yes, Dub. That's the ticket. Thanks, mate.

Re: Hello World Example with Glade?

2015-09-12 Thread Mike McKee via Digitalmars-d-learn
On Friday, 11 September 2015 at 20:29:05 UTC, Mike Wey wrote: You should be able to drop the -L-ldl and -I/usr/ flags, as they are included in the pkg-config output. I just tested and you are correct. Now, is there a way that I can edit /etc/dmd.conf and make it so that I don't need to do

Re: Hello World Example with Glade?

2015-09-12 Thread Russel Winder via Digitalmars-d-learn
On Sat, 2015-09-12 at 06:58 +, Mike McKee via Digitalmars-d-learn wrote: […] > I just tested and you are correct. Now, is there a way that I can > edit /etc/dmd.conf and make it so that I don't need to do this > pkg-config stuff all the time? I think editing /etc/dmd.conf would be the wrong

Hello World Example with Glade?

2015-09-11 Thread Mike McKee via Digitalmars-d-learn
On Ubuntu Linux, I can draw a simple Hello World interface (and a button on it to close the window) with Glade and save the file. Now how do I use GtkD and D to load that interface? Anyone got a super simple tutorial for that?

Re: Hello World Example with Glade?

2015-09-11 Thread Mike James via Digitalmars-d-learn
On Friday, 11 September 2015 at 06:45:07 UTC, Mike McKee wrote: On Friday, 11 September 2015 at 06:00:39 UTC, Mike McKee wrote: [...] I think the start of this probably looks like the following, but I'm not certain: import gtk; import gobject.Type; import std.stdio; import std.c.process;

Re: Hello World Example with Glade?

2015-09-11 Thread Mike McKee via Digitalmars-d-learn
On Friday, 11 September 2015 at 06:00:39 UTC, Mike McKee wrote: On Ubuntu Linux, I can draw a simple Hello World interface (and a button on it to close the window) with Glade and save the file. Now how do I use GtkD and D to load that interface? Anyone got a super simple tutorial for that? I

Re: Hello World Example with Glade?

2015-09-11 Thread Mike James via Digitalmars-d-learn
On Friday, 11 September 2015 at 07:13:22 UTC, Mike McKee wrote: On Friday, 11 September 2015 at 06:53:07 UTC, Mike James wrote: There's a Glade example in the demos/builder directory... I'm having trouble installing GtkD on Ubuntu Linux 14.04. I did the apt steps from here:

Re: Hello World Example with Glade?

2015-09-11 Thread Mike McKee via Digitalmars-d-learn
On Friday, 11 September 2015 at 07:39:46 UTC, Mike James wrote: try # dmd test1.d -I/usr/include/dmd/gtkd3 # dmd test1.d -L-ldl -I/usr/include/dmd/gtkd3 test1.o:(.rodata+0x12c): undefined reference to `_D3gtk7Builder12__ModuleInfoZ' test1.o:(.rodata+0x130): undefined reference to

Re: Hello World Example with Glade?

2015-09-11 Thread Jordi Sayol via Digitalmars-d-learn
El 11/09/15 a les 09:13, Mike McKee via Digitalmars-d-learn ha escrit: > On Friday, 11 September 2015 at 06:53:07 UTC, Mike James wrote: >> There's a Glade example in the demos/builder directory... > > I'm having trouble installing GtkD on Ubuntu Linux 14.04. I did the apt steps > from here: >

Re: Hello World Example with Glade?

2015-09-11 Thread Mike McKee via Digitalmars-d-learn
On Friday, 11 September 2015 at 06:53:07 UTC, Mike James wrote: There's a Glade example in the demos/builder directory... I'm having trouble installing GtkD on Ubuntu Linux 14.04. I did the apt steps from here: http://d-apt.sourceforge.net/ $ sudo su # wget

Re: Hello World Example with Glade?

2015-09-11 Thread Jordi Sayol via Digitalmars-d-learn
El 11/09/15 a les 11:05, Jordi Sayol via Digitalmars-d-learn ha escrit: > El 11/09/15 a les 09:13, Mike McKee via Digitalmars-d-learn ha escrit: >> On Friday, 11 September 2015 at 06:53:07 UTC, Mike James wrote: >>> There's a Glade example in the demos/builder directory... >> >> I'm having trouble

Re: Hello World Example with Glade?

2015-09-11 Thread Mike McKee via Digitalmars-d-learn
On Friday, 11 September 2015 at 07:20:57 UTC, Mike James wrote: It looks last keep you're missing an import path (-Ipath_to_source). Check out http://dlang.org/dmd-linux.html#switches I tried this just now: # dmd test1.d -I/usr/include/dmd/gtkd3/gtkc /usr/include/dmd/gtkd3/gtkc/gtk.d(28):

Re: Hello World Example with Glade?

2015-09-11 Thread Mike James via Digitalmars-d-learn
On Friday, 11 September 2015 at 07:29:23 UTC, Mike McKee wrote: On Friday, 11 September 2015 at 07:20:57 UTC, Mike James wrote: It looks last keep you're missing an import path (-Ipath_to_source). Check out http://dlang.org/dmd-linux.html#switches I tried this just now: # dmd test1.d

Re: Hello World Example with Glade?

2015-09-11 Thread Mike James via Digitalmars-d-learn
On Friday, 11 September 2015 at 07:47:15 UTC, Mike McKee wrote: [...] The undefined references mean you haven't provided a linker path to the GtkD libs. Have you built the GtkD libraries? Check out https://github.com/gtkd-developers/GtkD

Re: Hello World Example with Glade?

2015-09-11 Thread Mike Wey via Digitalmars-d-learn
On 09/11/2015 04:00 PM, Mike McKee wrote: On Friday, 11 September 2015 at 09:07:37 UTC, Jordi Sayol wrote: On there is the "pkg-config" section: I finally got it to compile with your help, guys! :) Here's what I had to type: # dmd test1.d -L-ldl

Re: Hello World Example with Glade?

2015-09-11 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 11 September 2015 at 14:00:30 UTC, Mike McKee wrote: I finally got it to compile with your help, guys! :) Here's what I had to type: # dmd test1.d -L-ldl -I/usr/include/dmd/gtkd3 `pkg-config --cflags --libs gtkd3` Don't forget to answer yourself on SO too!

Re: Hello World Example with Glade?

2015-09-11 Thread Mike McKee via Digitalmars-d-learn
On Friday, 11 September 2015 at 09:07:37 UTC, Jordi Sayol wrote: On there is the "pkg-config" section: I finally got it to compile with your help, guys! :) Here's what I had to type: # dmd test1.d -L-ldl -I/usr/include/dmd/gtkd3 `pkg-config --cflags --libs

Re: Hello World Example with Glade?

2015-09-11 Thread Gary Willoughby via Digitalmars-d-learn
On Friday, 11 September 2015 at 07:13:22 UTC, Mike McKee wrote: I'm having trouble installing GtkD on Ubuntu Linux 14.04. Here's an old guide I wrote years ago. It might be a little out of date but may help you put things together: