#1 Le 10/11/2007, à 19:30
- Blacko
Erreur de compilation d'un Splash screen
Bonjour,
J'ai installé Ubuntu sur mon nouvel ordinateur, mais comme l'écran est d'une résolution de 1680X1050, le "splash screen" n'est pas à l'échelle et semble étiré. C'est pourquoi j'ai tenté de modifier l'orinigal (je le trouve beau), simplement pour ajouter une résolution, celle de mon écran. J'ai suivi le tutoriel de la documentation, mais j'ai eu de la difficulté lors du "checkinstall".
Tout d'abord, j'ai ouvert la version 1024X768 du "splash screen" avec Gimp. J'ai modifié la taille du canevas pour l'agrandir en 1680X1050 sans étirer l'image. Ensuite, j'ai créé un nouveau calque noir que j'ai placé en arrière du premier pour remplir l'espace vide créé en agrandissant le canevas. Finalement, j'ai enregistré l'image en .png dans le fichier original (celui avec les sources du "splash screen" original: usplash-theme-ubunt-0.16).
Là o๠ça se corse, c'est lors de la création du paquet. Je n'ai pas compris si je devais faire le paquet .deb à partir des sources ou si je devais créer un nouveau dossier. J'ai donc gardé le dossier des sources (avec en plus mon image en 1680X1050) pour faire mon paquet. Par contre, je l'ai renommé en "usplash-theme-modifie".
J'ai téléchargé tous les paquets mentionnés dans le tutoriels et j'ai commençé. J'ai renommer mon dossier en "usplash-theme-modifie", j'ai renommer les fichiers postinst et postrm comme mentionné dans le tutoriel, j'ai changé "usplash-theme-ubuntu" en "usplash-theme-modifie" dans les fichiers et leur titre (postinst, postrm, rules, Makefile et usplash-theme-ubunt.c). Finalement, j'ai aussi copié les fichiers postinst et postrm dans le dossier usplash-theme-modifie, comme demandé dans le tutoriel.
Ensuite, j'ai lancé le "make", mais j'ai eu plusieurs problèmes de redondance cyclique:
blacko@BLACKO-1:~$ cd ~/Bureau
blacko@BLACKO-1:~/Bureau$ cd usplash-theme-modifie
blacko@BLACKO-1:~/Bureau/usplash-theme-modifie$ sudo make
make: Dépendance circulaire throbber_back.png <- throbber_back.png.c abandonnée.
pngtousplash throbber_back.png > throbber_back.png.c
gcc -g -Wall -fPIC -o throbber_back.png.c.o -c throbber_back.png.c
make: Dépendance circulaire throbber_back_16.png <- throbber_back_16.png.c abandonnée.
pngtousplash throbber_back_16.png > throbber_back_16.png.c
gcc -g -Wall -fPIC -o throbber_back_16.png.c.o -c throbber_back_16.png.c
make: Dépendance circulaire throbber_fore.png <- throbber_fore.png.c abandonnée.
pngtousplash throbber_fore.png > throbber_fore.png.c
gcc -g -Wall -fPIC -o throbber_fore.png.c.o -c throbber_fore.png.c
make: Dépendance circulaire throbber_fore_16.png <- throbber_fore_16.png.c abandonnée.
pngtousplash throbber_fore_16.png > throbber_fore_16.png.c
gcc -g -Wall -fPIC -o throbber_fore_16.png.c.o -c throbber_fore_16.png.c
make: Dépendance circulaire usplash_1024_768.png <- usplash_1024_768.png.c abandonnée.
pngtousplash usplash_1024_768.png > usplash_1024_768.png.c
gcc -g -Wall -fPIC -o usplash_1024_768.png.c.o -c usplash_1024_768.png.c
make: Dépendance circulaire usplash_1365_768_scaled.png <- usplash_1365_768_scaled.png.c abandonnée.
pngtousplash usplash_1365_768_scaled.png > usplash_1365_768_scaled.png.c
gcc -g -Wall -fPIC -o usplash_1365_768_scaled.png.c.o -c usplash_1365_768_scaled.png.c
make: Dépendance circulaire usplash_800_600.png <- usplash_800_600.png.c abandonnée.
pngtousplash usplash_800_600.png > usplash_800_600.png.c
gcc -g -Wall -fPIC -o usplash_800_600.png.c.o -c usplash_800_600.png.c
make: Dépendance circulaire usplash_640_400.png <- usplash_640_400.png.c abandonnée.
pngtousplash usplash_640_400.png > usplash_640_400.png.c
gcc -g -Wall -fPIC -o usplash_640_400.png.c.o -c usplash_640_400.png.c
make: Dépendance circulaire usplash_640_480.png <- usplash_640_480.png.c abandonnée.
pngtousplash usplash_640_480.png > usplash_640_480.png.c
gcc -g -Wall -fPIC -o usplash_640_480.png.c.o -c usplash_640_480.png.c
gcc -g -Wall -fPIC -o usplash-theme-modifie.c.o -c usplash-theme-modifie.c
gcc -g -Wall -fPIC -shared -o usplash-theme-modifie.so throbber_back.png.c.o throbber_back_16.png.c.o throbber_fore.png.c.o throbber_fore_16.png.c.o usplash_1024_768.png.c.o usplash_1365_768_scaled.png.c.o usplash_800_600.png.c.o usplash_640_400.png.c.o usplash_640_480.png.c.o usplash-theme-modifie.c.o
rm usplash_1024_768.png.c usplash_1365_768_scaled.png.c throbber_fore_16.png.c throbber_back.png.c usplash_640_480.png.c usplash_640_400.png.c throbber_back_16.png.c throbber_fore.png.c usplash_800_600.png.c
blacko@BLACKO-1:~/Bureau/usplash-theme-modifie$ sudo make
make: Dépendance circulaire throbber_back.png <- throbber_back.png.c abandonnée.
make: Dépendance circulaire throbber_back_16.png <- throbber_back_16.png.c abandonnée.
make: Dépendance circulaire throbber_fore.png <- throbber_fore.png.c abandonnée.
make: Dépendance circulaire throbber_fore_16.png <- throbber_fore_16.png.c abandonnée.
make: Dépendance circulaire usplash_1024_768.png <- usplash_1024_768.png.c abandonnée.
make: Dépendance circulaire usplash_1365_768_scaled.png <- usplash_1365_768_scaled.png.c abandonnée.
make: Dépendance circulaire usplash_800_600.png <- usplash_800_600.png.c abandonnée.
make: Dépendance circulaire usplash_640_400.png <- usplash_640_400.png.c abandonnée.
make: Dépendance circulaire usplash_640_480.png <- usplash_640_480.png.c abandonnée.
make: « usplash-theme-modifie.so » est à jour.
blacko@BLACKO-1:~/Bureau/usplash-theme-modifie$ sudo checkinstall
checkinstall 1.6.1, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran
This software is released under the GNU GPL.
The package documentation directory ./doc-pak does not exist.
Should I create a default set of package docs? [y]: n
Please write a description for the package.
End your description with an empty line or EOF.
>> usplash-theme-modifie
>>
*****************************************
**** Debian package creation selected ***
*****************************************
This package will be built according to these values:
0 - Maintainer: [ root@BLACKO-1 ]
1 - Summary: [ usplash-theme-modifie ]
2 - Name: [ usplash-theme ]
3 - Version: [ modifie ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ i386 ]
8 - Source location: [ usplash-theme-modifie ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
Enter a number to change any of them or press ENTER to continue: 2
Enter new name:
>> usplash-theme-modifie
This package will be built according to these values:
0 - Maintainer: [ root@BLACKO-1 ]
1 - Summary: [ usplash-theme-modifie ]
2 - Name: [ usplash-theme-modifie ]
3 - Version: [ modifie ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ i386 ]
8 - Source location: [ usplash-theme-modifie ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
Enter a number to change any of them or press ENTER to continue: 3
Enter new version:
>> 1.1
This package will be built according to these values:
0 - Maintainer: [ root@BLACKO-1 ]
1 - Summary: [ usplash-theme-modifie ]
2 - Name: [ usplash-theme-modifie ]
3 - Version: [ 1.1 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ i386 ]
8 - Source location: [ usplash-theme-modifie ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
Enter a number to change any of them or press ENTER to continue:
Installing with make install...
========================= Installation results ===========================
/usr/bin/install -c -d /usr/lib/usplash
/usr/bin/install -c -m 755 usplash-theme-modifie.so /usr/lib/usplash/usplash-theme-ubuntu.so
======================== Installation successful ==========================
grep: /var/tmp/pXHGhUYnQUgHJiUaXXKPh/newfile: Aucun fichier ou répertoire de ce type
Copying files to the temporary directory...OK
Striping ELF binaries and libraries...OK
Compressing man pages...OK
Building file list...OK
Building Debian package...OK
Installing Debian package... FAILED!
*** Failed to install the package
Do you want to see the log file? [y]: n
Erasing temporary files...OK
Writing backup package...OK
Deleting temp dir...OK
J'ai quand même essayé le "checkinstall", mais, malgré que la création du paquet a réussi, l'installation n'a pas foncitonnée (à cause des erreurs lors du "make" je crois).
Bref, je me suis presque rendu au bout du tutoriel, mais je n'ai pas réussi. Est-ce que quelqu'un sait comment éviter les erreurs que j'ai commises et réussir à faire fonctionner correctement mon "splash screen"?
Merci beaucoup de votre aide,
Bonne journée,
Blacko!
Éternel indécis
Hors ligne
#2 Le 17/11/2008, à 19:19
- compte abandonné
Re : Erreur de compilation d'un Splash screen
Apparemment une solution a été trouvée ici...
http://forum.ubuntu-fr.org/viewtopic.php?pid=1516516
Je n'ai pas encore pu tester l'Usplash que j'ai créé mais j'ai les même erreurs que toi.
Dernière modification par jamais content (Le 17/11/2008, à 19:22)
#3 Le 17/11/2008, à 19:24
- Krouteux
Re : Erreur de compilation d'un Splash screen
il faut installer ça libusplash-dev
Hors ligne
#4 Le 17/11/2008, à 20:13
- compte abandonné
Re : Erreur de compilation d'un Splash screen
Déjà fait... Toujours les mêmes erreurs.
J'ai Jaunty qui se met à jour sur machine virtuelle... Je n'ai donc pas pu encore redémarrer pour voir si ça marchait ce coup ci.
Mais la dernière fois, cela ne marchait pas... J'avais l'Usplash standard... avec une définition plus faible que d'habitude.
Dernière modification par jamais content (Le 17/11/2008, à 20:14)
#5 Le 18/11/2008, à 14:04
- compte abandonné
Re : Erreur de compilation d'un Splash screen
Pour moi, l'usplash fonctionne malgré les problèmes de dépendances.
Je me suis servi comme dans le tuto du répertoire de source de l'Usplash Ubuntu, que j'ai intégralement copié.
J'ai ensuite modifié les images, fichiers indiqués, et j'ai retiré le dossier Debian du dossier de mon Usplash - en ayant mis les deux fichiers postinstall-pak et postremove-pak dans le dossier usplash-theme-montheme.