Thread overview | ||||||
---|---|---|---|---|---|---|
|
October 01, 2020 How to compile helloworld.d from gtkd on arch linux | ||||
---|---|---|---|---|
| ||||
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 |
October 02, 2020 Re: How to compile helloworld.d from gtkd on arch linux | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alaindevos | 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 |
October 02, 2020 Re: How to compile helloworld.d from gtkd on arch linux | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alaindevos | 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 |
October 03, 2020 Re: How to compile helloworld.d from gtkd on arch linux | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Wey | 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.
|
Copyright © 1999-2021 by the D Language Foundation