Re: Linux & DMD & GtkD

2019-02-18 Thread Peter Jacobs via Digitalmars-d-learn
On Monday, 18 February 2019 at 14:24:46 UTC, Ron Tarrant wrote: On Monday, 18 February 2019 at 10:38:10 UTC, Peter Jacobs wrote: Being an old linux user, I prefer make to dub, however, I do use dub to build GtkD and then I just use dmd to build my application program. This appeals to me,

Re: Linux & DMD & GtkD

2019-02-18 Thread Ron Tarrant via Digitalmars-d-learn
On Saturday, 16 February 2019 at 19:11:03 UTC, Antonio Corbi wrote: /+ dub.sdl: name "gtkhello" dflags "-dip25" "-dip1000" dependency "gtk-d:gtkd" version="~>3.8.0" +/ /* dub run --single gtkhello.d dub build --single gtkhello.d. dub gtkhello.d . */ This is

Re: Linux & DMD & GtkD

2019-02-18 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 18 February 2019 at 10:38:10 UTC, Peter Jacobs wrote: Being an old linux user, I prefer make to dub, however, I do use dub to build GtkD and then I just use dmd to build my application program. This appeals to me, too. dub clean dub build Got this bit working after generating

Re: Linux & DMD & GtkD

2019-02-18 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 18 February 2019 at 06:29:54 UTC, Russel Winder wrote: Hopefully the above has helped, do feel free to ask further questions. I am a day-in, day-out Debian Sid user and so may still be making assumptions tht aren't working for you… I really appreciate all the time and effort you

Re: Linux & DMD & GtkD

2019-02-18 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 18 February 2019 at 13:55:41 UTC, Ron Tarrant wrote: But some day I shall reclaim my Super Cow Powers. :) Oh, I guess I misspelled 'seardh.' That may explain why my attempt to run aptitude was 'put out to pasture.'

Re: Linux & DMD & GtkD

2019-02-18 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 18 February 2019 at 13:34:22 UTC, Ron Tarrant wrote: You've saved me a ton of time and effort. This can be interpreted as: flailing about, bashing my shell against the terminal.

Re: Linux & DMD & GtkD

2019-02-18 Thread Ron Tarrant via Digitalmars-d-learn
On Sunday, 17 February 2019 at 14:19:35 UTC, Jordi Sayol wrote: To add this repository to your Linux Mint just run this two lines from command line: Jordi Thanks, Jordi. This is going straight into my notes. You've saved me a ton of time and effort.

Re: Linux & DMD & GtkD

2019-02-18 Thread Ron Tarrant via Digitalmars-d-learn
On Saturday, 16 February 2019 at 19:11:03 UTC, Antonio Corbi wrote: For one-file programs, dub usage is very easy. Placing a minimal comment-header between /+ +/ symbol comments, gets your job done like in this example ( I think the gtkd code is from one of your examples in the blog):

Re: Linux & DMD & GtkD

2019-02-18 Thread Peter Jacobs via Digitalmars-d-learn
On Saturday, 16 February 2019 at 13:35:57 UTC, Ron Tarrant wrote: Hi guys, I finally got a Linux Mint installation happening (very impressed, BTW) and did the usual HelloWorld.d compile with dmd, but I'm having trouble working out how to link to GtkD. dmd -de -w -m64 -L+gtkd

Re: Linux & DMD & GtkD

2019-02-17 Thread Russel Winder via Digitalmars-d-learn
On Sat, 2019-02-16 at 16:28 +, Ron Tarrant via Digitalmars-d-learn wrote: > > […] Apologies for the delay in replying. > It's been almost 20 years since I used Linux and my notes are > long gone. A ton of things have changed. Like, for instance, it > found all my hardware this time,

Re: Linux & DMD & GtkD

2019-02-17 Thread Jordi Sayol via Digitalmars-d-learn
El 17/2/19 a les 15:19, Jordi Sayol ha escrit: > Then you can compile/run a GtkD example contained on gtkd doc archive. To do > that just run the next line: > > $ dmd `pkg-config --cflags --libs gtkd-3` -run > /usr/share/libgtkd3-doc/demos/gtkD/TestWindow/*.d -ofTestWindow Sorry, do not run at

Re: Linux & DMD & GtkD

2019-02-17 Thread Jordi Sayol via Digitalmars-d-learn
El 16/2/19 a les 14:35, Ron Tarrant via Digitalmars-d-learn ha escrit: > Hi guys, > > I finally got a Linux Mint installation happening (very impressed, BTW) and > did the usual HelloWorld.d compile with dmd, but I'm having trouble working > out how to link to GtkD. > > dmd -de -w -m64 -L+gtkd

Re: Linux & DMD & GtkD

2019-02-16 Thread Antonio Corbi via Digitalmars-d-learn
On Saturday, 16 February 2019 at 16:28:09 UTC, Ron Tarrant wrote: On Saturday, 16 February 2019 at 14:29:56 UTC, Russel Winder wrote: Pass, sorry. Thanks for the replies, guys... I quoted the above line because it's just about the only thing I understood. Let me explain... It's been

Re: Linux & DMD & GtkD

2019-02-16 Thread Andre Pany via Digitalmars-d-learn
On Saturday, 16 February 2019 at 16:37:17 UTC, Andre Pany wrote: On Saturday, 16 February 2019 at 16:28:09 UTC, Ron Tarrant wrote: [...] Create a file sample1.d with following content #!/usr/bin/env dub /+ dub.sdl: dependency "vibe-d" version="~>0.8.0" +/ void main() { import vibe.d;

Re: Linux & DMD & GtkD

2019-02-16 Thread Andre Pany via Digitalmars-d-learn
On Saturday, 16 February 2019 at 16:28:09 UTC, Ron Tarrant wrote: On Saturday, 16 February 2019 at 14:29:56 UTC, Russel Winder wrote: Pass, sorry. Thanks for the replies, guys... I quoted the above line because it's just about the only thing I understood. Let me explain... It's been

Re: Linux & DMD & GtkD

2019-02-16 Thread Ron Tarrant via Digitalmars-d-learn
On Saturday, 16 February 2019 at 14:29:56 UTC, Russel Winder wrote: Pass, sorry. Thanks for the replies, guys... I quoted the above line because it's just about the only thing I understood. Let me explain... It's been almost 20 years since I used Linux and my notes are long gone. A ton

Re: Linux & DMD & GtkD

2019-02-16 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 16 February 2019 at 13:35:57 UTC, Ron Tarrant wrote: dmd -de -w -m64 -L+gtkd hello_gtkd_world.d DMD's -L switch means "pass the following flag to the linker". Linker arguments are system-dependent. The + is what you use on Windows to specify the library path when running DMD

Re: Linux & DMD & GtkD

2019-02-16 Thread Russel Winder via Digitalmars-d-learn
On Sat, 2019-02-16 at 13:35 +, Ron Tarrant via Digitalmars-d-learn wrote: > Hi guys, > > I finally got a Linux Mint installation happening (very > impressed, BTW) and did the usual HelloWorld.d compile with dmd, > but I'm having trouble working out how to link to GtkD. > > dmd -de -w -m64

Re: Linux & DMD & GtkD

2019-02-16 Thread WebFreak001 via Digitalmars-d-learn
On Saturday, 16 February 2019 at 13:35:57 UTC, Ron Tarrant wrote: Hi guys, I finally got a Linux Mint installation happening (very impressed, BTW) and did the usual HelloWorld.d compile with dmd, but I'm having trouble working out how to link to GtkD. dmd -de -w -m64 -L+gtkd

Linux & DMD & GtkD

2019-02-16 Thread Ron Tarrant via Digitalmars-d-learn
Hi guys, I finally got a Linux Mint installation happening (very impressed, BTW) and did the usual HelloWorld.d compile with dmd, but I'm having trouble working out how to link to GtkD. dmd -de -w -m64 -L+gtkd hello_gtkd_world.d says it can't find MainWindow which tells me the gtkd