Forum » Programiranje » Tcl/Tk
Tcl/Tk
mov ax 0x7c0 ::
Zdravo!
Torej instaliral sem Tcl/Tk - Development version na FC3. To rabim ker moram instalirat Cnet na linuxu... Problem ki se mi je pojavil je sledeč. Ko poženem make da b instaliral Cnet mi javi napako, da ne najde datotek tcl.h in tk.h Še sporočilo:
[slavc@um-sd03-702-1 cnet-2.0.9]$ make
(cd src && make)
make[1]: Entering directory `/home/slavc/cnet-2.0.9/src'
Linux 2.6.12-1.1376_FC3
make[2]: Entering directory `/home/slavc/cnet-2.0.9/src'
gcc -ansi -O -Wall -fPIC -Ilibelf -I/usr/X11R6/include -c applicationlayer.c
In file included from applicationlayer.c:1:
cnetheader.h:104:17: tcl.h: No such file or directory
cnetheader.h:105:16: tk.h: No such file or directory
In file included from applicationlayer.c:1:
cnetheader.h:129: error: syntax error before '*' token
cnetheader.h:129: warning: type defaults to `int' in declaration of `__CN115'
cnetheader.h:129: warning: data definition has no type or storage class
cnetheader.h:130: error: syntax error before "__CN116"
cnetheader.h:130: warning: type defaults to `int' in declaration of `__CN116'
cnetheader.h:130: warning: data definition has no type or storage class
make[2]: *** [applicationlayer.o] Error 1
make[2]: Leaving directory `/home/slavc/cnet-2.0.9/src'
make[1]: *** [it] Error 2
make[1]: Leaving directory `/home/slavc/cnet-2.0.9/src'
make: *** [it] Error 2
v datoteki cnetheader.h se kličejo tcl.h in tk.h takole:
In tukaj sedaj meni ni več jasno! Kako da ne najde teh dveh hederjev če pa mam naložen Tcl/Tk
Torej instaliral sem Tcl/Tk - Development version na FC3. To rabim ker moram instalirat Cnet na linuxu... Problem ki se mi je pojavil je sledeč. Ko poženem make da b instaliral Cnet mi javi napako, da ne najde datotek tcl.h in tk.h Še sporočilo:
[slavc@um-sd03-702-1 cnet-2.0.9]$ make
(cd src && make)
make[1]: Entering directory `/home/slavc/cnet-2.0.9/src'
Linux 2.6.12-1.1376_FC3
make[2]: Entering directory `/home/slavc/cnet-2.0.9/src'
gcc -ansi -O -Wall -fPIC -Ilibelf -I/usr/X11R6/include -c applicationlayer.c
In file included from applicationlayer.c:1:
cnetheader.h:104:17: tcl.h: No such file or directory
cnetheader.h:105:16: tk.h: No such file or directory
In file included from applicationlayer.c:1:
cnetheader.h:129: error: syntax error before '*' token
cnetheader.h:129: warning: type defaults to `int' in declaration of `__CN115'
cnetheader.h:129: warning: data definition has no type or storage class
cnetheader.h:130: error: syntax error before "__CN116"
cnetheader.h:130: warning: type defaults to `int' in declaration of `__CN116'
cnetheader.h:130: warning: data definition has no type or storage class
make[2]: *** [applicationlayer.o] Error 1
make[2]: Leaving directory `/home/slavc/cnet-2.0.9/src'
make[1]: *** [it] Error 2
make[1]: Leaving directory `/home/slavc/cnet-2.0.9/src'
make: *** [it] Error 2
v datoteki cnetheader.h se kličejo tcl.h in tk.h takole:
#include <tcl.h> #include <tk.h>
In tukaj sedaj meni ni več jasno! Kako da ne najde teh dveh hederjev če pa mam naložen Tcl/Tk
Vsak dan nekaj novega :)
64202 ::
Kam si pa nalozil tcl/tk? Preden pozenes configure od cneta (predvidevam da uporablja autoconf), se napisi:
export CPPFLAGS="-I/tvoj/include/direktorij/za/tcl"
export CPPFLAGS="-I/tvoj/include/direktorij/za/tcl"
I am NaN, I am a free man!
64202 ::
Hehe, se mi je zdelo malo znano:
Cnet "network simulator" @ Slo-Tech
Nastavit moras na roke taprav include v Makefile-u IIRC
Cnet "network simulator" @ Slo-Tech
Nastavit moras na roke taprav include v Makefile-u IIRC
I am NaN, I am a free man!
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | Crosscompiling Gnuradia za RPiOddelek: Operacijski sistemi | 1575 (1421) | poweroff |
» | Cnet "network simulator"Oddelek: Programska oprema | 2620 (2502) | urbecar |
» | Gentoo Linux & nov KDE problem!Oddelek: Pomoč in nasveti | 1241 (1181) | Tarzan |
» | nVidia nForce2 under LinuxOddelek: Operacijski sistemi | 1081 (1001) | BigWhale |
» | Problemi s compilanjem v Linux Slackware 9.1Oddelek: Operacijski sistemi | 1900 (1619) | Vesoljc |