www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - How to compile helloworld.d from gtkd on arch linux

reply Alaindevos <devosalain ymail.com> writes:
Installing gtkd is piece of cake. Just make and make install of ,
https://github.com/gtkd-developers/GtkD
But how should i compile e.g.
https://github.com/gtkd-developers/GtkD/blob/master/demos/gtk/HelloWorld.d

dmd HelloWorld.d  some_magic_stuff_goes_here_but_what_exactly
Oct 01 2020
next sibling parent Mike Parker <aldacron gmail.com> writes:
On Thursday, 1 October 2020 at 23:43:26 UTC, Alaindevos wrote:
 Installing gtkd is piece of cake. Just make and make install of 
 ,
 https://github.com/gtkd-developers/GtkD
 But how should i compile e.g.
 https://github.com/gtkd-developers/GtkD/blob/master/demos/gtk/HelloWorld.d

 dmd HelloWorld.d  some_magic_stuff_goes_here_but_what_exactly
You'll probably want to use dub instead of calling dmd directly. I've never used gtkd, but if I were starting I'd go here: https://gtkdcoding.com/ The intro tutorials are at the bottom of the page. Also, this sort of question is better suited to the Learn forum: https://forum.dlang.org/group/learn
Oct 01 2020
prev sibling parent reply Mike Wey <mike-wey example.com> writes:
On 02-10-2020 01:43, Alaindevos wrote:
 Installing gtkd is piece of cake. Just make and make install of ,
 https://github.com/gtkd-developers/GtkD
 But how should i compile e.g.
 https://github.com/gtkd-developers/GtkD/blob/master/demos/gtk/HelloWorld.d
 
 dmd HelloWorld.d  some_magic_stuff_goes_here_but_what_exactly
 
You can use pkg-config to get the compiler flags needed: ``` dmd HelloWorld.d `pkg-config --cflags --libs gtkd-3` ``` -- Mike Wey
Oct 02 2020
parent Alaindevos <devosalain ymail.com> writes:
On Friday, 2 October 2020 at 17:04:29 UTC, Mike Wey wrote:
 On 02-10-2020 01:43, Alaindevos wrote:
 Installing gtkd is piece of cake. Just make and make install 
 of ,
 https://github.com/gtkd-developers/GtkD
 But how should i compile e.g.
 https://github.com/gtkd-developers/GtkD/blob/master/demos/gtk/HelloWorld.d
 
 dmd HelloWorld.d  some_magic_stuff_goes_here_but_what_exactly
 
You can use pkg-config to get the compiler flags needed: ``` dmd HelloWorld.d `pkg-config --cflags --libs gtkd-3` ```
Indeed. I figured that out. Note the minus sign between gtkd and 3 which is essential. Currently trying to install gtkd on Freebsd. Compilation worked fine.
Oct 02 2020