Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 15/10/2005, à 12:07

packstlaurent

Les police dans les appliction tcl ?

Bonjour, j'utilse deux programme en tcl : amsn et nextviewepg.

Le problème est leur police qui est toute petite et tres moche. Seulement je ne sait pas comment les modifier.

Capture3.png

J'ai essayer qtconifg, mais ça ne modifie rien...

Si quelqu'un a une idée.



Merci

Hors ligne

#2 Le 15/10/2005, à 17:39

reggaemanu

Re : Les police dans les appliction tcl ?

Normal, QTconfig est fait pour les applications en QT comme son nom l'indique, pas pour les applis en tcl wink
En fait, c'est bien simple, tu ne peu rien y changer, sauf si tu compile la version CVS de tcl8.5 et tk8.5 en activant l'antialiasing.

Hors ligne

#3 Le 15/10/2005, à 19:19

packstlaurent

Re : Les police dans les appliction tcl ?

Ba tant pis alors.....:(

Mais merci quand même !!

Hors ligne

#4 Le 16/10/2005, à 17:50

reggaemanu

Re : Les police dans les appliction tcl ?

Avec tcl8.5/tk8.5 et un thème personnalisé (il n'est pas finis mais bon...) ça peu donner quelque chose de ce genre =>

amsncontactlist3dl.png

amsnchat3vw.png

Hors ligne

#5 Le 16/10/2005, à 17:55

packstlaurent

Re : Les police dans les appliction tcl ?

Ca m'interesse beaucoup ça !!!

Tu pourrais en dire un petit plus sur la methode à operer  stp smile

Et tu utilise quoi comme theme AMSN ?


Merci


Pack

Hors ligne

#6 Le 16/10/2005, à 18:25

reggaemanu

Re : Les police dans les appliction tcl ?

Le thème je l'ai fais moi meme (vu que tout ceux proposé sont tres laid lol),
il est basé sur clearlooks donc s'intègre bien a mon bureau smile ...mais il n'est pas finis il me reste les icones de la fenetre de chat et quelques trucs à modifier.

Sinon pour tcl/tk8.5 il faut les compiler à partir de la version cvs (donc pas forcement stable) c'est donc déconseillé.
Ceci dit pour ceux qui veulent quand même tenter l'experience voici la méthode que j'ai utilisé (sur breezy)...

sudo apt-get remove tcl8.4-dev tk8.4-dev

cd
wget http://ovh.dl.sourceforge.net/sourceforge/tcl/tcl8.5a3-src.tar.gz
tar xvzf tcl8.5a3-src.tar.gz
cd tcl8.5a3/unix
./configure --prefix=/usr
make
sudo make install

cd
wget http://ovh.dl.sourceforge.net/sourceforge/tcl/tk8.5a3-src.tar.gz
tar xvzf tk8.5a3-src.tar.gz
cd tk8.5a3/unix
./configure --prefix=/usr --enable-xft
make
sudo make install

(J'ai fait des paquets .deb avec checkinstall si ça interesse quelqu'un...sachant que ces paquets ne gères pas les dépendances (donc à vos risques et périls) mais facilites grandement la désinstallation.)

Ensuite il faut recompiler amsn pour qu'il utilise les versions 8.5

Dernière modification par reggaemanu (Le 16/10/2005, à 18:26)

Hors ligne

#7 Le 06/11/2005, à 13:45

adriclad

Re : Les police dans les appliction tcl ?

j'ai essayé la méthode que tu as donné pour compiler tcl/tk mais j'ai alors un petit problème.

lors du ./configure --prefix=/usr --enable-xft dans tk8.5a3/unix

j'obtient alors :

checking for Tcl configuration... found /home/adri/tcl8.5a3/unix/tclConfig.sh
checking for existence of /home/adri/tcl8.5a3/unix/tclConfig.sh... loading
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking if the compiler understands -pipe... yes
checking for building with threads... no (default)
checking how to build libraries... shared
checking for ranlib... ranlib
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking system version (for dynamic loading)... Linux-2.6.12-9-686
checking for dlopen in -ldl... yes
checking for ar... ar
checking for build with symbols... no
checking for required early compiler flags...  _LARGEFILE64_SOURCE
checking for 64-bit integer type... long long
checking for struct dirent64... no
checking for struct stat64... yes
checking for open64... yes
checking for lseek64... yes
checking for off64_t... yes
checking whether byte ordering is bigendian... no
checking stdlib.h... yes
checking fd_set and sys/select... yes
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking pw_gecos in struct pwd... yes
[b]checking for X... no
checking for X11 header files... checking for X11 libraries... checking for XCreateWindow in -lXwindow... no
couldn't find any!  Using -lX11.[/b]
checking for main in -lXbsd... no
checking for X11/extensions/scrnsaver.h... no
checking for XScreenSaverQueryInfo... no
checking for XScreenSaverQueryInfo in -lXext... no
checking for XScreenSaverQueryInfo in -lXss... no
checking whether char is unsigned... no
checking for strtod... yes
checking for Solaris2.4/Tru64 strtod bugs... ok
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tkConfig.sh

On voit alors qu'il n'arrive pas à trouver les headers de X11.
d'où quand je fais après un make j'ai :

gcc -pipe -c -O2  -Wall -Wno-implicit-int -fPIC -I/home/adri/tk8.5a3/unix -I/home/adri/tk8.5a3/unix/../generic -I/home/adri/tk8.5a3/unix/../bitmaps -I/home/adri/tcl8.5a3/generic -I/home/adri/tcl8.5a3/unix  -DPACKAGE_NAME=\"tk\" -DPACKAGE_TARNAME=\"tk\" -DPACKAGE_VERSION=\"8.5\" -DPACKAGE_STRING=\"tk\ 8.5\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DPEEK_XCLOSEIM=1 -DTCL_SHLIB_EXT=\".so\" -DTCL_CFG_OPTIMIZED=1 -DTCL_CFG_DEBUG=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 -DHAVE_TYPE_OFF64_T=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_PW_GECOS=1      -DTCL_NO_DEPRECATED  -DUSE_TCL_STUBS  /home/adri/tk8.5a3/unix/../generic/tk3d.c
Dans le fichier inclus à partir de /home/adri/tk8.5a3/unix/../generic/tkInt.h:21,
          à partir de /home/adri/tk8.5a3/unix/../generic/tk3d.h:18,
          à partir de /home/adri/tk8.5a3/unix/../generic/tk3d.c:16:
[b]/home/adri/tk8.5a3/unix/../generic/tk.h:95:23: erreur: X11/Xlib.h : Aucun fichier ou répertoire de ce type[/b]
In file included from /home/adri/tk8.5a3/unix/../generic/tkInt.h:21,
                 from /home/adri/tk8.5a3/unix/../generic/tk3d.h:18,
                 from /home/adri/tk8.5a3/unix/../generic/tk3d.c:16:
/home/adri/tk8.5a3/unix/../generic/tk.h:571: erreur: syntax error before ‘Window’

...

Il ne trouve alors pas Xlib.h. Comment puis-je résoudre ce problème ?

Hors ligne

#8 Le 10/11/2005, à 12:35

adriclad

Re : Les police dans les appliction tcl ?

Personne ne sait comment faire ?

Hors ligne

#9 Le 11/11/2005, à 01:26

reggaemanu

Re : Les police dans les appliction tcl ?

hum, sudo apt-get install xlibs-dev ?

Hors ligne

#10 Le 13/11/2005, à 18:31

adriclad

Re : Les police dans les appliction tcl ?

je te remercie, je ne savais pas dans quel packag c'était.

je suis donc arriver à le compiler mais je n'arrive toujours pas à avoir les polices anti-aliasés. J'ai cependant bien les nouvelles combo box de la version 8.5.

j'ai dû compiler avec l'option --enable-xft2 comme ci dessous:
./configure --prefix=/usr --enable-xft2

Pourquoi avec une kubuntu comme toi, ça marche pas de mon coté avec "--enable-xft" ?

j'obtient le log suivant :

checking for Tcl configuration... found /home/adri/tcl8.5a3/unix/tclConfig.sh
checking for existence of /home/adri/tcl8.5a3/unix/tclConfig.sh... loading
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking if the compiler understands -pipe... yes
checking for building with threads... no (default)
checking how to build libraries... shared
checking for ranlib... ranlib
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking system version (for dynamic loading)... Linux-2.6.12-9-686
checking for dlopen in -ldl... yes
checking for ar... ar
checking for build with symbols... no
checking for required early compiler flags...  _LARGEFILE64_SOURCE
checking for 64-bit integer type... long long
checking for struct dirent64... no
checking for struct stat64... yes
checking for open64... yes
checking for lseek64... yes
checking for off64_t... yes
checking whether byte ordering is bigendian... no
checking stdlib.h... yes
checking fd_set and sys/select... yes
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking pw_gecos in struct pwd... yes
checking for X... libraries /usr/X11R6/lib, headers
checking for X11 header files... checking for main in -lXbsd... no
checking for X11/extensions/scrnsaver.h... no
checking for XScreenSaverQueryInfo... no
checking for XScreenSaverQueryInfo in -lXext... no
checking for XScreenSaverQueryInfo in -lXss... no
checking whether char is unsigned... no
checking for strtod... yes
checking for Solaris2.4/Tru64 strtod bugs... ok
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tkConfig.sh

puis j'ai fait un make && make install
et j'ai lancé amsn avec wish8.5 amsn dans /usr/share/amsn ???

pourquoi n'ai je pas alors les polices anti-aliasés ?

Hors ligne

#11 Le 13/11/2005, à 19:07

reggaemanu

Re : Les police dans les appliction tcl ?

As tu bien compilé tk aussi? c'est dans tk qu'il y a le support de l'antialiasing.
As tu recompilé amsn avec tcl8.5 apres?

Hors ligne

#12 Le 14/11/2005, à 14:51

adriclad

Re : Les police dans les appliction tcl ?

oui c'est pour tk que j'ai fait ./configure --prefix=/usr --enable-xft2 (et non avec --enable-xft) et que j'ai le message ci-dessus.

sinon je n'ai pas recompilé la version cvs de amsn ?
j'ai essayé avec la version qui correspond à amsn sous ubuntu (et non asmncvs).

crois-tu qu'il faut que je recompile amsn cvs ? car en spécifiant bien que j'utilise la version 8.5 de tk avec wish8.5 ça ne devrait pas aussi marcher avec des versions non recompilés ?

Hors ligne

#13 Le 14/11/2005, à 19:18

reggaemanu

Re : Les police dans les appliction tcl ?

pas sur, autant recompiler
sinon, tu peu aussi essayer de modifier les liens pour remplacer totalement tcl8.4 et tk8.4 par les versions 8.5 (le lien wish qui pointe sur wish8.5 et non 8.4, ainsi que d'autres, mais je n'me rappel plus exactement les liens que j'ai modifié et je n'retrouve pu la page que j'avais trouvé qui en parlais)

sinon tu peu aussi regarder ici => http://ubuntuforums.org/archive/index.php/t-87001.html
il y'a tout déja en paquet .deb

Hors ligne

#14 Le 15/11/2005, à 15:42

adriclad

Re : Les police dans les appliction tcl ?

ça marche maintenant avec les packets du lien ci-dessus.

par contre pour que ça marche j'ai du virer les librairies libtcl8.5.so et libtk8.5.so puis faire les liens comme ils indiquent.

en effet, les librairies des versions que j'avaient compilés et installés restent car je suis pas arrivé à les désinstaller. J'ai fais un make uninstall mais il n'y a pas de règle de ce type. Alors comment bien désinstallés les packages que j'avais installés ?

En tout cas merci bien, amsn devient maintenant vraiment utilisable.

Hors ligne