Dear all,
I trying to install pd-0.40-0
PI_ALSA -I/usr/include/tcl8.4 -c -o ../obj/t_main.o t_main.c t_main.c:18:16: error: tk.h: No such file or directory
the includepath is set in the makefile GINCLUDE = $(CPPFLAGS) -I/usr/include/tcl8.4
I have the latest tcl8.4 installed . But it is strange-I cannot find any tk.h in /usr/include/tcl8.4 There is only a tcl.h (is it that one?).
My os is debian and I am confused.
Gerda
Gerda Strobl wrote:
Dear all,
I have the latest tcl8.4 installed . But it is strange-I cannot find any tk.h in /usr/include/tcl8.4 There is only a tcl.h (is it that one?).
no it is not the same (that's why they are called differently;-))
tcl!=tk
you also need to have tk8.4-dev installed
mf.adsr. IOhannes
IOhannes m zmoelnig wrote:
Gerda Strobl wrote:
Dear all,
I have the latest tcl8.4 installed . But it is strange-I cannot find any tk.h in /usr/include/tcl8.4 There is only a tcl.h (is it that one?).
no it is not the same (that's why they are called differently;-))
tcl!=tk
you also need to have tk8.4-dev installed
mf.adsr. IOhannes
But I have! (Should I set the path in the makefile?)
root@/usr/share/tk8.4 whereis tk8.4 tk8: /usr/lib/tk8.4 /usr/share/tk8.4
and the folder /usr/lib/tk8.4 / contains a file tk.tcl only...and when I generally search for tk.h on my system I cannot find that file.
Gerda
Gerda Strobl wrote:
IOhannes m zmoelnig wrote:
Gerda Strobl wrote:
Dear all,
I have the latest tcl8.4 installed . But it is strange-I cannot find any tk.h in /usr/include/tcl8.4 There is only a tcl.h (is it that one?).
no it is not the same (that's why they are called differently;-))
tcl!=tk
you also need to have tk8.4-dev installed
mf.adsr. IOhannes
But I have!
no you don't ;-)
(Should I set the path in the makefile?)
no need for that.
root@/usr/share/tk8.4 whereis tk8.4 tk8: /usr/lib/tk8.4 /usr/share/tk8.4
please note the trailing "-dev" in tk8.4-dev
and the folder /usr/lib/tk8.4 / contains a file tk.tcl only...and when I generally search for tk.h on my system I cannot find that file.
zmoelnig@ferrari:~$ dpkg -L tk8.4 | grep tk.h
zmoelnig@ferrari:~$ dpkg -L tk8.4-dev | grep tk.h /usr/include/tcl8.4/tk-private/generic/tk.h /usr/include/tcl8.4/tk.h
zmoelnig@ferrari:~$
so tk8.4(-dev) depends on tcl8.4(-dev); headers are installed into /usr/include/tk<X.Y>/ (tk is really the graphics part of the script-language tcl)
~$ su ... # aptitude install tk8.4-dev
mfg.adsr. IOhannes
IOhannes m zmoelnig wrote: [...]
please note the trailing "-dev" in tk8.4-dev
and the folder /usr/lib/tk8.4 / contains a file tk.tcl only...and when I generally search for tk.h on my system I cannot find that file.
zmoelnig@ferrari:~$ dpkg -L tk8.4 | grep tk.h
zmoelnig@ferrari:~$ dpkg -L tk8.4-dev | grep tk.h /usr/include/tcl8.4/tk-private/generic/tk.h /usr/include/tcl8.4/tk.h
zmoelnig@ferrari:~$
so tk8.4(-dev) depends on tcl8.4(-dev); headers are installed into /usr/include/tk<X.Y>/ (tk is really the graphics part of the script-language tcl)
~$ su ... # aptitude install tk8.4-dev
ok. with tk8.4-dev it works, but unfortunately I still dont get through the installation process:
tcl8.4 -c -o ../obj/t_tkcmd.o t_tkcmd.c
cd ../obj; cc -o ../bin/pd-gui t_main.o t_tkcmd.o
-ltcl8.4
t_main.o: In function Tcl_AppInit': /usr/local/lib/pd/pd-0.40-0/src/t_main.c:93: undefined reference to
Tk_Init'
t_main.o: In function main': /usr/local/lib/pd/pd-0.40-0/src/t_main.c:59: undefined reference to
Tk_MainEx'
collect2: ld returned 1 exit status
make: *** [../bin/pd-gui] Error 1
Gerda