www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - tkd not linking

reply karabuta <karabutaworld gmail.com> writes:
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-4989C12BA4599
5625492BF92EAC638A/ 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?
Sep 15 2015
next sibling parent reply Adam D. Ruppe <destructionator gmail.com> writes:
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.
Sep 15 2015
parent karabuta <karabutaworld gmail.com> writes:
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!
Sep 21 2015
prev sibling parent Gary Willoughby <dev nomad.so> writes:
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.
Sep 15 2015