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 17/04/2008, à 23:19

flarre

[RESOLU] module wiimote pour pure data

Salut,
J'essaie actuellement d'installer un module qui gère une Wiimote (manette wii) sous Pure Data, elle est reconnue par ma clé bluetooth (Trust BT 2400P), et le programme Wmgui fonctionne bien.
Par contre je n'arrive pas à compiler le module pure data :
http://mikewoz.com/index.php?page=pd-stuff
lorsque je décompresse et que je lance voila ce qui se passe :

fred@choupette:~/Bureau/Pd/wiimote_pd_external_0.4.01$ sudo make
[sudo] password for fred: 
cc -DPD -O2 -funroll-loops -fomit-frame-pointer -W -Wshadow -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -I/usr/local/include -o wiimote.o -c wiimote.c
wiimote.c:107: attention : «struct wiimote_btn_mesg» declared inside parameter list
wiimote.c:107: attention : visible uniquement depuis cette définition ou déclaration, ce qui n'est probablement pas ce que vous désirez
wiimote.c: Dans la fonction «wiimote_btn» :
wiimote.c:110: erreur: déréférencement d'un pointeur de type incomplet
wiimote.c:111: erreur: déréférencement d'un pointeur de type incomplet
wiimote.c: Hors de toute fonction :
wiimote.c:128: attention : «struct wiimote_acc_mesg» declared inside parameter list
wiimote.c: Dans la fonction «wiimote_acc» :
wiimote.c:134: erreur: déréférencement d'un pointeur de type incomplet
wiimote.c:135: erreur: déréférencement d'un pointeur de type incomplet
wiimote.c:136: erreur: déréférencement d'un pointeur de type incomplet
wiimote.c: Hors de toute fonction :
wiimote.c:155: attention : «struct wiimote_ir_mesg» declared inside parameter list
wiimote.c: Dans la fonction «wiimote_ir» :
wiimote.c:162: erreur: «WIIMOTE_IR_SRC_COUNT» undeclared (first use in this function)
wiimote.c:162: erreur: (Each undeclared identifier is reported only once
wiimote.c:162: erreur: for each function it appears in.)
wiimote.c:164: erreur: déréférencement d'un pointeur de type incomplet
wiimote.c:167: erreur: déréférencement d'un pointeur de type incomplet
wiimote.c:168: erreur: déréférencement d'un pointeur de type incomplet
wiimote.c:169: erreur: déréférencement d'un pointeur de type incomplet
wiimote.c: Hors de toute fonction :
wiimote.c:177: attention : «struct wiimote_nunchuk_mesg» declared inside parameter list
wiimote.c: Dans la fonction «wiimote_nunchuk» :
wiimote.c:181: erreur: déréférencement d'un pointeur de type incomplet
wiimote.c:182: erreur: déréférencement d'un pointeur de type incomplet
wiimote.c:183: erreur: déréférencement d'un pointeur de type incomplet
wiimote.c:194: erreur: déréférencement d'un pointeur de type incomplet
wiimote.c:194: erreur: «WIIMOTE_NUNCHUK_BTN_C» undeclared (first use in this function)
wiimote.c:195: erreur: déréférencement d'un pointeur de type incomplet
wiimote.c:195: erreur: «WIIMOTE_NUNCHUK_BTN_Z» undeclared (first use in this function)
wiimote.c:196: erreur: déréférencement d'un pointeur de type incomplet
wiimote.c:203: erreur: déréférencement d'un pointeur de type incomplet
wiimote.c:204: erreur: déréférencement d'un pointeur de type incomplet
wiimote.c: Hors de toute fonction :
wiimote.c:219: attention : «union wiimote_mesg» declared inside parameter list
wiimote.c: Dans la fonction «wiimote_callback» :
wiimote.c:223: erreur: déréférencement d'un pointeur de type incomplet
wiimote.c:224: erreur: «WIIMOTE_MESG_STATUS» undeclared (first use in this function)
wiimote.c:225: erreur: déréférencement d'un pointeur de type incomplet
wiimote.c:225: erreur: «WIIMOTE_BATTERY_MAX» undeclared (first use in this function)
wiimote.c:226: erreur: déréférencement d'un pointeur de type incomplet
wiimote.c:227: erreur: «WIIMOTE_EXT_NONE» undeclared (first use in this function)
wiimote.c:230: erreur: «WIIMOTE_EXT_NUNCHUK» undeclared (first use in this function)
wiimote.c:232: erreur: «WIIMOTE_RW_REG» undeclared (first use in this function)
wiimote.c:232: erreur: «WIIMOTE_RW_DECODE» undeclared (first use in this function)
wiimote.c:244: erreur: «WIIMOTE_EXT_CLASSIC» undeclared (first use in this function)
wiimote.c:247: erreur: «WIIMOTE_EXT_UNKNOWN» undeclared (first use in this function)
wiimote.c:252: erreur: «WIIMOTE_MESG_BTN» undeclared (first use in this function)
wiimote.c:253: erreur: déréférencement d'un pointeur de type incomplet
wiimote.c:255: erreur: «WIIMOTE_MESG_ACC» undeclared (first use in this function)
wiimote.c:256: erreur: déréférencement d'un pointeur de type incomplet
wiimote.c:258: erreur: «WIIMOTE_MESG_IR» undeclared (first use in this function)
wiimote.c:259: erreur: déréférencement d'un pointeur de type incomplet
wiimote.c:261: erreur: «WIIMOTE_MESG_NUNCHUK» undeclared (first use in this function)
wiimote.c:262: erreur: déréférencement d'un pointeur de type incomplet
wiimote.c:264: erreur: «WIIMOTE_MESG_CLASSIC» undeclared (first use in this function)
wiimote.c: Hors de toute fonction :
wiimote.c:272: attention : «union wiimote_mesg» declared inside parameter list
wiimote.c: Dans la fonction «wiimote_callback_0» :
wiimote.c:272: attention : passing argument 2 of «wiimote_callback» from incompatible pointer type
wiimote.c: Hors de toute fonction :
wiimote.c:273: attention : «union wiimote_mesg» declared inside parameter list
wiimote.c: Dans la fonction «wiimote_callback_1» :
wiimote.c:273: attention : passing argument 2 of «wiimote_callback» from incompatible pointer type
wiimote.c: Hors de toute fonction :
wiimote.c:274: attention : «union wiimote_mesg» declared inside parameter list
wiimote.c: Dans la fonction «wiimote_callback_2» :
wiimote.c:274: attention : passing argument 2 of «wiimote_callback» from incompatible pointer type
wiimote.c: Hors de toute fonction :
wiimote.c:275: attention : «union wiimote_mesg» declared inside parameter list
wiimote.c: Dans la fonction «wiimote_callback_3» :
wiimote.c:275: attention : passing argument 2 of «wiimote_callback» from incompatible pointer type
wiimote.c: Hors de toute fonction :
wiimote.c:276: attention : «union wiimote_mesg» declared inside parameter list
wiimote.c: Dans la fonction «wiimote_callback_4» :
wiimote.c:276: attention : passing argument 2 of «wiimote_callback» from incompatible pointer type
wiimote.c: Hors de toute fonction :
wiimote.c:277: attention : «union wiimote_mesg» declared inside parameter list
wiimote.c: Dans la fonction «wiimote_callback_5» :
wiimote.c:277: attention : passing argument 2 of «wiimote_callback» from incompatible pointer type
wiimote.c: Hors de toute fonction :
wiimote.c:278: attention : «union wiimote_mesg» declared inside parameter list
wiimote.c: Dans la fonction «wiimote_callback_6» :
wiimote.c:278: attention : passing argument 2 of «wiimote_callback» from incompatible pointer type
wiimote.c: Hors de toute fonction :
wiimote.c:279: attention : «union wiimote_mesg» declared inside parameter list
wiimote.c: Dans la fonction «wiimote_callback_7» :
wiimote.c:279: attention : passing argument 2 of «wiimote_callback» from incompatible pointer type
wiimote.c: Dans la fonction «wiimote_setReportMode» :
wiimote.c:292: erreur: «WIIMOTE_RPT_STATUS» undeclared (first use in this function)
wiimote.c:292: erreur: «WIIMOTE_RPT_BTN» undeclared (first use in this function)
wiimote.c:293: erreur: «WIIMOTE_RPT_IR» undeclared (first use in this function)
wiimote.c:294: erreur: «WIIMOTE_RPT_ACC» undeclared (first use in this function)
wiimote.c:295: erreur: «WIIMOTE_RPT_EXT» undeclared (first use in this function)
wiimote.c:300: erreur: «WIIMOTE_CMD_RPT_MODE» undeclared (first use in this function)
wiimote.c: Dans la fonction «wiimote_setRumble» :
wiimote.c:328: erreur: «WIIMOTE_CMD_RUMBLE» undeclared (first use in this function)
wiimote.c: Dans la fonction «wiimote_setLED» :
wiimote.c:341: erreur: «WIIMOTE_CMD_LED» undeclared (first use in this function)
wiimote.c: Dans la fonction «wiimote_doConnect» :
wiimote.c:369: attention : assignment makes pointer from integer without a cast
wiimote.c:374: attention : assignment makes pointer from integer without a cast
wiimote.c:379: attention : assignment makes pointer from integer without a cast
wiimote.c:384: attention : assignment makes pointer from integer without a cast
wiimote.c:389: attention : assignment makes pointer from integer without a cast
wiimote.c:394: attention : assignment makes pointer from integer without a cast
wiimote.c:399: attention : assignment makes pointer from integer without a cast
wiimote.c:404: attention : assignment makes pointer from integer without a cast
wiimote.c:417: erreur: «WIIMOTE_RW_EEPROM» undeclared (first use in this function)
make: *** [wiimote.pd_linux] Erreur 1
fred@choupette:~/Bureau/Pd/wiimote_pd_external_0.4.01$

Voila, c'est dommage, je me suis bricolé une sensor-bar pour récupérer les données infrarouges, mais l'intéret c'est vraiment l'utilisation avec Pure Data (peut être avec un autre module ? mais j'ai trouvé que celui-la)
Merci d'avance

Dernière modification par flarre (Le 19/04/2008, à 20:10)

Hors ligne

#2 Le 18/04/2008, à 09:34

rniamo

Re : [RESOLU] module wiimote pour pure data

des info http://wiihacks.blogspot.com/.

Pour ton problème tu as installé CWiid library ?


< Quelques un des mes programmes  | Cuisine Facile (pour les gourmands) | Fast MVC for PHP >
        \   ^__^
         \  (o o)\_______
            (___)\            )\

Hors ligne

#3 Le 18/04/2008, à 19:24

flarre

Re : [RESOLU] module wiimote pour pure data

oui, la version des dépot (Hardy),  peut-être faut-il une autre version?
je vais essayer. Tu penses que ça viens de là ?
Peut-être un PATH dans le makefile ?
Je comprend pas très bien la compilation... je dis peut-être des bétises.

Hors ligne

#4 Le 18/04/2008, à 21:21

rniamo

Re : [RESOLU] module wiimote pour pure data

perso je suis pas supper fort mais tes erreurs de compilation sont du à des constantes non déclarée donc peut être un problème de librarie ou un problème d'include.


< Quelques un des mes programmes  | Cuisine Facile (pour les gourmands) | Fast MVC for PHP >
        \   ^__^
         \  (o o)\_______
            (___)\            )\

Hors ligne

#5 Le 19/04/2008, à 20:06

flarre

Re : [RESOLU] module wiimote pour pure data

J'ai installé Cwiid 0.4.0.1 et mis le répertoire des sources dans le CWIID_PATH du makefile, et MAGIE ... la compilation se passe sans problème et après quelques manips supplémentaires, je récupère mes données wiimote sous PD...
C'était effectivement un problème de Cwiid, il faut les sources pour compiler le path pure data...

Merci rniamo

PS : je passe en résolu et je continue a suivre ce post, ça marche, mais je ne suis pas sur de comprendre pourquoi !

Dernière modification par flarre (Le 20/04/2008, à 01:18)

Hors ligne

#6 Le 18/04/2009, à 23:41

shanneton

Re : [RESOLU] module wiimote pour pure data

Pas simple en effet. Peut-être que ce résumé des difficultés que j'ai  rencontrées sera utile à d'autres : http://aworldofsounds.free.fr/wikini/wa … tePureData

NB : J'ai aussi fini par réussir...
(je précise que la librairie cwiid ici est la 6.00, ce post est tardif par rapport aux messages précédents)

Dernière modification par shanneton (Le 18/04/2009, à 23:43)

Hors ligne