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 07/12/2006, à 20:02

quick

[RESOLU]probleme usplash[RESOLU]

bonsoir,

en suivant ce tuto http://doc.ubuntu-fr.org/applications/usplash

j'ai ce message d'erreur :

fred@ubuntu:~$ gcc -Os -g -I/usr/include/bogl -fPIC -c usplash-artwork.c -o usplash-artwork.o
usplash-artwork.c:1: erreur: syntax error before «opening»
fred@ubuntu:~$

donc pas moyen de continuer roll

merci d'avance

Dernière modification par quick (Le 08/12/2006, à 14:03)

Hors ligne

#2 Le 07/12/2006, à 20:07

Link31

Re : [RESOLU]probleme usplash[RESOLU]

À mon avis tu as fait une faute de frappe dans le nom du fichier image à passer à pngtobogl et le fichier usplash-artwork.c contient en fait les messages d'erreur de pngtobogl.

Essaie de faire un pngtobogl image.png pour voir si c'est du code C qui sort et pas des messages d'erreur, et quand tout est bon lance pngtobogl image.png > usplash-artwork.c

Si tu as des doutes, poste le résultat de pngtobogl image.png et de cat usplash-artwork.c.

Hors ligne

#3 Le 07/12/2006, à 20:20

quick

Re : [RESOLU]probleme usplash[RESOLU]

merci Link

je te met tout ce que j'ai fait depuis de debut :

fred@ubuntu:~$ cp blueeyes-usplash-artwork.png usplash-artwork.pgn
fred@ubuntu:~$ pngtobogl usplash-artwork.png > usplash-artwork.c
fred@ubuntu:~$ gcc -Os -g -I/usr/include/bogl -fPIC -c usplash-artwork.c -o usplash-artwork.o
usplash-artwork.c:1: erreur: syntax error before «opening»
fred@ubuntu:~$

et la ce que tu ma demandé :

pngtobogl usplash-artwork.pgn

/* Row 468. */
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xa100,

/* Row 469. */
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xa100,

/* Row 470. */
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xa100,

/* Row 471. */
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xa100,

/* Row 472. */
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xa100,

/* Row 473. */
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xa100,

/* Row 474. */
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xa100,

/* Row 475. */
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xa100,

/* Row 476. */
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xa100,

/* Row 477. */
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xa100,

/* Row 478. */
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xa100,

/* Row 479. */
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100,
0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xf100, 0xa100,

};

/* Palette data. */
static unsigned char usplash_artwork_pgn_palette[0][3] = {
};

/* Pixmap structure. */
struct bogl_pixmap pixmap_usplash_artwork_pgn = {
  640,          /* Width. */
  480,          /* Height. */
  0,            /* Number of colors. */
  -1,           /* Transparent color. */
  usplash_artwork_pgn_palette,  /* Palette. */
  usplash_artwork_pgn_data,     /* Data. */
};
fred@ubuntu:~$

et le cat usplash-artwork.c :

fred@ubuntu:~$ cat usplash-artwork.c
error opening usplash-artwork.png: No such file or directory
fred@ubuntu:~$

voila

Dernière modification par quick (Le 07/12/2006, à 20:28)

Hors ligne

#4 Le 07/12/2006, à 20:40

quick

Re : [RESOLU]probleme usplash[RESOLU]

parti Link ? roll

Hors ligne

#5 Le 07/12/2006, à 21:32

Link31

Re : [RESOLU]probleme usplash[RESOLU]

quick a écrit :

fred@ubuntu:~$ cp blueeyes-usplash-artwork.png usplash-artwork.pgn
fred@ubuntu:~$ pngtobogl usplash-artwork.png > usplash-artwork.c

Heu... le pgn c'est bien une faute de frappe, n'est-ce pas ?

Si tu dupliques le fichier blueeyes-usplash-artwork.png en usplash-artwork.pgn puis que tu tentes de transformer le fichier usplash-artwork.png en code source C, ça ne peut pas fonctionner roll wink

Apparemment la commande pngtobogl usplash-artwork.pgn fonctionne bien.

Donc voici ce qu'il faut que tu fasses :

mv usplash-artwork.pgn usplash-artwork.png

ou alors

cp blueeyes-usplash-artwork.png usplash-artwork.png

puis dans les deux cas :

pngtobogl usplash-artwork.png > usplash-artwork.c

Et continue en suivant le wiki.

Hors ligne

#6 Le 08/12/2006, à 14:03

quick

Re : [RESOLU]probleme usplash[RESOLU]

ok merci Link31 c'est bon big_smile

Hors ligne