Pages : 1
#1 Le 25/02/2008, à 18:04
- Paty
Compilation avimator
Bonjour,
je souhaite installer le logiciel avimator sur ma machine et j'ai trouvé le code à cette adresse
http://avimator.com/downloads/avimator-0.4.1-src.tar.gz
Le problème pour moi est que je ne connait que Adept pour installer des logiciels
Pouvez-vous m'explique comment je peux l'installer (le compiler je crois)?
D'avance merci.
#2 Le 25/02/2008, à 18:07
- slasher_fun
Re : Compilation avimator
Effectivement les binaires indiqués n'existent pas...
Dézippe l'archive, et place toi dans son répertoire en console. Comme il n'y a pas de fichier configure, tapes directement
make
. Si tu as de la chance, il va aller au bout sans broncher, et tu pourras alors l'installer avec
sudo make install
S'il gueule à la compilation, c'est qu'il manque une librairie. N'hésite pas à poster un éventuel message d'erreur ici pour qu'on te dise quoi installer
Hors ligne
#3 Le 25/02/2008, à 18:15
- Paty
Re : Compilation avimator
Effectivement les binaires indiqués n'existent pas...
Dézippe l'archive, et place toi dans son répertoire en console. Comme il n'y a pas de fichier configure, tapes directement
make
. Si tu as de la chance, il va aller au bout sans broncher, et tu pourras alors l'installer avec
sudo make install
S'il gueule à la compilation, c'est qu'il manque une librairie. N'hésite pas à poster un éventuel message d'erreur ici pour qu'on te dise quoi installer
Merci pour ton aide.
J'ai tapé le make en console dand le répertoire et il y a un floriture de messages d'erreur:
pat@ordi:~/avimator/avimator-0.4.1$ make
g++ -I/usr/include `fltk-config --cflags` -Ilibquat -DMINGW -c Main.cpp
/bin/sh: fltk-config: not found
Dans le fichier inclus à partir de Main.cpp:24:
MainWindow.h:5:19: erreur: FL/Fl.H : Aucun fichier ou répertoire de ce type
MainWindow.h:6:33: erreur: FL/Fl_Double_Window.H : Aucun fichier ou répertoire d
e ce type
Dans le fichier inclus à partir de MainWindow.h:7,
à partir de Main.cpp:24:
MainWindow_src.h:26:29: erreur: FL/Fl_PNG_Image.h : Aucun fichier ou répertoire
de ce type
Dans le fichier inclus à partir de MainWindow_src.h:27,
à partir de MainWindow.h:7,
à partir de Main.cpp:24:
AnimationView.h:25:29: erreur: FL/Fl_Gl_Window.h : Aucun fichier ou répertoire d
e ce type
Dans le fichier inclus à partir de Main.cpp:24:
MainWindow.h:10:28: erreur: FL/Fl_Menu_Bar.H : Aucun fichier ou répertoire de ce
type
MainWindow.h:25:24: erreur: FL/Fl_Pack.H : Aucun fichier ou répertoire de ce typ
e
MainWindow.h:28:25: erreur: FL/Fl_Group.H : Aucun fichier ou répertoire de ce ty
pe
MainWindow.h:29:26: erreur: FL/Fl_Choice.H : Aucun fichier ou répertoire de ce t
ype
MainWindow.h:31:26: erreur: FL/Fl_Roller.H : Aucun fichier ou répertoire de ce t
ype
MainWindow.h:33:31: erreur: FL/Fl_Value_Input.H : Aucun fichier ou répertoire de
ce type
MainWindow.h:37:26: erreur: FL/Fl_Output.H : Aucun fichier ou répertoire de ce t
ype
MainWindow.h:39:26: erreur: FL/Fl_Slider.H : Aucun fichier ou répertoire de ce t
ype
MainWindow.h:41:26: erreur: FL/Fl_Button.H : Aucun fichier ou répertoire de ce t
ype
AnimationView.h:32: erreur: expected class-name before «{" token
MainWindow.h:9: attention : «cb_MainWindow" initialized and declared «extern"
MainWindow.h:9: erreur: variable or field «cb_MainWindow" declared void
MainWindow.h:9: erreur: «Fl_Double_Window" was not declared in this scope
MainWindow.h:9: erreur: expected primary-expression before «," token
MainWindow.h:9: erreur: expected primary-expression before «void"
MainWindow.h:9: erreur: initializer liste d'expressions traitée comme une expres
sion composée
MainWindow.h:11: attention : «cb_New" initialized and declared «extern"
MainWindow.h:11: erreur: variable or field «cb_New" declared void
MainWindow.h:11: erreur: «Fl_Menu_" was not declared in this scope
MainWindow.h:11: erreur: expected primary-expression before «," token
MainWindow.h:11: erreur: expected primary-expression before «void"
MainWindow.h:11: erreur: initializer liste d'expressions traitée comme une expre
ssion composée
MainWindow.h:12: attention : «cb_Open" initialized and declared «extern"
MainWindow.h:12: erreur: variable or field «cb_Open" declared void
MainWindow.h:12: erreur: «Fl_Menu_" was not declared in this scope
MainWindow.h:12: erreur: expected primary-expression before «," token
MainWindow.h:12: erreur: expected primary-expression before «void"
MainWindow.h:12: erreur: initializer liste d'expressions traitée comme une expre
ssion composée
MainWindow.h:13: attention : «cb_Save" initialized and declared «extern"
MainWindow.h:13: erreur: variable or field «cb_Save" declared void
MainWindow.h:13: erreur: «Fl_Menu_" was not declared in this scope
MainWindow.h:13: erreur: expected primary-expression before «," token
MainWindow.h:13: erreur: expected primary-expression before «void"
MainWindow.h:13: erreur: initializer liste d'expressions traitée comme une expre
ssion composée
MainWindow.h:14: attention : «cb_SaveAs" initialized and declared «extern"
MainWindow.h:14: erreur: variable or field «cb_SaveAs" declared void
MainWindow.h:14: erreur: «Fl_Menu_" was not declared in this scope
MainWindow.h:14: erreur: expected primary-expression before «," token
MainWindow.h:14: erreur: expected primary-expression before «void"
MainWindow.h:14: erreur: initializer liste d'expressions traitée comme une expre
ssion composée
MainWindow.h:15: attention : «cb_Exit" initialized and declared «extern"
MainWindow.h:15: erreur: variable or field «cb_Exit" declared void
MainWindow.h:15: erreur: «Fl_Menu_" was not declared in this scope
MainWindow.h:15: erreur: expected primary-expression before «," token
MainWindow.h:15: erreur: expected primary-expression before «void"
MainWindow.h:15: erreur: initializer liste d'expressions traitée comme une expre
ssion composée
MainWindow.h:16: attention : «cb_CopyFrame" initialized and declared «extern"
MainWindow.h:16: erreur: variable or field «cb_CopyFrame" declared void
MainWindow.h:16: erreur: «Fl_Menu_" was not declared in this scope
MainWindow.h:16: erreur: expected primary-expression before «," token
MainWindow.h:16: erreur: expected primary-expression before «void"
MainWindow.h:16: erreur: initializer liste d'expressions traitée comme une expre
ssion composée
MainWindow.h:17: attention : «cb_PasteFrame" initialized and declared «extern"
MainWindow.h:17: erreur: variable or field «cb_PasteFrame" declared void
MainWindow.h:17: erreur: «Fl_Menu_" was not declared in this scope
MainWindow.h:17: erreur: expected primary-expression before «," token
MainWindow.h:17: erreur: expected primary-expression before «void"
MainWindow.h:17: erreur: initializer liste d'expressions traitée comme une expre
ssion composée
MainWindow.h:18: attention : «cb_FigureMale" initialized and declared «extern"
MainWindow.h:18: erreur: variable or field «cb_FigureMale" declared void
MainWindow.h:18: erreur: «Fl_Menu_" was not declared in this scope
MainWindow.h:18: erreur: expected primary-expression before «," token
MainWindow.h:18: erreur: expected primary-expression before «void"
MainWindow.h:18: erreur: initializer liste d'expressions traitée comme une expre
ssion composée
MainWindow.h:19: attention : «cb_FigureFemale" initialized and declared «extern"
MainWindow.h:19: erreur: variable or field «cb_FigureFemale" declared void
MainWindow.h:19: erreur: «Fl_Menu_" was not declared in this scope
MainWindow.h:19: erreur: expected primary-expression before «," token
MainWindow.h:19: erreur: expected primary-expression before «void"
MainWindow.h:19: erreur: initializer liste d'expressions traitée comme une expre
ssion composée
MainWindow.h:20: attention : «cb_JointsShow" initialized and declared «extern"
MainWindow.h:20: erreur: variable or field «cb_JointsShow" declared void
MainWindow.h:20: erreur: «Fl_Menu_" was not declared in this scope
MainWindow.h:20: erreur: expected primary-expression before «," token
MainWindow.h:20: erreur: expected primary-expression before «void"
MainWindow.h:20: erreur: initializer liste d'expressions traitée comme une expre
ssion composée
MainWindow.h:21: attention : «cb_JointsHide" initialized and declared «extern"
MainWindow.h:21: erreur: variable or field «cb_JointsHide" declared void
MainWindow.h:21: erreur: «Fl_Menu_" was not declared in this scope
MainWindow.h:21: erreur: expected primary-expression before «," token
MainWindow.h:21: erreur: expected primary-expression before «void"
MainWindow.h:21: erreur: initializer liste d'expressions traitée comme une expre
ssion composée
MainWindow.h:22: attention : «cb_LimitsOn" initialized and declared «extern"
MainWindow.h:22: erreur: variable or field «cb_LimitsOn" declared void
MainWindow.h:22: erreur: «Fl_Menu_" was not declared in this scope
MainWindow.h:22: erreur: expected primary-expression before «," token
MainWindow.h:22: erreur: expected primary-expression before «void"
MainWindow.h:22: erreur: initializer liste d'expressions traitée comme une expre
ssion composée
MainWindow.h:23: attention : «cb_LimitsOff" initialized and declared «extern"
MainWindow.h:23: erreur: variable or field «cb_LimitsOff" declared void
MainWindow.h:23: erreur: «Fl_Menu_" was not declared in this scope
MainWindow.h:23: erreur: expected primary-expression before «," token
MainWindow.h:23: erreur: expected primary-expression before «void"
MainWindow.h:23: erreur: initializer liste d'expressions traitée comme une expre
ssion composée
MainWindow.h:24: attention : «cb_Loop" initialized and declared «extern"
MainWindow.h:24: erreur: variable or field «cb_Loop" declared void
MainWindow.h:24: erreur: «Fl_Menu_" was not declared in this scope
MainWindow.h:24: erreur: expected primary-expression before «," token
MainWindow.h:24: erreur: expected primary-expression before «void"
MainWindow.h:24: erreur: initializer liste d'expressions traitée comme une expre
ssion composée
MainWindow.h:30: attention : «cb_PartChoice" initialized and declared «extern"
MainWindow.h:30: erreur: variable or field «cb_PartChoice" declared void
MainWindow.h:30: erreur: «Fl_Choice" was not declared in this scope
MainWindow.h:30: erreur: expected primary-expression before «," token
MainWindow.h:30: erreur: expected primary-expression before «void"
MainWindow.h:30: erreur: initializer liste d'expressions traitée comme une expre
ssion composée
MainWindow.h:32: attention : «cb_RotRoller" initialized and declared «extern"
MainWindow.h:32: erreur: variable or field «cb_RotRoller" declared void
MainWindow.h:32: erreur: «Fl_Roller" was not declared in this scope
MainWindow.h:32: erreur: expected primary-expression before «," token
MainWindow.h:32: erreur: expected primary-expression before «void"
MainWindow.h:32: erreur: initializer liste d'expressions traitée comme une expre
ssion composée
MainWindow.h:34: attention : «cb_RotValue" initialized and declared «extern"
MainWindow.h:34: erreur: variable or field «cb_RotValue" declared void
MainWindow.h:34: erreur: «Fl_Value_Input" was not declared in this scope
MainWindow.h:34: erreur: expected primary-expression before «," token
MainWindow.h:34: erreur: expected primary-expression before «void"
MainWindow.h:34: erreur: initializer liste d'expressions traitée comme une expre
ssion composée
MainWindow.h:35: attention : «cb_PosRoller" initialized and declared «extern"
MainWindow.h:35: erreur: variable or field «cb_PosRoller" declared void
MainWindow.h:35: erreur: «Fl_Roller" was not declared in this scope
MainWindow.h:35: erreur: expected primary-expression before «," token
MainWindow.h:35: erreur: expected primary-expression before «void"
MainWindow.h:35: erreur: initializer liste d'expressions traitée comme une expre
ssion composée
MainWindow.h:36: attention : «cb_PosValue" initialized and declared «extern"
MainWindow.h:36: erreur: variable or field «cb_PosValue" declared void
MainWindow.h:36: erreur: «Fl_Value_Input" was not declared in this scope
MainWindow.h:36: erreur: expected primary-expression before «," token
MainWindow.h:36: erreur: expected primary-expression before «void"
MainWindow.h:36: erreur: initializer liste d'expressions traitée comme une expre
ssion composée
MainWindow.h:38: attention : «cb_fpsValue" initialized and declared «extern"
MainWindow.h:38: erreur: variable or field «cb_fpsValue" declared void
MainWindow.h:38: erreur: «Fl_Value_Input" was not declared in this scope
MainWindow.h:38: erreur: expected primary-expression before «," token
MainWindow.h:38: erreur: expected primary-expression before «void"
MainWindow.h:38: erreur: initializer liste d'expressions traitée comme une expre
ssion composée
MainWindow.h:40: attention : «cb_FrameSlider" initialized and declared «extern"
MainWindow.h:40: erreur: variable or field «cb_FrameSlider" declared void
MainWindow.h:40: erreur: «Fl_Slider" was not declared in this scope
MainWindow.h:40: erreur: expected primary-expression before «," token
MainWindow.h:40: erreur: expected primary-expression before «void"
MainWindow.h:40: erreur: initializer liste d'expressions traitée comme une expre
ssion composée
MainWindow.h:42: attention : «cb_PlayBtn" initialized and declared «extern"
MainWindow.h:42: erreur: variable or field «cb_PlayBtn" declared void
MainWindow.h:42: erreur: «Fl_Button" was not declared in this scope
MainWindow.h:42: erreur: expected primary-expression before «," token
MainWindow.h:42: erreur: expected primary-expression before «void"
MainWindow.h:42: erreur: initializer liste d'expressions traitée comme une expre
ssion composée
MainWindow.h:43: attention : «cb_KeyBtn" initialized and declared «extern"
MainWindow.h:43: erreur: variable or field «cb_KeyBtn" declared void
MainWindow.h:43: erreur: «Fl_Button" was not declared in this scope
MainWindow.h:43: erreur: expected primary-expression before «," token
MainWindow.h:43: erreur: expected primary-expression before «void"
MainWindow.h:43: erreur: initializer liste d'expressions traitée comme une expre
ssion composée
MainWindow.h:44: attention : «cb_NumFramesValue" initialized and declared «exter
n"
MainWindow.h:44: erreur: variable or field «cb_NumFramesValue" declared void
MainWindow.h:44: erreur: «Fl_Value_Input" was not declared in this scope
MainWindow.h:44: erreur: expected primary-expression before «," token
MainWindow.h:44: erreur: expected primary-expression before «void"
MainWindow.h:44: erreur: initializer liste d'expressions traitée comme une expre
ssion composée
MainWindow.h:46: erreur: expected class-name before «{" token
MainWindow.h:51: erreur: «Fl_Menu_Item" does not name a type
MainWindow.h:52: erreur: ISO C++ forbids declaration of «Fl_Menu_Item" with no t
ype
MainWindow.h:52: erreur: expected «;" before «*" token
MainWindow.h:53: erreur: ISO C++ forbids declaration of «Fl_Menu_Item" with no t
ype
MainWindow.h:53: erreur: expected «;" before «*" token
MainWindow.h:55: erreur: ISO C++ forbids declaration of «Fl_Choice" with no type
MainWindow.h:55: erreur: expected «;" before «*" token
MainWindow.h:56: erreur: «Fl_Menu_Item" does not name a type
MainWindow.h:57: erreur: ISO C++ forbids declaration of «Fl_Roller" with no type
MainWindow.h:57: erreur: expected «;" before «*" token
MainWindow.h:58: erreur: ISO C++ forbids declaration of «Fl_Value_Input" with no
type
MainWindow.h:58: erreur: expected «;" before «*" token
MainWindow.h:59: erreur: ISO C++ forbids declaration of «Fl_Roller" with no type
MainWindow.h:59: erreur: expected «;" before «*" token
MainWindow.h:60: erreur: ISO C++ forbids declaration of «Fl_Value_Input" with no
type
MainWindow.h:60: erreur: expected «;" before «*" token
MainWindow.h:61: erreur: ISO C++ forbids declaration of «Fl_Roller" with no type
MainWindow.h:61: erreur: expected «;" before «*" token
MainWindow.h:62: erreur: ISO C++ forbids declaration of «Fl_Value_Input" with no
type
MainWindow.h:62: erreur: expected «;" before «*" token
MainWindow.h:63: erreur: ISO C++ forbids declaration of «Fl_Roller" with no type
MainWindow.h:63: erreur: expected «;" before «*" token
MainWindow.h:64: erreur: ISO C++ forbids declaration of «Fl_Value_Input" with no
type
MainWindow.h:64: erreur: expected «;" before «*" token
MainWindow.h:65: erreur: ISO C++ forbids declaration of «Fl_Roller" with no type
MainWindow.h:65: erreur: expected «;" before «*" token
MainWindow.h:66: erreur: ISO C++ forbids declaration of «Fl_Value_Input" with no
type
MainWindow.h:66: erreur: expected «;" before «*" token
MainWindow.h:67: erreur: ISO C++ forbids declaration of «Fl_Roller" with no type
MainWindow.h:67: erreur: expected «;" before «*" token
MainWindow.h:68: erreur: ISO C++ forbids declaration of «Fl_Value_Input" with no
type
MainWindow.h:68: erreur: expected «;" before «*" token
MainWindow.h:69: erreur: ISO C++ forbids declaration of «Fl_Value_Input" with no
type
MainWindow.h:69: erreur: expected «;" before «*" token
MainWindow.h:70: erreur: ISO C++ forbids declaration of «Fl_Slider" with no type
MainWindow.h:70: erreur: expected «;" before «*" token
MainWindow.h:71: erreur: ISO C++ forbids declaration of «Fl_Button" with no type
MainWindow.h:71: erreur: expected «;" before «*" token
MainWindow.h:72: erreur: ISO C++ forbids declaration of «Fl_Button" with no type
MainWindow.h:72: erreur: expected «;" before «*" token
MainWindow.h:73: erreur: ISO C++ forbids declaration of «Fl_Value_Input" with no type
MainWindow.h:73: erreur: expected «;" before «*" token
MainWindow.h:74: erreur: ISO C++ forbids declaration of «Fl_Value_Input" with no type
MainWindow.h:74: erreur: expected «;" before «*" token
MainWindow.h:78: erreur: ISO C++ forbids declaration of «Fl_PNG_Image" with no t ype
MainWindow.h:78: erreur: expected «;" before «*" token
MainWindow.h:79: erreur: ISO C++ forbids declaration of «Fl_PNG_Image" with no t ype
MainWindow.h:79: erreur: expected «;" before «*" token
MainWindow.h:80: erreur: ISO C++ forbids declaration of «Fl_PNG_Image" with no t ype
MainWindow.h:80: erreur: expected «;" before «*" token
MainWindow.h:81: erreur: ISO C++ forbids declaration of «Fl_PNG_Image" with no t ype
MainWindow.h:81: erreur: expected «;" before «*" token
Main.cpp: In function «int main(int, char**)":
Main.cpp:45: erreur: «class MainWindow" has no member named «show"
Main.cpp:46: erreur: «Fl" has not been declared
make: *** [Main.o] Erreur 1
pat@ordi:~/avimator/avimator-0.4.1$
C'est impressionnant et je n'y comprend pas grand chose....:/
#4 Le 25/02/2008, à 18:25
- slasher_fun
Re : Compilation avimator
Âne effet
Paquets à installer : build-essential (si ce n'est pas déjà fait) et libfltk-dev
Recommence la compilation, et on verra après s'il manque encore autre chose
Dernière modification par slasher-fun (Le 25/02/2008, à 18:25)
Hors ligne
#5 Le 25/02/2008, à 18:33
- Paty
Re : Compilation avimator
Âne effet
Paquets à installer : build-essential (si ce n'est pas déjà fait) et libfltk-dev
Recommence la compilation, et on verra après s'il manque encore autre chose
Merci slasher-fun
Le build-essential était installé, pas le libfltk-dev
donc voici le résultat du make après cet install
pat@ordi:~/avimator/avimator-0.4.1$ make
g++ -I/usr/include `fltk-config --cflags` -Ilibquat -DMINGW -c Main.cpp
Dans le fichier inclus à partir de MainWindow.h:7,
à partir de Main.cpp:24:
MainWindow_src.h:26:29: erreur: FL/Fl_PNG_Image.h : Aucun fichier ou répertoire de ce type
Dans le fichier inclus à partir de MainWindow_src.h:27,
à partir de MainWindow.h:7,
à partir de Main.cpp:24:
AnimationView.h:25:29: erreur: FL/Fl_Gl_Window.h : Aucun fichier ou répertoire de ce type
AnimationView.h:32: erreur: expected class-name before «{" token
MainWindow.h:78: erreur: ISO C++ forbids declaration of «Fl_PNG_Image" with no type
MainWindow.h:78: erreur: expected «;" before «*" token
MainWindow.h:79: erreur: ISO C++ forbids declaration of «Fl_PNG_Image" with no type
MainWindow.h:79: erreur: expected «;" before «*" token
MainWindow.h:80: erreur: ISO C++ forbids declaration of «Fl_PNG_Image" with no type
MainWindow.h:80: erreur: expected «;" before «*" token
MainWindow.h:81: erreur: ISO C++ forbids declaration of «Fl_PNG_Image" with no type
MainWindow.h:81: erreur: expected «;" before «*" token
make: *** [Main.o] Erreur 1
pat@ordi:~/avimator/avimator-0.4.1$
Il doit manquer encore quelque chose (c'est pas simple cette installation)
#6 Le 25/02/2008, à 18:40
- slasher_fun
Re : Compilation avimator
OK je crois voir où est le problème. Essaye :
sudo cp /usr/include/FL/Fl_PNG_Image.H /usr/include/FL/Fl_PNG_Image.h
sudo cp /usr/include/FL/Fl_Gl_Window.H /usr/include/FL/Fl_Gl_Window.h
Ça devrait le faire
Hors ligne
#7 Le 25/02/2008, à 18:49
- Paty
Re : Compilation avimator
OK je crois voir où est le problème. Essaye :
sudo cp /usr/include/FL/Fl_PNG_Image.H /usr/include/FL/Fl_PNG_Image.h sudo cp /usr/include/FL/Fl_Gl_Window.H /usr/include/FL/Fl_Gl_Window.h
Ça devrait le faire
très nette diminution des messages d'erreurs:
pat@ordi:~/avimator/avimator-0.4.1$ make
g++ -I/usr/include `fltk-config --cflags` -Ilibquat -DMINGW -c Main.cpp
g++ -I/usr/include `fltk-config --cflags` -Ilibquat -DMINGW -c MainWindow.cpp
g++ -I/usr/include `fltk-config --cflags` -Ilibquat -DMINGW -c MainWindow_src.cpp
MainWindow_src.cpp:23:32: erreur: FL/Fl_File_Chooser.h : Aucun fichier ou répertoire de ce type
MainWindow_src.cpp: In function «void saveAs(MainWindow*)":
MainWindow_src.cpp:208: erreur: «fl_file_chooser" was not declared in this scope
MainWindow_src.cpp: In function «void userQuit(MainWindow*)":
MainWindow_src.cpp:231: erreur: «fl_choice" was not declared in this scope
MainWindow_src.cpp: In function «void cb_Open(Fl_Menu_*, void*)":
MainWindow_src.cpp:261: erreur: «fl_file_chooser" was not declared in this scope
make: *** [MainWindow_src.o] Erreur 1
pat@ordi:~/avimator/avimator-0.4.1$
je crois que je devrais me mettre un peu à la progammation et compilation ...ou devraient-ils peut-etre indiquer la méthode sur le site
#8 Le 25/02/2008, à 19:01
- slasher_fun
Re : Compilation avimator
Même concept que tout à l'heure :
sudo cp /usr/include/FL/Fl_File_Chooser.H /usr/include/FL/Fl_File_Chooser.h
En gros le problème c'est que les fichiers côté Ubuntu ont un H majuscule à la fin, alors que le code que tu compiles attends un h minuscule...
Dernière modification par slasher-fun (Le 25/02/2008, à 19:01)
Hors ligne
#9 Le 25/02/2008, à 19:15
- Paty
Re : Compilation avimator
Même concept que tout à l'heure :
sudo cp /usr/include/FL/Fl_File_Chooser.H /usr/include/FL/Fl_File_Chooser.h
En gros le problème c'est que les fichiers côté Ubuntu ont un H majuscule à la fin, alors que le code que tu compiles attends un h minuscule...
C'est repartit de plus belle
pat@ordi:~/avimator/avimator-0.4.1$ make
g++ -I/usr/include `fltk-config --cflags` -Ilibquat -DMINGW -c MainWindow_src.cpp
g++ -I/usr/include `fltk-config --cflags` -Ilibquat -DMINGW -c AnimationView.cpp
AnimationView.cpp:26:19: erreur: Fl/Fl.h : Aucun fichier ou répertoire de ce type
AnimationView.cpp:30:20: erreur: GL/glu.h : Aucun fichier ou répertoire de ce type
AnimationView.cpp: In member function «void AnimationView::drawFloor()":
AnimationView.cpp:83: erreur: «GL_LIGHTING" was not declared in this scope
AnimationView.cpp:83: erreur: «glDisable" was not declared in this scope
AnimationView.cpp:84: erreur: «GL_DEPTH_TEST" was not declared in this scope
AnimationView.cpp:84: erreur: «glEnable" was not declared in this scope
AnimationView.cpp:85: erreur: «GL_COLOR_MATERIAL" was not declared in this scope
AnimationView.cpp:86: erreur: «GL_FLAT" was not declared in this scope
AnimationView.cpp:86: erreur: «glShadeModel" was not declared in this scope
AnimationView.cpp:87: erreur: «GL_FRONT_AND_BACK" was not declared in this scope
AnimationView.cpp:87: erreur: «GL_FILL" was not declared in this scope
AnimationView.cpp:87: erreur: «glPolygonMode" was not declared in this scope
AnimationView.cpp:88: erreur: «GL_QUADS" was not declared in this scope
AnimationView.cpp:88: erreur: «glBegin" was not declared in this scope
AnimationView.cpp:92: erreur: «glColor4f" was not declared in this scope
AnimationView.cpp:94: erreur: «glColor4f" was not declared in this scope
AnimationView.cpp:95: erreur: «glVertex3f" was not declared in this scope
AnimationView.cpp:99: erreur: «glEnd" was not declared in this scope
AnimationView.cpp: In member function «void AnimationView::setProjection()":
AnimationView.cpp:104: erreur: «gluPerspective" was not declared in this scope
AnimationView.cpp: In member function «void AnimationView::setBodyMaterial()":
AnimationView.cpp:109: erreur: «GLfloat" was not declared in this scope
AnimationView.cpp:109: erreur: expected `;' before «ambientA"
AnimationView.cpp:110: erreur: expected `;' before «diffuseA"
AnimationView.cpp:111: erreur: expected `;' before «specularA"
AnimationView.cpp:112: erreur: expected `;' before «shininessA"
AnimationView.cpp:114: erreur: «GL_FRONT" was not declared in this scope
AnimationView.cpp:114: erreur: «GL_AMBIENT" was not declared in this scope
AnimationView.cpp:114: erreur: «ambientA" was not declared in this scope
AnimationView.cpp:114: erreur: «glMaterialfv" was not declared in this scope
AnimationView.cpp:115: erreur: «GL_DIFFUSE" was not declared in this scope
AnimationView.cpp:115: erreur: «diffuseA" was not declared in this scope
AnimationView.cpp:116: erreur: «GL_SPECULAR" was not declared in this scope
AnimationView.cpp:116: erreur: «specularA" was not declared in this scope
AnimationView.cpp:117: erreur: «GL_SHININESS" was not declared in this scope
AnimationView.cpp:117: erreur: «shininessA" was not declared in this scope
AnimationView.cpp:117: erreur: «glMaterialf" was not declared in this scope
AnimationView.cpp: In member function «virtual void AnimationView::draw()":
AnimationView.cpp:124: erreur: «GLfloat" was not declared in this scope
AnimationView.cpp:124: erreur: expected `;' before «position0"
AnimationView.cpp:125: erreur: expected `;' before «ambient0"
AnimationView.cpp:126: erreur: expected `;' before «diffuse0"
AnimationView.cpp:127: erreur: expected `;' before «specular0"
AnimationView.cpp:129: erreur: expected `;' before «position1"
AnimationView.cpp:130: erreur: expected `;' before «ambient1"
AnimationView.cpp:131: erreur: expected `;' before «diffuse1"
AnimationView.cpp:132: erreur: expected `;' before «specular1"
AnimationView.cpp:135: erreur: «glViewport" was not declared in this scope
AnimationView.cpp:137: erreur: «GL_BLEND" was not declared in this scope
AnimationView.cpp:137: erreur: «glEnable" was not declared in this scope
AnimationView.cpp:138: erreur: «GL_SRC_ALPHA" was not declared in this scope
AnimationView.cpp:138: erreur: «GL_ONE_MINUS_SRC_ALPHA" was not declared in this scope
AnimationView.cpp:138: erreur: «glBlendFunc" was not declared in this scope
AnimationView.cpp:140: erreur: «GL_LIGHT0" was not declared in this scope
AnimationView.cpp:140: erreur: «GL_AMBIENT" was not declared in this scope
AnimationView.cpp:140: erreur: «ambient0" was not declared in this scope
AnimationView.cpp:140: erreur: «glLightfv" was not declared in this scope
AnimationView.cpp:144: erreur: «GL_LIGHT1" was not declared in this scope
AnimationView.cpp:144: erreur: «ambient1" was not declared in this scope
AnimationView.cpp:145: erreur: «GL_DIFFUSE" was not declared in this scope
AnimationView.cpp:145: erreur: «diffuse1" was not declared in this scope
AnimationView.cpp:146: erreur: «GL_SPECULAR" was not declared in this scope
AnimationView.cpp:146: erreur: «specular1" was not declared in this scope
AnimationView.cpp:148: erreur: «GL_NORMALIZE" was not declared in this scope
AnimationView.cpp:150: erreur: «GL_FOG" was not declared in this scope
AnimationView.cpp:152: erreur: expected `;' before «fogColor"
AnimationView.cpp:153: erreur: «GL_EXP" was not declared in this scope
AnimationView.cpp:154: erreur: «GL_FOG_MODE" was not declared in this scope
AnimationView.cpp:154: erreur: «glFogi" was not declared in this scope
AnimationView.cpp:155: erreur: «GL_FOG_COLOR" was not declared in this scope
AnimationView.cpp:155: erreur: «fogColor" was not declared in this scope
AnimationView.cpp:155: erreur: «glFogfv" was not declared in this scope
AnimationView.cpp:156: erreur: «GL_FOG_DENSITY" was not declared in this scope
AnimationView.cpp:156: erreur: «glFogf" was not declared in this scope
AnimationView.cpp:157: erreur: «GL_FOG_HINT" was not declared in this scope
AnimationView.cpp:157: erreur: «GL_DONT_CARE" was not declared in this scope
AnimationView.cpp:157: erreur: «glHint" was not declared in this scope
AnimationView.cpp:158: erreur: «GL_FOG_START" was not declared in this scope
AnimationView.cpp:159: erreur: «GL_FOG_END" was not declared in this scope
AnimationView.cpp:161: erreur: «GL_PROJECTION" was not declared in this scope
AnimationView.cpp:161: erreur: «glMatrixMode" was not declared in this scope
AnimationView.cpp:162: erreur: «glLoadIdentity" was not declared in this scope
AnimationView.cpp:166: erreur: «glClearColor" was not declared in this scope
AnimationView.cpp:167: erreur: «GL_COLOR_BUFFER_BIT" was not declared in this scope
AnimationView.cpp:167: erreur: «GL_DEPTH_BUFFER_BIT" was not declared in this scope
AnimationView.cpp:167: erreur: «glClear" was not declared in this scope
AnimationView.cpp:170: erreur: «GL_LIGHT0" was not declared in this scope
AnimationView.cpp:170: erreur: «GL_POSITION" was not declared in this scope
AnimationView.cpp:170: erreur: «position0" was not declared in this scope
AnimationView.cpp:170: erreur: «glLightfv" was not declared in this scope
AnimationView.cpp:171: erreur: «GL_LIGHT1" was not declared in this scope
AnimationView.cpp:171: erreur: «position1" was not declared in this scope
AnimationView.cpp: In member function «int AnimationView::pickPart(int, int)":
AnimationView.cpp:181: erreur: «GLuint" was not declared in this scope
AnimationView.cpp:181: erreur: expected `;' before «selectBuf"
AnimationView.cpp:182: erreur: «p" was not declared in this scope
AnimationView.cpp:182: erreur: «num" was not declared in this scope
AnimationView.cpp:182: erreur: «name" was not declared in this scope
AnimationView.cpp:183: erreur: «GLint" was not declared in this scope
AnimationView.cpp:183: erreur: expected `;' before «hits"
AnimationView.cpp:184: erreur: expected `;' before «viewport"
AnimationView.cpp:185: erreur: expected `;' before «depth"
AnimationView.cpp:187: erreur: «GL_VIEWPORT" was not declared in this scope
AnimationView.cpp:187: erreur: «viewport" was not declared in this scope
AnimationView.cpp:187: erreur: «glGetIntegerv" was not declared in this scope
AnimationView.cpp:188: erreur: «selectBuf" was not declared in this scope
AnimationView.cpp:188: erreur: «glSelectBuffer" was not declared in this scope
AnimationView.cpp:189: erreur: «GL_SELECT" was not declared in this scope
AnimationView.cpp:189: erreur: «glRenderMode" was not declared in this scope
AnimationView.cpp:190: erreur: «glInitNames" was not declared in this scope
AnimationView.cpp:191: erreur: «glPushName" was not declared in this scope
AnimationView.cpp:192: erreur: «GL_PROJECTION" was not declared in this scope
AnimationView.cpp:192: erreur: «glMatrixMode" was not declared in this scope
AnimationView.cpp:193: erreur: «glPushMatrix" was not declared in this scope
AnimationView.cpp:194: erreur: «glLoadIdentity" was not declared in this scope
AnimationView.cpp:195: erreur: «gluPickMatrix" was not declared in this scope
AnimationView.cpp:200: erreur: «glPopMatrix" was not declared in this scope
AnimationView.cpp:201: erreur: «glFlush" was not declared in this scope
AnimationView.cpp:202: erreur: «hits" was not declared in this scope
AnimationView.cpp:202: erreur: «GL_RENDER" was not declared in this scope
AnimationView.cpp:206: erreur: «depth" was not declared in this scope
AnimationView.cpp: In member function «virtual int AnimationView::handle(int)":
AnimationView.cpp:217: erreur: «Fl" has not been declared
AnimationView.cpp:220: erreur: «Fl" has not been declared
AnimationView.cpp:221: erreur: «Fl" has not been declared
AnimationView.cpp:222: erreur: «Fl" has not been declared
AnimationView.cpp:223: erreur: «Fl" has not been declared
AnimationView.cpp:231: erreur: «Fl" has not been declared
AnimationView.cpp:277: erreur: «Fl" has not been declared
AnimationView.cpp:281: erreur: «Fl" has not been declared
AnimationView.cpp:293: erreur: «Fl" has not been declared
AnimationView.cpp: In member function «void AnimationView::drawFigure()":
AnimationView.cpp:309: erreur: «GL_SMOOTH" was not declared in this scope
AnimationView.cpp:309: erreur: «glShadeModel" was not declared in this scope
AnimationView.cpp:311: erreur: «GL_LIGHTING" was not declared in this scope
AnimationView.cpp:311: erreur: «glEnable" was not declared in this scope
AnimationView.cpp:312: erreur: «GL_LIGHT0" was not declared in this scope
AnimationView.cpp:313: erreur: «GL_LIGHT1" was not declared in this scope
AnimationView.cpp:314: erreur: «GL_FRONT_AND_BACK" was not declared in this scope
AnimationView.cpp:314: erreur: «GL_FILL" was not declared in this scope
AnimationView.cpp:314: erreur: «glPolygonMode" was not declared in this scope
AnimationView.cpp:316: erreur: «glTranslatef" was not declared in this scope
AnimationView.cpp:318: erreur: «GL_DEPTH_TEST" was not declared in this scope
AnimationView.cpp:322: erreur: «GL_COLOR_MATERIAL" was not declared in this scope
AnimationView.cpp:326: erreur: «glDisable" was not declared in this scope
AnimationView.cpp: In member function «void AnimationView::drawPart(int, BVHNode*, BVHNode*, int)":
AnimationView.cpp:335: erreur: «GLint" was not declared in this scope
AnimationView.cpp:335: erreur: expected `;' before «renderMode"
AnimationView.cpp:338: erreur: «GL_RENDER_MODE" was not declared in this scope
AnimationView.cpp:338: erreur: «renderMode" was not declared in this scope
AnimationView.cpp:338: erreur: «glGetIntegerv" was not declared in this scope
AnimationView.cpp:339: erreur: «GL_SELECT" was not declared in this scope
AnimationView.cpp:342: erreur: «glPushMatrix" was not declared in this scope
AnimationView.cpp:343: erreur: «glTranslatef" was not declared in this scope
AnimationView.cpp:349: erreur: «glColor4f" was not declared in this scope
AnimationView.cpp:350: erreur: «glLineWidth" was not declared in this scope
AnimationView.cpp:351: erreur: «GL_LINES" was not declared in this scope
AnimationView.cpp:351: erreur: «glBegin" was not declared in this scope
AnimationView.cpp:352: erreur: «glVertex3f" was not declared in this scope
AnimationView.cpp:354: erreur: «glEnd" was not declared in this scope
AnimationView.cpp:375: erreur: «glRotatef" was not declared in this scope
AnimationView.cpp:388: erreur: «glLoadName" was not declared in this scope
AnimationView.cpp:392: erreur: «glColor4f" was not declared in this scope
AnimationView.cpp:394: erreur: «glColor4f" was not declared in this scope
AnimationView.cpp:396: erreur: «glColor4f" was not declared in this scope
AnimationView.cpp:398: erreur: «glColor4f" was not declared in this scope
AnimationView.cpp:400: erreur: «glColor4f" was not declared in this scope
AnimationView.cpp:402: erreur: «GL_CURRENT_COLOR" was not declared in this scope
AnimationView.cpp:402: erreur: «glGetFloatv" was not declared in this scope
AnimationView.cpp:403: erreur: «glColor4f" was not declared in this scope
AnimationView.cpp:410: erreur: «glPopMatrix" was not declared in this scope
AnimationView.cpp: In member function «void AnimationView::drawCircle(int, float, int)":
AnimationView.cpp:416: erreur: «GLint" was not declared in this scope
AnimationView.cpp:416: erreur: expected `;' before «circle_points"
AnimationView.cpp:419: erreur: «glLineWidth" was not declared in this scope
AnimationView.cpp:421: erreur: «glColor4f" was not declared in this scope
AnimationView.cpp:425: erreur: «GL_LINE_LOOP" was not declared in this scope
AnimationView.cpp:425: erreur: «glBegin" was not declared in this scope
AnimationView.cpp:426: erreur: «circle_points" was not declared in this scope
AnimationView.cpp:429: erreur: «glVertex3f" was not declared in this scope
AnimationView.cpp:434: erreur: «glEnd" was not declared in this scope
AnimationView.cpp:435: erreur: «GL_LINES" was not declared in this scope
AnimationView.cpp:437: erreur: «glVertex3f" was not declared in this scope
make: *** [AnimationView.o] Erreur 1
pat@ordi:~/avimator/avimator-0.4.1$
Je te remercie pour ton aide, mais je crois que je vais abandonner, ça devient une usine et je ne veux pas abuser.
Merci beaucoup.
#10 Le 25/02/2008, à 19:25
- slasher_fun
Re : Compilation avimator
Rho on va bien y arriver hein
sudo cp /usr/include/FL/Fl.H /usr/include/FL/Fl.h
sudo apt-get install libglu-dev
Hors ligne
#11 Le 25/02/2008, à 19:45
- Paty
Re : Compilation avimator
Rho on va bien y arriver hein
sudo cp /usr/include/FL/Fl.H /usr/include/FL/Fl.h sudo apt-get install libglu-dev
Merci beaucoup,
J'ai eu ces erreurs
pat@ordi:~/avimator/avimator-0.4.1$ make
g++ -I/usr/include `fltk-config --cflags` -Ilibquat -DMINGW -c AnimationView.cpp
g++ -I/usr/include `fltk-config --cflags` -Ilibquat -DMINGW -c Animation.cpp
g++ -I/usr/include `fltk-config --cflags` -Ilibquat -DMINGW -c Camera.cpp
g++ -I/usr/include `fltk-config --cflags` -Ilibquat -DMINGW -c SLPartsMale.cpp
g++ -I/usr/include `fltk-config --cflags` -Ilibquat -DMINGW -c SLPartsFemale.cpp
g++ -I/usr/include `fltk-config --cflags` -Ilibquat -DMINGW -c Math3D.cpp
g++ -I/usr/include `fltk-config --cflags` -Ilibquat -DMINGW -c IKTree.cpp
IKTree.cpp:26:19: erreur: FL/GL.h : Aucun fichier ou répertoire de ce type
IKTree.cpp:27:21: erreur: FL/glut.h : Aucun fichier ou répertoire de ce type
make: *** [IKTree.o] Erreur 1
pat@ordi:~/avimator/avimator-0.4.1$
J'ai tenté ceci pour corriger
pat@ordi:~/avimator/avimator-0.4.1$ sudo cp /usr/include/FL/glut.H /usr/include/FL/glut.h
pat@ordi:~/avimator/avimator-0.4.1$
Pas de soucis pour celui-la, mais par contre pour le second
pat@ordi:~/avimator/avimator-0.4.1$ sudo cp /usr/include/FL/GL.H /usr/include/FL/GL.h
cp: ne peut évaluer `/usr/include/FL/GL.H': Aucun fichier ou répertoire de ce type
pat@ordi:~/avimator/avimator-0.4.1$
Je vais tourner en bourrique
#12 Le 25/02/2008, à 19:48
- slasher_fun
Re : Compilation avimator
Presque
sudo cp /usr/include/FL/gl.h /usr/include/FL/GL.h
Hors ligne
#13 Le 25/02/2008, à 19:57
- Paty
Re : Compilation avimator
Presque
sudo cp /usr/include/FL/gl.h /usr/include/FL/GL.h
Oui, effectivement
Et il y en a touours
pat@ordi:~/avimator/avimator-0.4.1$ make
g++ -I/usr/include `fltk-config --cflags` -Ilibquat -DMINGW -c IKTree.cpp
g++ -I/usr/include `fltk-config --cflags` -Ilibquat -DMINGW -c glm.cpp
g++ -I/usr/include `fltk-config --cflags` -Ilibquat -DMINGW -c bvh.cpp
CC="g++" CFLAGS="-I/usr/include `fltk-config --cflags` -Ilibquat -DMINGW" make -C libquat
make[1]: entrant dans le répertoire « /home/pat/avimator/avimator-0.4.1/libquat »
g++ -I/usr/include -Ilibquat -DMINGW -I. -Wno-deprecated -c MEM_RefCountedC-Api.cpp
g++ -I/usr/include -Ilibquat -DMINGW -I. -Wno-deprecated -c MT_Assert.cpp
g++ -I/usr/include -Ilibquat -DMINGW -I. -Wno-deprecated -c MT_CmMatrix4x4.cpp
g++ -I/usr/include -Ilibquat -DMINGW -I. -Wno-deprecated -c MT_ExpMap.cpp
g++ -I/usr/include -Ilibquat -DMINGW -I. -Wno-deprecated -c MT_Matrix3x3.cpp
g++ -I/usr/include -Ilibquat -DMINGW -I. -Wno-deprecated -c MT_Matrix4x4.cpp
g++ -I/usr/include -Ilibquat -DMINGW -I. -Wno-deprecated -c MT_Plane3.cpp
g++ -I/usr/include -Ilibquat -DMINGW -I. -Wno-deprecated -c MT_Point3.cpp
g++ -I/usr/include -Ilibquat -DMINGW -I. -Wno-deprecated -c MT_Quaternion.cpp
g++ -I/usr/include -Ilibquat -DMINGW -I. -Wno-deprecated -c MT_Transform.cpp
g++ -I/usr/include -Ilibquat -DMINGW -I. -Wno-deprecated -c MT_Vector2.cpp
g++ -I/usr/include -Ilibquat -DMINGW -I. -Wno-deprecated -c MT_Vector3.cpp
g++ -I/usr/include -Ilibquat -DMINGW -I. -Wno-deprecated -c MT_Vector4.cpp
g++ -I/usr/include -Ilibquat -DMINGW -I. -Wno-deprecated -c MT_random.cpp
ar r libquat.a *.o
ar: creating libquat.a
ranlib libquat.a
make[1]: quittant le répertoire « /home/pat/avimator/avimator-0.4.1/libquat »
g++ -I/usr/include `fltk-config --cflags` -Ilibquat -DMINGW -O3 -o avimator *.o -L/mingw/lib -L/lib -Llibquat `fltk-config --ldflags` -lfltk_images -lfltk_gl -lfltk_png -lquat -lfltk_z -lm -lopengl32 -lglu32 -lglut32
/usr/bin/ld: cannot find -lfltk_png
collect2: ld a retourné 1 code d'état d'exécution
make: *** [avimator] Erreur 1
pat@ordi:~/avimator/avimator-0.4.1$
Ce ne doit plus etre un problème de majuscule / minuscule, non....
#14 Le 25/02/2008, à 20:00
- slasher_fun
Re : Compilation avimator
Euh là jvois po...
Hors ligne
#15 Le 25/02/2008, à 20:07
- Paty
Re : Compilation avimator
Euh là jvois po...
Je te remercie enormément pour ton aide.
Je pense que je vais prendre mon dico d'anglais et écrire un mail (très gentil je rassure) sur le site officiel pour qu'ils donnent un mode d'emploi.
Encore grand merci pour ton aide et ta patience avec moi.
#16 Le 18/03/2008, à 17:20
- mslagmu
Re : Compilation avimator
En fait il faut télécharger le paquet libglut3-dev
sudo apt-get install libglut3-dev
Ensuite il faut modifier le Makefile.
Au début du fichier
#MINGW = 1
LINUX = 1
#MACOSX = 1
et dans la liste des librairies enlever -lfltk_png
ifdef LINUX
ROOT = /usr
CC = g++
CFLAGS=`fltk-config --cflags` -Ilibquat -DLINUX
#LIBS=-L$(ROOT)/lib -Llibquat `fltk-config --ldflags` -lfltk_images -lfltk_gl -lfltk_png -lquat -lz -lm $(GL_LIBS)
LIBS=-L$(ROOT)/lib -Llibquat `fltk-config --ldflags` -lfltk_images -lfltk_gl -lquat -lz -lm $(GL_LIBS)
GL_LIBS = -lGL -lGLU -lglut
endif
refaire un dernier make et normalement ça marche
Hors ligne
Pages : 1