| Qui est en ligne ? |
| Il y a : 13 utilisateurs en ligne, consultez le détail |
Forum » Multimédia, jeux et 3D » besoin d'aide pour installer un jeu... |
Forum modéré par : Morgoth |
| Même auteur |
|
Score ( voter ) : |
|
| Page : [1] |
| Auteur | Message |
|---|---|
|
|
#0 Message posté le : 25-09-2005 à 16:13:17 |
Scarabée Forum : Inscrit Association : Arrivé(e) le : 17-04-2005 Nombre de messages : 401 |
bonjour, voilà j'ai retrouvé un jeu très apprécié dans ma jeunesse http://www.ibiblio.org/pub/Linux/games/arcade/invaders/!INDEX.html c'est xgalaga mais le pb c'est que je comprend pas comment l'installer car je suis pas encore au top dans ce domaine. j'ai décompressé le fichier xgalaga-1.6c.tgz dans /urs/games/ mais ensuite, mistère... si une âme charitable voudrait bien me donner un coup de main, ça me rendrait bien service. voici le détail de l'install du fichier du même nom. 1. Edit the Imakefile to tell XGalaga where to find/install its files 2. do "xmkmf -a" then "make" 3. Optionally do "make install" to install the binary in the X11 bin dir, and support files in another directory. If you do not do "make install" you should just change XGALAGADIR in the Imakefile to this directory. ------------------------------------- on enferme les fous dans des maisons pour persuader ceux au dehors, qu'ils ne le sont pas. |
|
|
#1 Message posté le : 25-09-2005 à 17:56:02 |
Maître Jedi Forum : Modérateur Association : Arrivé(e) le : 26-11-2003 Nombre de messages : 6228 |
pour ceux qui veulent aider, voici le contenu du Makefile à editer, du moins uniquement la partie à modifier !
--Message édité par trucker38 le 25-09-2005 à 18:00:17-- ------------------------------------- "[ ] Quand il pleut des roubles, le malchanceux n'a pas de sac.[ ] _Coluche_ |
|
|
#2 Message posté le : 25-09-2005 à 19:59:34 |
Scarabée Forum : Inscrit Association : Arrivé(e) le : 17-04-2005 Nombre de messages : 401 |
merci trucker38 ------------------------------------- on enferme les fous dans des maisons pour persuader ceux au dehors, qu'ils ne le sont pas. |
|
|
#3 Message posté le : 25-09-2005 à 20:26:23 |
Hobbit Forum : Modérateur Association : Arrivé(e) le : 20-11-2003 Nombre de messages : 1576 |
Tu n'a rien a changer, ou presque. Tout dépend de ta distribution. Essaye de lancer xmkmf -a puis make, et poste ici les erreurs qui en sorte. Pour info, j'obtiens des erreurs de compilations qui ne sont pas très encourageante. Après un petit tour dans le code source, j'ai l'impression que la syntaxe du C utilisée date un peu. Je pense que ça peut venir de gcc 4. C'est à adapter à ta machine de toute façon. ------------------------------------- Morgoth |
|
|
#4 Message posté le : 25-09-2005 à 20:59:11 |
Hobbit Forum : Modérateur Association : Arrivé(e) le : 20-11-2003 Nombre de messages : 1576 |
Apparemment, il y a un projet qui a remis un peu à jour le jeu : http://sourceforge.net/projects/xgalaga/ Mais ça ne compile quand même pas chez moi. Après correction (?) des erreurs de compilation, je lance le jeu et... erreur de segmentation. Bref, j'ai pas envie de le reprogrammer ce soir. ------------------------------------- Morgoth |
|
|
#5 Message posté le : 26-09-2005 à 18:08:11 |
Scarabée Forum : Inscrit Association : Arrivé(e) le : 17-04-2005 Nombre de messages : 401 |
hello, je sais pas si j'ai fait juste pour faire le xmkmf -a, je me suis mis dans le répertoire du jeu pour le faire [root@localhost xgalaga-1.6c]# xmkmf -a bash: xmkmf: command not found et un make me donne aussi des erreurs [root@localhost xgalaga-1.6c]# make
making all in ./libsprite...
make[1]: Entering directory `/usr/games/xgalaga/xgalaga-1.6c/libsprite'
rm -f border.o
gcc -c -O2 -m486 -ansi -I/usr/include/X11 -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DX_LOCALE -DFUNCPROTO=15 -DNARROWPROTO -I/usr/include/X11 border.c
In file included from allincludes.h:4,
from border.c:1:
defs.h:30:22: X11/Xlib.h: No such file or directory
defs.h:31:23: X11/Xutil.h: No such file or directory
defs.h:32:29: X11/Xmu/CurUtil.h: No such file or directory
defs.h:33:28: X11/cursorfont.h: No such file or directory
defs.h:34:24: X11/keysym.h: No such file or directory
defs.h:43:17: xpm.h: No such file or directory
In file included from allincludes.h:5,
from border.c:1:
Wlib.h:48: error: syntax error before "Pixmap"
Wlib.h:48: warning: no semicolon at end of struct or union
Wlib.h:49: warning: data definition has no type or storage class
In file included from Wlib.h:175,
from allincludes.h:5,
from border.c:1:
Wproto.h:5: error: syntax error before "make_cursor"
Wproto.h:5: warning: data definition has no type or storage class
Wproto.h:32: error: syntax error before "win"
Wproto.h:59: error: syntax error before "window"
Wproto.h:68: error: syntax error before "win"
Wproto.h:72: error: syntax error before "W_Image"
Wproto.h:98: error: syntax error before '*' token
Wproto.h:99: error: syntax error before '*' token
Wproto.h:99: warning: data definition has no type or storage class
Wproto.h:100: error: syntax error before '*' token
Wproto.h:101: error: syntax error before '*' token
Wproto.h:101: error: syntax error before '*' token
Wproto.h:101: warning: data definition has no type or storage class
Wproto.h:102: error: syntax error before '*' token
Wproto.h:103: error: syntax error before "W_Image"
Wproto.h:104: error: syntax error before "W_Image"
Wproto.h:105: error: syntax error before "W_Image"
Wproto.h:106: error: syntax error before "W_Image"
Wproto.h:107: error: syntax error before "W_Image"
In file included from allincludes.h:6,
from border.c:1:
struct.h:24: error: syntax error before "XFontStruct"
struct.h:24: warning: no semicolon at end of struct or union
struct.h:26: error: syntax error before '}' token
struct.h:30: error: syntax error before "GC"
struct.h:30: warning: no semicolon at end of struct or union
struct.h:31: warning: data definition has no type or storage class
struct.h:33: error: syntax error before '}' token
struct.h:36: error: syntax error before "Window"
struct.h:36: warning: no semicolon at end of struct or union
struct.h:41: error: syntax error before "drawable"
struct.h:41: warning: data definition has no type or storage class
struct.h:42: error: syntax error before "buffer"
struct.h:42: warning: data definition has no type or storage class
struct.h:50: error: syntax error before "cursor"
struct.h:50: warning: data definition has no type or storage class
struct.h:58: error: syntax error before '}' token
In file included from Wlib.h:175,
from data.h:21,
from allincludes.h:7,
from border.c:1:
Wproto.h:5: error: syntax error before "make_cursor"
Wproto.h:5: warning: data definition has no type or storage class
Wproto.h:32: error: syntax error before "win"
Wproto.h:59: error: syntax error before "window"
Wproto.h:68: error: syntax error before "win"
Wproto.h:72: error: syntax error before "W_Image"
Wproto.h:98: error: syntax error before '*' token
Wproto.h:99: error: syntax error before '*' token
Wproto.h:99: warning: data definition has no type or storage class
Wproto.h:100: error: syntax error before '*' token
Wproto.h:101: error: syntax error before '*' token
Wproto.h:101: error: syntax error before '*' token
Wproto.h:101: warning: data definition has no type or storage class
Wproto.h:102: error: syntax error before '*' token
Wproto.h:103: error: syntax error before "W_Image"
Wproto.h:104: error: syntax error before "W_Image"
Wproto.h:105: error: syntax error before "W_Image"
Wproto.h:106: error: syntax error before "W_Image"
Wproto.h:107: error: syntax error before "W_Image"
In file included from allincludes.h:7,
from border.c:1:
data.h:28: error: syntax error before "allocated_colors"
data.h:28: warning: data definition has no type or storage class
data.h:41: error: syntax error before "maskGC"
data.h:41: warning: data definition has no type or storage class
data.h:44: error: syntax error before "borderGC"
data.h:44: warning: data definition has no type or storage class
data.h:49: error: syntax error before '*' token
data.h:49: warning: data definition has no type or storage class
data.h:50: error: syntax error before "W_Root"
data.h:50: warning: data definition has no type or storage class
data.h:51: error: syntax error before "W_Colormap"
data.h:51: warning: data definition has no type or storage class
data.h:53: error: syntax error before '*' token
data.h:53: warning: data definition has no type or storage class
data.h:59: error: syntax error before "class_hint"
data.h:59: warning: data definition has no type or storage class
data.h:61: error: syntax error before "wm_hint"
data.h:61: warning: data definition has no type or storage class
data.h:63: error: syntax error before "wm_size_hint"
data.h:63: warning: data definition has no type or storage class
border.c: In function `W_ChangeBorder':
border.c:22: error: dereferencing pointer to incomplete type
border.c:22: error: dereferencing pointer to incomplete type
border.c:24: error: dereferencing pointer to incomplete type
border.c: In function `redrawBorder':
border.c:33: error: `XPoint' undeclared (first use in this function)
border.c:33: error: (Each undeclared identifier is reported only once
border.c:33: error: for each function it appears in.)
border.c:33: error: syntax error before "points"
border.c:34: error: `XGCValues' undeclared (first use in this function)
border.c:36: error: dereferencing pointer to incomplete type
border.c:37: error: `val' undeclared (first use in this function)
border.c:37: error: dereferencing pointer to incomplete type
border.c:38: error: dereferencing pointer to incomplete type
border.c:43: error: `GCLineWidth' undeclared (first use in this function)
border.c:44: error: `points' undeclared (first use in this function)
border.c:44: error: dereferencing pointer to incomplete type
border.c:45: error: dereferencing pointer to incomplete type
border.c:46: error: dereferencing pointer to incomplete type
border.c:47: error: dereferencing pointer to incomplete type
border.c:48: error: dereferencing pointer to incomplete type
border.c:49: error: dereferencing pointer to incomplete type
border.c:50: error: dereferencing pointer to incomplete type
border.c:51: error: `CoordModeOrigin' undeclared (first use in this function)
border.c:53: error: dereferencing pointer to incomplete type
border.c:54: error: `GCForeground' undeclared (first use in this function)
border.c:55: error: dereferencing pointer to incomplete type
border.c:55: error: dereferencing pointer to incomplete type
border.c:56: error: dereferencing pointer to incomplete type
border.c:57: error: dereferencing pointer to incomplete type
border.c:57: error: dereferencing pointer to incomplete type
border.c:58: error: dereferencing pointer to incomplete type
border.c:58: error: dereferencing pointer to incomplete type
border.c:59: error: invalid use of undefined type `struct colors'
make[1]: *** [border.o] Erreur 1
make[1]: Leaving directory `/usr/games/xgalaga/xgalaga-1.6c/libsprite'
make: *** [all] Erreur 2
je tourne sous mandriva LE2005 @+ ------------------------------------- on enferme les fous dans des maisons pour persuader ceux au dehors, qu'ils ne le sont pas. |
|
|
#6 Message posté le : 26-09-2005 à 18:28:43 |
Scarabée Forum : Inscrit Association : Arrivé(e) le : 17-04-2005 Nombre de messages : 401 |
je viens de tenter l'install de la nouvelle version mais j'ai aussi des pb apparement, il ne trouve pas X ??[root@localhost xgalaga-2.0.34]# ./configure
creating cache ./config.cache
checking host system type... i686-pc-linux
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets ${MAKE}... yes
checking for ranlib... ranlib
checking for X... no
configure: error: Can't find X, you need X!
ensuite le make [root@localhost xgalaga-2.0.34]# make make: *** Pas de cibles spécifiées et aucun makefile n'a été trouvé. Arrêt. je suis pas plus avancé, hummm... ------------------------------------- on enferme les fous dans des maisons pour persuader ceux au dehors, qu'ils ne le sont pas. |
|
|
#7 Message posté le : 27-09-2005 à 16:14:15 |
Hobbit Forum : Modérateur Association : Arrivé(e) le : 20-11-2003 Nombre de messages : 1576 |
Petite précision : quand tu compiles un logiciel, inutile de forcer. Si une étape ne marche pas, ne force pas la suivante. Par exemple, si le ./configure ne marche pas, le make ne peut pas fonctionner. Ensuite, ce n'est pas une bonne habitude de faire le ./configure ou le make en root. Surtout pour des softs un peu bizards que tu récupère sur le net. Que feras-tu si le script que tu lances contient une commande du style rm -rf /home ? Bon, ensuite, tu peux essayer de taper ./xmkmf -a. Pour la non reconnaissance de X, je pense que ça peut venir de X.org 6.7. Cette version batarde n'est pas bien détectée (cf les drivers ATI). Moi, j'ai xorg 6.8, et ça passe. Il faudrait regarder dans le ./configure pour voir comment il fait pour détecter X. ------------------------------------- Morgoth |
|
|
#8 Message posté le : 28-09-2005 à 18:27:02 |
Scarabée Forum : Inscrit Association : Arrivé(e) le : 17-04-2005 Nombre de messages : 401 |
en fait j'ai pas regardé ce qu'avait donné le ./config avec de faire le make, mais t'as raison, on dira que c'est une erreur de débutant. j'ai fais la commande en root car je pensais que tout ce qu'on install doit se faire en root, mais apparement ce n'est pas le cas, donc comment savoir quand il faut se logger en root ? [milo@localhost xgalaga-1.6c]$ ./xmkmf -a bash: ./xmkmf: No such file or directory ne passe pas non plus ma version d'X.org est la 6.8 pour info
voici une copie du log de ./config configure:561: checking host system type
configure:585: checking for gcc
configure:662: checking whether the C compiler (gcc ) works
configure:676: gcc -o conftest conftest.c 1>&5
configure:696: checking whether the C compiler (gcc ) is a cross-compiler
configure:701: checking whether we are using GNU C
configure:710: gcc -E conftest.c
configure:725: checking whether gcc accepts -g
configure:753: checking how to run the C preprocessor
configure:774: gcc -E conftest.c >/dev/null 2>conftest.out
configure:824: checking for a BSD compatible install
configure:874: checking whether ln -s works
configure:895: checking whether make sets ${MAKE}
configure:924: checking for ranlib
configure:969: checking for X
configure:1036: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1032:27: X11/Intrinsic.h: No such file or directory
configure: failed program was:
#line 1031 "configure"
#include "confdefs.h"
#include <X11/Intrinsic.h>
configure:1112: gcc -o conftest -g -O2 conftest.c -lXt 1>&5
/usr/bin/ld: cannot find -lXt
collect2: ld returned 1 exit status
configure: failed program was:
#line 1105 "configure"
#include "confdefs.h"
int main() {
XtMalloc()
; return 0; }
--Message édité par rob2005 le 28-09-2005 à 18:28:30-- ------------------------------------- on enferme les fous dans des maisons pour persuader ceux au dehors, qu'ils ne le sont pas. |
|
|
#9 Message posté le : 28-09-2005 à 20:21:49 |
Maître Jedi Forum : Inscrit Association : Arrivé(e) le : 16-01-2003 Nombre de messages : 8931 |
Il est inutile (voir dangereux) de faire le ./configure et le make en tant que root. Cela est juste nécessaire pour le make install pour une question de droit (copie de fichiers dans l'arborescence système). Cela dit, pour améliorer le path de root : http://trustonme.net/didactels/132.html |
| Page : [1] |
Forum » Multimédia, jeux et 3D » besoin d'aide pour installer un jeu... |
Forum modéré par : Morgoth |
| Même auteur |
|
Score ( voter ) : |
|
- Petit scarabée : 0 pastille, moins de 100 messages
- Scarabée : 0 pastille, plus de 100 messages
- Hobbit : 1 pastille, plus de 1000 messages
- Naboo : 2 pastilles, plus de 2000 messages
- Elfe : 3 pastilles, plus de 3000 messages
- Jedi : 4 pastilles, plus de 4000 messages
- Maître Jedi : 5 pastilles, plus de 5000 messages