Thread overview | ||||||
---|---|---|---|---|---|---|
|
September 15, 2015 tkd not linking | ||||
---|---|---|---|---|
| ||||
I have tried several times to compile tkd using dub but I keep getting this message: Linking... /usr/bin/ld: cannot find -ltcl /usr/bin/ld: cannot find -ltk collect2: error: ld returned 1 exit status --- errorlevel 1 FAIL .dub/build/application-debug-linux.posix-x86-dmd_2068-4989C12BA459945625492BF92EAC638A/ tkdapps executable Error executing command run: dmd failed with exit code 1. I use Ubuntu 14.04 x32. Here is the dub.json file content { "name": "tkdapps", "description": "A minimal D application.", "copyright": "Copyright © 2015, karabuta", "authors": ["karabuta"], "dependencies": { "tcltk": "8.6.5", "tkd": "1.1.4" } } Just incase, I have install version 8.6 of the Tcl/Tk libraries What is the problem. And how is tcltk different from tkd in the first place? |
September 15, 2015 Re: tkd not linking | ||||
---|---|---|---|---|
| ||||
Posted in reply to karabuta | On Tuesday, 15 September 2015 at 17:37:40 UTC, karabuta wrote: > Just incase, I have install version 8.6 of the Tcl/Tk libraries Did you get the development version? sudo apt-get install tk-dev or possibly sudo apt-get install tk8.6-dev should do it. I'm not actually sure if that's required for this (I've never used it) but it might be. > What is the problem. And how is tcltk different from tkd in the first place? tkd is just a D wrapper for the library. |
September 15, 2015 Re: tkd not linking | ||||
---|---|---|---|---|
| ||||
Posted in reply to karabuta | On Tuesday, 15 September 2015 at 17:37:40 UTC, karabuta wrote:
> I have tried several times to compile tkd using dub but I keep getting this message:
>
> Linking...
> /usr/bin/ld: cannot find -ltcl
> /usr/bin/ld: cannot find -ltk
It looks like the libraries are not installed or not installed properly.
|
September 21, 2015 Re: tkd not linking | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | On Tuesday, 15 September 2015 at 17:46:42 UTC, Adam D. Ruppe wrote:
> On Tuesday, 15 September 2015 at 17:37:40 UTC, karabuta wrote:
>> Just incase, I have install version 8.6 of the Tcl/Tk libraries
>
> Did you get the development version?
>
> sudo apt-get install tk-dev
>
> or possibly
>
> sudo apt-get install tk8.6-dev
>
> should do it. I'm not actually sure if that's required for this (I've never used it) but it might be.
>
>> What is the problem. And how is tcltk different from tkd in the first place?
>
> tkd is just a D wrapper for the library.
Thanks Adam, sudo apt-get install tk-dev worked. Hurray! lets start GUI programming in D!
|
Copyright © 1999-2021 by the D Language Foundation