[Ubuntu] compilation ? help
Résolu
Utilisateur anonyme
-
Utilisateur anonyme -
Utilisateur anonyme -
Bonjour à tous ,
Voulant installer usplash-switcher,j'ai suivi un tuto sur le forum ubuntu,je vous copie/colle mes problémes (j'y suis presque...... argh!!)
Pour usplash-switcher, il faut télécharger le fichier source à cette adresse :
http://www.kaarsemaker.net/files/Softwa … switcher.c
Voulant installer usplash-switcher,j'ai suivi un tuto sur le forum ubuntu,je vous copie/colle mes problémes (j'y suis presque...... argh!!)
Pour usplash-switcher, il faut télécharger le fichier source à cette adresse :
http://www.kaarsemaker.net/files/Softwa … switcher.c
wget http://www.kaarsemaker.net/files/Software/usplash-switcher.c</code>touch Makefile
Copie ce code et mets-le dans le fichier Makefile avec ton éditeur préféré.
CC=gcc
CFLAGS=$(shell pkg-config --cflags gtk+-2.0) -rdynamic -g
LIBS=$(shell pkg-config --libs gtk+-2.0) -ldl
usplash-switcher: usplash-switcher.c
$(CC) -o $@ $< $(CFLAGS) $(LIBS)
Une fois cela fait, il faut installer si cela n'est déjà fait ces paquets : build-essential et libgtk2.0-dev.
Code:
sudo apt-get install build-essential libgtk2.0-dev
Pour finir,
Code:
make
Mets ton fichier usplash-switcher là où tu veux et exécute-le en mode root.
Code:
sudo ./usplash-switcher
Voilà,
>>>Là j'ai un problème avec la syntaxe du makefile
axl@axl-laptop:~$ make
Makefile:6: *** séparateur manquant . Arrêt.
axl@axl-laptop:~$
>>> je cherche sur google et:
j'ai trouvé une piste ,mais je ne sais pas ce que tab veut dire ,quelqu'un peut m'aider??
So let's begin : install usplash-dev and libgtk2.0-dev :
sudo apt-get install libgtk2.0-dev usplash-dev
then in the same directory where you have downloaded "usplash-switcher.c"
create a file named "Makefile"
and fill it with :
CC=gcc
CFLAGS=$(shell pkg-config --cflags gtk+-2.0) -rdynamic -g
LIBS=$(shell pkg-config --libs gtk+-2.0) -ldl
usplash-switcher: usplash-switcher.c
$(CC) -o $@ $< $(CFLAGS) $(LIBS)
(you can see these lines after the licence in "usplash-switcher.c" file)
!! WARNING !! : before $(CC) -o $@ $< $(CFLAGS) $(LIBS) it must be a TAB not 8 spaces.
then just compile it :
make
quelqu'un peut m'aider please!!
A voir également:
- [Ubuntu] compilation ? help
- Ubuntu 32 bits - Télécharger - Systèmes d'exploitation
- Ubuntu portable - Télécharger - Systèmes d'exploitation
- Linux mint ou ubuntu - Guide
- Ubuntu 24.04 - Accueil - Ubuntu
- Breach compilation c'est quoi - Guide
1 réponse
ça yest j'ai trouvé:
sur ce paragraphe à éditer avec gedit:
CC=gcc
CFLAGS=$(shell pkg-config --cflags gtk+-2.0) -rdynamic -g
LIBS=$(shell pkg-config --libs gtk+-2.0) -ldl
usplash-switcher: usplash-switcher.c
$(CC) -o $@ $< $(CFLAGS) $(LIBS)
l'espace qui est avant la dernière ligne n'est pas un espace!!
Il faut revenir à la ligne (del) et appuyer sur ce qui doit s'appeler tab et qui est sur mon laptop une flèche avec une barre (ça ressemble au symbole d'une diode...)
Voila ça marche, TCHAooo
sur ce paragraphe à éditer avec gedit:
CC=gcc
CFLAGS=$(shell pkg-config --cflags gtk+-2.0) -rdynamic -g
LIBS=$(shell pkg-config --libs gtk+-2.0) -ldl
usplash-switcher: usplash-switcher.c
$(CC) -o $@ $< $(CFLAGS) $(LIBS)
l'espace qui est avant la dernière ligne n'est pas un espace!!
Il faut revenir à la ligne (del) et appuyer sur ce qui doit s'appeler tab et qui est sur mon laptop une flèche avec une barre (ça ressemble au symbole d'une diode...)
Voila ça marche, TCHAooo