Raydium 3D Game Engine

Official forum for everything about Raydium, ManiaDrive, MeMak, ...
It is currently Fri Mar 29, 2024 9:39 am

All times are UTC




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: OpenAL
PostPosted: Sat Oct 07, 2006 9:05 pm 
Offline

Joined: Sat Oct 29, 2005 12:43 pm
Posts: 65
Bonsoir,

Je viens de passer la soirée à essayer de compiler OpenAL 1.1 sous Ubuntu.. On ne peut pas dire que ça soit vraiment User friendly ^^
Par défaut sous Ubuntu, il n'y a que OpenAL 0.8 ...
J'ai donc récupéré la version svn.. et là c'est pas top non plus... il faut savoir que la version linux se trouve dans OpenAL-Samples...
Ensuite sous Ubuntu, il manque les outils suivant : autoconf, automake...
Je lance donc le ./autogen.sh
et j'obtiens :
Code:
/usr/share/aclocal/smpeg.m4:13: warning: underquoted definition of AM_PATH_SMPEG
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of AM_PATH_LIBMCRYPT
configure.ac:118: warning: The macro `AC_LANG_SAVE' is obsolete.
configure.ac:118: You should run autoupdate.
autoconf/lang.m4:166: AC_LANG_SAVE is expanded from...
admin/autotools/m4/acx_pthread.m4:246: ACX_PTHREAD is expanded from...
configure.ac:118: the top level
configure.ac:118: warning: instead of using `AC_LANG', `AC_LANG_SAVE',
configure.ac:118: and `AC_LANG_RESTORE', you should use `AC_LANG_PUSH' and `AC_LANG_POP'.
configure.ac:118: warning: The macro `AC_LANG_C' is obsolete.
configure.ac:118: You should run autoupdate.
autoconf/c.m4:71: AC_LANG_C is expanded from...
configure.ac:118: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:118: You should run autoupdate.
autoconf/general.m4:2223: AC_TRY_LINK is expanded from...
configure.ac:118: warning: The macro `AC_LANG_RESTORE' is obsolete.
configure.ac:118: You should run autoupdate.
autoconf/lang.m4:172: AC_LANG_RESTORE is expanded from...
configure.ac:471: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:471: You should run autoupdate.
autoconf/general.m4:2180: AC_TRY_COMPILE is expanded from...
configure.ac:471: the top level
configure.ac:479: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:479: You should run autoupdate.
configure.ac:479: the top level
configure.ac:118: warning: The macro `AC_LANG_SAVE' is obsolete.
configure.ac:118: You should run autoupdate.
autoconf/lang.m4:166: AC_LANG_SAVE is expanded from...
admin/autotools/m4/acx_pthread.m4:246: ACX_PTHREAD is expanded from...
configure.ac:118: the top level
configure.ac:118: warning: instead of using `AC_LANG', `AC_LANG_SAVE',
configure.ac:118: and `AC_LANG_RESTORE', you should use `AC_LANG_PUSH' and `AC_LANG_POP'.
configure.ac:118: warning: The macro `AC_LANG_C' is obsolete.
configure.ac:118: You should run autoupdate.
autoconf/c.m4:71: AC_LANG_C is expanded from...
configure.ac:118: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:118: You should run autoupdate.
autoconf/general.m4:2223: AC_TRY_LINK is expanded from...
configure.ac:118: warning: The macro `AC_LANG_RESTORE' is obsolete.
configure.ac:118: You should run autoupdate.
autoconf/lang.m4:172: AC_LANG_RESTORE is expanded from...
configure.ac:471: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:471: You should run autoupdate.
autoconf/general.m4:2180: AC_TRY_COMPILE is expanded from...
configure.ac:471: the top level
configure.ac:479: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:479: You should run autoupdate.
configure.ac:479: the top level
configure.ac:76: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:77: error: possibly undefined macro: AC_PROG_LIBTOOL
configure.ac:107: error: possibly undefined macro: AC_CHECK_LIBM
autoreconf: /usr/bin/autoconf failed with exit status: 1

Et là, j'avoue que je ne sais plus trop quoi faire ^^


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 08, 2006 7:46 am 
Offline

Joined: Sun Mar 16, 2003 10:27 am
Posts: 404
As-tu essayé de voir si il n'existait pas des paquets pour debian ?? Car ceux ci tu dois pouvoir les installer sans trop de problèmes.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 08, 2006 8:42 am 
Offline

Joined: Sat Oct 29, 2005 12:43 pm
Posts: 65
Les seuls paquets debian 1.1 que j'ai trouvé datent de 2004, je trouve ça louche ^^
Et j'aimerai quand même mieux pourvoir les compiler.. :)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 08, 2006 10:31 am 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
Plusieurs choses : version d'OpenAL != version de l'implémentation. Cela signifie que la version 0.8 d'Ubuntu implémente peut-être la version 1.1 de la spécification. Il faut chercher la présence de AL_VERSION_1_1 dans le fichier al.h pour le confirmer.

Ensuite, le site d'OpenAL propose maintenant des archives pour linux (openal et alut) qui sont peut être plus "stable" que le SVN.

Enfin, l'erreur que tu montres ressemble beaucoup à un problème de version des autotools. Là encore, le plus simple est d'utiliser les sources tar.gz du site web d'OpenAL, puisque que le script "configure" est déjà généré.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 08, 2006 1:08 pm 
Offline

Joined: Sat Oct 29, 2005 12:43 pm
Posts: 65
En installant les .deb officiels d'Ubuntu, et en ouvrant le al.h, je vois :
Code:
#define OPENAL
#define ALAPI AL_API
#define ALAPIENTRY AL_APIENTRY
#define AL_INVALID                                (-1)
#define AL_ILLEGAL_ENUM                           AL_INVALID_ENUM
#define AL_ILLEGAL_COMMAND                        AL_INVALID_OPERATION

#define AL_VERSION_1_0
#define AL_VERSION_1_1

Donc, il a bien la spec 1.1, non ?

mais quand j'essai d'installer Raydium, j'obtiens :
Code:
* Testing OpenAL... build: failed
   openal-devel is required. Official CVS may be a good idea

(j'ai bien installé le -dev)
Je vais essayé les tar.gz d'openal.org :)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 08, 2006 1:12 pm 
Offline

Joined: Sat Oct 29, 2005 12:43 pm
Posts: 65
Snif, exactement le même message avec les sources en tar.gz d'openal.org :/

edit : j'ai trouvé :)
il faut aussi freealut !!
qui sous Ubuntu s'appel alut (sans free devant), et qui ne s'installe pas automatiquement lorsqu'on installe OpenAL.

(il faudrait peut-être le préciser sur le wiki :) )
pour résumer sous Ubuntu, il faut installer :
libalut0
libalut-dev
libopenal0a
libopenal-dev

Voilà :)


Last edited by Totoro on Sun Oct 08, 2006 1:18 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 08, 2006 1:13 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
Pour l'erreur du configure de Raydium, regarde le configure.log, tu devrais y trouver une explication précise à la fin.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 08, 2006 1:21 pm 
Offline

Joined: Sat Oct 29, 2005 12:43 pm
Posts: 65
Tu as répondu en même temps que moi ^^
voir mon edit plus haut :)

(j'ai vu un xfennec sur un forum de modelisme (helico), c'est toi? ^^
(un simu d'helico RC fait avec raydium, ça serait cool ^^)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 08, 2006 1:26 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
N'hésite pas à modifier le wiki si tu penses que ça peut aider.
Je traîne effectivement un peu du coté du modélisme, mais dans les sections dédiées aux avions :)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 08, 2006 1:34 pm 
Offline

Joined: Sat Oct 29, 2005 12:43 pm
Posts: 65
Je vais voir comment ça fonctionne pour le wiki... :)

j'ai un autre problème :roll:
Code:
totoro@d8600:~/code/raydium$ make
Creating: raydium/compile/myglut.o
Dans le fichier inclus à partir de raydium/myglut.c:26:
raydium/myglut-x11.c:20:37: erreur: X11/extensions/Xinerama.h : Aucun fichier ou répertoire de ce type
In file included from raydium/myglut.c:26:
raydium/myglut-x11.c: Dans la fonction «pwInit» :
raydium/myglut-x11.c:294: attention : implicit declaration of function «XineramaQueryExtension»
raydium/myglut-x11.c:295: attention : implicit declaration of function «XineramaIsActive»
raydium/myglut-x11.c:297: erreur: «XineramaScreenInfo» undeclared (first use in this function)
raydium/myglut-x11.c:297: erreur: (Chaque identificateur non déclaré est rapporté une seule fois
raydium/myglut-x11.c:297: erreur: pour chaque fonction dans laquelle il apparaît.)
raydium/myglut-x11.c:297: erreur: «screens» undeclared (first use in this function)
raydium/myglut-x11.c:303: attention : implicit declaration of function «XineramaQueryScreens»
make: *** [raydium/compile/myglut.o] Erreur 1

(je suis sur un portable Dell Inspiron 8600 avec une ATI 9600 mobility, et je n'utilise que l'écran du portable)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 08, 2006 2:05 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
Il semble qu'il te manque les paquets de développement de X pour Xinerama. Le site de packages de la Ubuntu semble parler d'un paquet "x11/x11proto-xinerama-dev". Peut être que le script configure devrais être plus explicite sur ce point.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 08, 2006 2:32 pm 
Offline

Joined: Sat Oct 29, 2005 12:43 pm
Posts: 65
Exacte, il faut les paquets "libxinerama-dev" et "x11proto-xinerama-dev". Je pensais que Xinerama etait inclus dans les drivers d'ATI... :)

Tout fonctionne maintenant, j'ai pu lancer test6 :D

Merci.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 08, 2006 3:42 pm 
Offline

Joined: Sun Mar 16, 2003 10:27 am
Posts: 404
c cool 8) amuses toi bien


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 34 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group