← retour à la page principale du projet
Rapport du lundi 1er août 2005

Matin:
Notes des erreurs diverses:
Je viens de remarquer que le programme ne compilait plus sous Mandriva 10.1:
bash-2.05b$ make
qmake -o MakefileCosme cosme.pro
test -d obj/ || mkdir -p obj
make -f MakefileCosme
make[1]: Entering directory `/users/invites/reant/ProjetCosme/cosme'
/usr/lib/qt3//bin/uic src/opentooldialog.ui -o src/opentooldialog.h
uic: File generated with too recent version of Qt Designer (3.3 vs. 3.2.3)
make[1]: *** [src/opentooldialog.h] Erreur 1
make[1]: Leaving directory `/users/invites/reant/ProjetCosme/cosme'
make: *** [app] Erreur 2
Cela vient du fait que j'ai généré le fichier opentooldialog.ui avec le QtDesigner de version 3.3.4 (livré en standard avec Mandriva 10.2), qui n'est apparemment pas interprétable par la version 3.2.3 de Qt (livrée en standard avec Mandrake 10.1). S'il était réellement nécessaire de faire tourner ce programme avec une version plus ancienne de Qt, on pourrait alors refaire le fichier opentooldialog.ui avec le QtDesigner de la bonne version, & garder le fichier opentooldialog.ui.h tel quel. Je suppose que les versions ultérieures (Qt4, donc, probablement disponible dans la version 10.3 2006 de Mandriva), seront rétro-compatibles avec les anciens fichiers .ui; mais Qt4 devrait apporter d'autres problèmes de compatibilité au niveau du code même qu'il faudra probablement corriger un par un le jour où cela s'avèrera nécessaire.
J'ai tenté de mettre à jour les packages de la 10.1 avec l'aide de Jean-Charles (via urpmi.update -a-c, qui nous a d'ailleurs posé pas mal de problèmes à cause du fait qu'un dossier n'existait pas), sans succès. De toute façon, cela n'aurait pas servi à grand chose, car cela n'aurait fait que mettre à jour Qt3 3.2.3 vers cette même version corrigée.
Je suis donc passé sur les ordinateurs Mandriva 10.2 fraichement installés par Jean-Charles. J'ai installé la bonne résolution d'écran (1280 x 1024).
J'ai ensuite retenté d'installer cosme.
bash-3.00$ make
qmake -o MakefileCosme cosme.pro
test -d obj/ || mkdir -p obj
make -f MakefileCosme
make[1]: Entering directory `/users/invites/reant/ProjetCosme/cosme'
/usr/lib/qt3//bin/uic src/opentooldialog.ui -o src/opentooldialog.h
g++ -c -pipe -Wall -W -O2 -fomit-frame-pointer -pipe -march=i586 -mtune=pentiumpro  -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt3/mkspecs/default -I. -I/usr/lib/qt3//include -o obj/cosme.o src/cosme.cpp
In file included from src/cosme.h:37,
                 from src/cosme.cpp:35:
src/ring.h:48:40: Inventor/nodes/SoSeparator.h: No such file or directory
src/ring.h:49:40: Inventor/nodes/SoTransform.h: No such file or directory
src/ring.h:50:39: Inventor/nodes/SoCylinder.h: No such file or directory
src/ring.h:51:39: Inventor/nodes/SoMaterial.h: No such file or directory
src/ring.h:52:43: Inventor/sensors/SoNodeSensor.h: No such file or directory
src/ring.h:53:51: Inventor/draggers/SoTranslate1Dragger.h: No such file or directory
In file included from src/cosme.h:37,
                 from src/cosme.cpp:35:
src/ring.h:106: error: expected `;' before '(' token
src/ring.h:132: error: ISO C++ forbids declaration of `SoSeparator' with no type
src/ring.h:132: error: expected `;' before '*' token
src/ring.h:134: error: expected `;' before "Ring"
src/ring.h:156: error: ISO C++ forbids declaration of `SoSeparator' with no type
src/ring.h:156: error: expected `;' before '*' token
src/ring.h:158: error: ISO C++ forbids declaration of `SoSeparator' with no type
src/ring.h:158: error: expected `;' before '*' token
src/ring.h:159: error: ISO C++ forbids declaration of `SoCylinder' with no type
src/ring.h:159: error: expected `;' before '*' token
src/ring.h:160: error: ISO C++ forbids declaration of `SoTransform' with no type
src/ring.h:160: error: expected `;' before '*' token
src/ring.h:162: error: ISO C++ forbids declaration of `SoTranslate1Dragger' with no type
src/ring.h:162: error: expected `;' before '*' token
src/ring.h:163: error: ISO C++ forbids declaration of `SoTranslate1Dragger' with no type
src/ring.h:163: error: expected `;' before '*' token
src/ring.h:164: error: ISO C++ forbids declaration of `SoTranslate1Dragger' with no type
src/ring.h:164: error: expected `;' before '*' token
src/ring.h:166: error: ISO C++ forbids declaration of `SoMaterial' with no type
src/ring.h:166: error: expected `;' before '*' token
src/ring.h:167: error: ISO C++ forbids declaration of `SoMaterial' with no type
src/ring.h:167: error: expected `;' before '*' token
src/ring.h:169: error: ISO C++ forbids declaration of `SoSeparator' with no type
src/ring.h:169: error: expected `;' before '*' token
src/ring.h:170: error: ISO C++ forbids declaration of `SoSeparator' with no type
src/ring.h:170: error: expected `;' before '*' token
src/ring.h:172: error: ISO C++ forbids declaration of `SoSeparator' with no type
src/ring.h:172: error: expected `;' before '*' token
src/ring.h:173: error: ISO C++ forbids declaration of `SoSeparator' with no type
src/ring.h:173: error: expected `;' before '*' token
src/ring.h:175: error: ISO C++ forbids declaration of `SoSeparator' with no type
src/ring.h:175: error: expected `;' before '*' token
src/ring.h:176: error: ISO C++ forbids declaration of `SoSeparator' with no type
src/ring.h:176: error: expected `;' before '*' token
In file included from src/cosme.cpp:35:
src/cosme.h:40:30: Inventor/Qt/SoQt.h: No such file or directory
src/cosme.h:41:52: Inventor/Qt/viewers/SoQtExaminerViewer.h: No such file or directory
src/cosme.h:42:39: Inventor/fields/SoSFFloat.h: No such file or directory
src/cosme.h:43:44: Inventor/nodes/SoEventCallback.h: No such file or directory
src/cosme.h:44:31: Inventor/SbLinear.h: No such file or directory
src/cosme.h:46:42: Inventor/nodes/SoTranslation.h: No such file or directory
src/cosme.h:47:50: Inventor/draggers/SoDragPointDragger.h: No such file or directory
src/cosme.h:48:51: Inventor/draggers/SoCenterballDragger.h: No such file or directory
src/cosme.h:57:35: Inventor/nodes/SoFile.h: No such file or directory
In file included from src/cosme.cpp:35:
src/cosme.h:59: error: `SoEventCallback' has not been declared
src/cosme.h:59: error: ISO C++ forbids declaration of `parameter' with no type
src/cosme.h:119: error: `SbVec3f' does not name a type
src/cosme.h:120: error: `SbVec3f' does not name a type
src/cosme.h:121: error: `SbVec3f' does not name a type
src/cosme.h:133: error: `SoEventCallback' has not been declared
src/cosme.h:133: error: ISO C++ forbids declaration of `ev' with no type
src/cosme.h:144: error: `SbBox3f' does not name a type
src/cosme.h:145: error: `SoSeparator' has not been declared
src/cosme.h:145: error: ISO C++ forbids declaration of `parameter' with no type
src/cosme.h:147: error: ISO C++ forbids declaration of `SoDragPointDragger' with no type
src/cosme.h:147: error: expected `;' before '*' token
src/cosme.h:155: error: `SbVec3f' does not name a type
src/cosme.h:157: error: ISO C++ forbids declaration of `SoQtExaminerViewer' with no type
src/cosme.h:157: error: expected `;' before '*' token
src/cosme.h:159: error: ISO C++ forbids declaration of `SoSeparator' with no type
src/cosme.h:159: error: expected `;' before '*' token
src/cosme.h:163: error: ISO C++ forbids declaration of `SoSeparator' with no type
src/cosme.h:163: error: expected `;' before '*' token
src/cosme.h:165: error: ISO C++ forbids declaration of `SoCamera' with no type
src/cosme.h:165: error: expected `;' before '*' token
src/cosme.h:167: error: ISO C++ forbids declaration of `SoSeparator' with no type
src/cosme.h:167: error: expected `;' before '*' token
src/cosme.h:168: error: ISO C++ forbids declaration of `SoEventCallback' with no type
src/cosme.h:168: error: expected `;' before '*' token
src/cosme.h:169: error: ISO C++ forbids declaration of `SoEventCallback' with no type
src/cosme.h:169: error: expected `;' before '*' token
src/cosme.h:171: error: ISO C++ forbids declaration of `SoSeparator' with no type
src/cosme.h:171: error: expected `;' before '*' token
src/cosme.h:172: error: ISO C++ forbids declaration of `SoSeparator' with no type
src/cosme.h:172: error: expected `;' before '*' token
src/cosme.h:173: error: ISO C++ forbids declaration of `SoSeparator' with no type
src/cosme.h:173: error: expected `;' before '*' token
src/cosme.h:174: error: ISO C++ forbids declaration of `SoTranslation' with no type
src/cosme.h:174: error: expected `;' before '*' token
src/cosme.h:175: error: ISO C++ forbids declaration of `SoTransform' with no type
src/cosme.h:175: error: expected `;' before '*' token
src/cosme.h:177: error: ISO C++ forbids declaration of `SoSeparator' with no type
src/cosme.h:177: error: expected `;' before '*' token
src/cosme.h:178: error: ISO C++ forbids declaration of `SoSFFloat' with no type
src/cosme.h:178: error: expected `;' before '*' token
src/cosme.h:180: error: ISO C++ forbids declaration of `SoSeparator' with no type
src/cosme.h:180: error: expected `;' before '*' token
src/cosme.h:183: error: `SoSeparator' was not declared in this scope
src/cosme.h:183: error: template argument 2 is invalid
src/cosme.h:183: error: template argument 4 is invalid
src/cosme.h:183: error: `SoSeparator' was not declared in this scope
src/cosme.h:183: error: template argument 2 is invalid
src/cosme.h:183: error: template argument 4 is invalid
src/cosme.h:183: error: `SoSeparator' was not declared in this scope
src/cosme.h:183: error: template argument 2 is invalid
src/cosme.h:183: error: template argument 4 is invalid
src/cosme.h:183: error: `SoSeparator' was not declared in this scope
src/cosme.h:183: error: template argument 2 is invalid
src/cosme.h:183: error: template argument 4 is invalid
src/cosme.h:183: error: `SoSeparator' was not declared in this scope
src/cosme.h:183: error: template argument 2 is invalid
src/cosme.h:183: error: template argument 4 is invalid
src/cosme.h:183: error: using-declaration for non-member at class scope
src/cosme.h:183: error: expected `;' before '<' token
src/cosme.h:184: error: ISO C++ forbids declaration of `SoSeparator' with no type
src/cosme.h:184: error: expected `;' before '*' token
src/cosme.h:190: error: ISO C++ forbids declaration of `SoSeparator' with no type
src/cosme.h:190: error: expected `;' before '*' token
src/cosme.h:192: error: ISO C++ forbids declaration of `SoCamera' with no type
src/cosme.h:192: error: expected `;' before '*' token
src/cosme.h:193: error: ISO C++ forbids declaration of `SoSeparator' with no type
src/cosme.h:193: error: expected `;' before '*' token
src/cosme.cpp:61:36: Inventor/SoInteraction.h: No such file or directory
src/cosme.cpp:62:36: Inventor/SoPickedPoint.h: No such file or directory
src/cosme.cpp:63:27: Inventor/SoDB.h: No such file or directory
src/cosme.cpp:65:36: Inventor/nodes/SoGroup.h: No such file or directory
src/cosme.cpp:66:48: Inventor/nodes/SoPerspectiveCamera.h: No such file or directory
src/cosme.cpp:68:36: Inventor/nodes/SoArray.h: No such file or directory
src/cosme.cpp:69:47: Inventor/nodes/SoDirectionalLight.h: No such file or directory
src/cosme.cpp:70:37: Inventor/fields/SoField.h: No such file or directory
src/cosme.cpp:71:29: Inventor/SoPath.h: No such file or directory
src/cosme.cpp:72:48: Inventor/events/SoMouseButtonEvent.h: No such file or directory
src/cosme.cpp:73:45: Inventor/events/SoKeyboardEvent.h: No such file or directory
src/cosme.cpp:74:45: Inventor/actions/SoSearchAction.h: No such file or directory
src/cosme.cpp:75:46: Inventor/actions/SoRayPickAction.h: No such file or directory
src/cosme.cpp:76:46: Inventor/manips/SoTransformManip.h: No such file or directory
src/cosme.cpp:77:46: Inventor/manips/SoTrackballManip.h: No such file or directory
src/cosme.cpp:78:47: Inventor/manips/SoCenterballManip.h: No such file or directory
src/cosme.cpp:80:51: Inventor/draggers/SoTranslate2Dragger.h: No such file or directory
src/cosme.cpp:81:28: Inventor/SbBox.h: No such file or directory
src/cosme.cpp:82:39: Inventor/SbViewportRegion.h: No such file or directory
src/cosme.cpp:83:53: Inventor/actions/SoGetBoundingBoxAction.h: No such file or directory
src/cosme.cpp:84:39: Inventor/sensors/SoSensor.h: No such file or directory
src/cosme.cpp:107:48: Inventor/actions/SoGetMatrixAction.h: No such file or directory
src/cosme.cpp:125: error: `SbVec3f' does not name a type
src/cosme.cpp:126: error: `SbVec3f' does not name a type
src/cosme.cpp:127: error: `SbVec3f' does not name a type
src/cosme.cpp:154: error: expected constructor, destructor, or type conversion before '*' token
src/cosme.cpp:154: error: expected `,' or `;' before '*' token
src/cosme.cpp:170: error: expected constructor, destructor, or type conversion before '*' token
src/cosme.cpp:170: error: expected `,' or `;' before '*' token
src/cosme.cpp:229: error: `SbBox3f' does not name a type
src/cosme.cpp: In member function `void Cosme::setToolInitialPositionOutsideOrgan()':
src/cosme.cpp:243: error: 'class Cosme' has no member named 'organ'
src/cosme.cpp:245: error: `SbBox3f' undeclared (first use this function)
src/cosme.cpp:245: error: (Each undeclared identifier is reported only once for each function it appears in.)
src/cosme.cpp:245: error: expected `;' before "organBox"
src/cosme.cpp:246: error: `SbVec3f' undeclared (first use this function)
src/cosme.cpp:246: error: expected `;' before "max"
src/cosme.cpp:247: error: 'class Cosme' has no member named 'topToolTranslation'
src/cosme.cpp:247: error: `max' undeclared (first use this function)
src/cosme.cpp: In constructor `Cosme::Cosme()':
src/cosme.cpp:332: error: `SoQt' has not been declared
src/cosme.cpp:332: error: `init' undeclared (first use this function)
src/cosme.cpp:335: error: `viewer' undeclared (first use this function)
src/cosme.cpp:335: error: `SoQtExaminerViewer' has not been declared
src/cosme.cpp:337: error: `SoDB' has not been declared
src/cosme.cpp:337: error: `isInitialized' undeclared (first use this function)
src/cosme.cpp:338: error: `SoDB' has not been declared
src/cosme.cpp:341: error: `root' undeclared (first use this function)
src/cosme.cpp:341: error: `SoSeparator' has not been declared
src/cosme.cpp:342: error: `scene' undeclared (first use this function)
src/cosme.cpp:342: error: `SoSeparator' has not been declared
src/cosme.cpp:344: error: `containCB' undeclared (first use this function)
src/cosme.cpp:344: error: `SoSeparator' has not been declared
src/cosme.cpp:345: error: `rotationCB' undeclared (first use this function)
src/cosme.cpp:345: error: `SoEventCallback' has not been declared
src/cosme.cpp:346: error: `translationCB' undeclared (first use this function)
src/cosme.cpp:346: error: `SoEventCallback' has not been declared
src/cosme.cpp:348: error: `geometryObjects' undeclared (first use this function)
src/cosme.cpp:348: error: `SoSeparator' has not been declared
src/cosme.cpp:350: error: `containTool' undeclared (first use this function)
src/cosme.cpp:350: error: `SoSeparator' has not been declared
src/cosme.cpp:351: error: `topToolTranslation' undeclared (first use this function)
src/cosme.cpp:351: error: `SoTranslation' has not been declared
src/cosme.cpp:352: error: `manipulatorTransform' undeclared (first use this function)
src/cosme.cpp:352: error: `SoTransform' has not been declared
src/cosme.cpp:353: error: `tool' undeclared (first use this function)
src/cosme.cpp:353: error: `SoSeparator' has not been declared
src/cosme.cpp:355: error: `containDragger' undeclared (first use this function)
src/cosme.cpp:355: error: `SoSeparator' has not been declared
src/cosme.cpp:357: error: `organ' undeclared (first use this function)
src/cosme.cpp:357: error: `SoSeparator' has not been declared
src/cosme.cpp:358: error: `timeline' undeclared (first use this function)
src/cosme.cpp:358: error: `SoSeparator' has not been declared
src/cosme.cpp:359: error: `cameraSc' undeclared (first use this function)
src/cosme.cpp:359: error: `SoPerspectiveCamera' has not been declared
src/cosme.cpp:360: error: `cameraTl' undeclared (first use this function)
src/cosme.cpp:360: error: `SoPerspectiveCamera' has not been declared
src/cosme.cpp:361: error: `toolAngle' undeclared (first use this function)
src/cosme.cpp:361: error: `SoSFFloat' has not been declared
src/cosme.cpp:383: error: `SoEventCallback' undeclared (first use this function)
src/cosme.cpp:383: error: `ecb' undeclared (first use this function)
src/cosme.cpp:383: error: `SoEventCallback' has not been declared
src/cosme.cpp:384: error: `SoMouseButtonEvent' has not been declared
src/cosme.cpp:384: error: `getClassTypeId' undeclared (first use this function)
src/cosme.cpp:391: error: `SoTransform' undeclared (first use this function)
src/cosme.cpp:391: error: `tl_transform' undeclared (first use this function)
src/cosme.cpp:391: error: `SoTransform' has not been declared
src/cosme.cpp:394: error: `tl_base' undeclared (first use this function)
src/cosme.cpp:394: error: `SoSeparator' has not been declared
src/cosme.cpp:397: error: `tl_base_trans' undeclared (first use this function)
src/cosme.cpp:397: error: `SoTransform' has not been declared
src/cosme.cpp:401: error: `SoMaterial' undeclared (first use this function)
src/cosme.cpp:401: error: `tl_material' undeclared (first use this function)
src/cosme.cpp:401: error: `SoMaterial' has not been declared
src/cosme.cpp:405: error: `SoCylinder' undeclared (first use this function)
src/cosme.cpp:405: error: `tl_cyl' undeclared (first use this function)
src/cosme.cpp:405: error: `SoCylinder' has not been declared
src/cosme.cpp:412: error: 'class Ring' has no member named 'getNode'
src/cosme.cpp:416: error: 'class Ring' has no member named 'getNode'
src/cosme.cpp:419: error: `SbVec3f' undeclared (first use this function)
src/cosme.cpp: In destructor `virtual Cosme::~Cosme()':
src/cosme.cpp:449: error: `root' undeclared (first use this function)
src/cosme.cpp:450: error: `viewer' undeclared (first use this function)
src/cosme.cpp:451: error: `toolAngle' undeclared (first use this function)
src/cosme.cpp:453: error: `SoQt' has not been declared
src/cosme.cpp:453: error: `done' undeclared (first use this function)
src/cosme.cpp: At global scope:
src/cosme.cpp:461: error: `SoSeparator' has not been declared
src/cosme.cpp:462: error: ISO C++ forbids declaration of `sep' with no type
src/cosme.cpp: In member function `void Cosme::import(QString, int*, std::string)':
src/cosme.cpp:463: error: `SoInput' undeclared (first use this function)
src/cosme.cpp:463: error: expected `;' before "in"
src/cosme.cpp:464: error: `in' undeclared (first use this function)
src/cosme.cpp:466: error: `SoSeparator' undeclared (first use this function)
src/cosme.cpp:466: error: `t' undeclared (first use this function)
src/cosme.cpp:466: error: `SoDB' has not been declared
src/cosme.cpp:466: error: `readAll' undeclared (first use this function)
src/cosme.cpp:470: error: `listTools' is not a member of `Cosme'
src/cosme.cpp:478: error: request for member `addChild' in `*sep', which is of non-class type `int'
src/cosme.cpp:481: error: `tool' is not a member of `Cosme'
src/cosme.cpp:485: error: `listTools' is not a member of `Cosme'
src/cosme.cpp:488: error: `activeTool' undeclared (first use this function)
src/cosme.cpp:491: error: `organ' is not a member of `Cosme'
src/cosme.cpp:498: error: `cameraSc' undeclared (first use this function)
src/cosme.cpp:498: error: `root' undeclared (first use this function)
src/cosme.cpp:498: error: `viewer' undeclared (first use this function)
src/cosme.cpp: In member function `void Cosme::importToolBis(std::string, std::string)':
src/cosme.cpp:525: error: `SoDB' has not been declared
src/cosme.cpp:525: error: `SbName' undeclared (first use this function)
src/cosme.cpp:525: error: `getGlobalField' undeclared (first use this function)
src/cosme.cpp:526: error: `SoDB' has not been declared
src/cosme.cpp:526: error: `renameGlobalField' undeclared (first use this function)
src/cosme.cpp:528: error: `tool' undeclared (first use this function)
src/cosme.cpp:530: error: `SoField' undeclared (first use this function)
src/cosme.cpp:530: error: `angle' undeclared (first use this function)
src/cosme.cpp:531: error: `SoDB' has not been declared
src/cosme.cpp:532: error: `toolAngle' undeclared (first use this function)
src/cosme.cpp: In member function `void Cosme::importOrgan()':
src/cosme.cpp:555: error: `organ' undeclared (first use this function)
src/cosme.cpp: In member function `void Cosme::importDefaultObjects()':
src/cosme.cpp:572: error: `organ' undeclared (first use this function)
src/cosme.cpp:577: error: `SoDB' has not been declared
src/cosme.cpp:577: error: `SbName' undeclared (first use this function)
src/cosme.cpp:577: error: `getGlobalField' undeclared (first use this function)
src/cosme.cpp:578: error: `SoDB' has not been declared
src/cosme.cpp:578: error: `renameGlobalField' undeclared (first use this function)
src/cosme.cpp:579: error: `tool' undeclared (first use this function)
src/cosme.cpp:580: error: `SoField' undeclared (first use this function)
src/cosme.cpp:580: error: `angle' undeclared (first use this function)
src/cosme.cpp:581: error: `SoDB' has not been declared
src/cosme.cpp:582: error: `toolAngle' undeclared (first use this function)
src/cosme.cpp: At global scope:
src/cosme.cpp:591: error: `SoEventCallback' has not been declared
src/cosme.cpp:592: error: ISO C++ forbids declaration of `ev' with no type
src/cosme.cpp: In static member function `static void Cosme::eventCB(void*, int*)':
src/cosme.cpp:597: error: expected primary-expression before "const"
src/cosme.cpp:597: error: expected `;' before "const"
src/cosme.cpp:600: error: `mbe' undeclared (first use this function)
src/cosme.cpp:600: error: `SoMouseButtonEvent' has not been declared
src/cosme.cpp:600: error: `BUTTON4' undeclared (first use this function)
src/cosme.cpp:602: error: 'class Cosme' has no member named 'toolAngle'
src/cosme.cpp:603: error: 'class Cosme' has no member named 'toolAngle'
src/cosme.cpp:606: error: `SoMouseButtonEvent' has not been declared
src/cosme.cpp:606: error: `BUTTON5' undeclared (first use this function)
src/cosme.cpp:608: error: 'class Cosme' has no member named 'toolAngle'
src/cosme.cpp:609: error: 'class Cosme' has no member named 'toolAngle'
src/cosme.cpp:612: error: `SoMouseButtonEvent' has not been declared
src/cosme.cpp:612: error: `BUTTON2' undeclared (first use this function)
src/cosme.cpp:614: error: `SoRayPickAction' undeclared (first use this function)
src/cosme.cpp:614: error: expected `;' before "rp"
src/cosme.cpp:615: error: `rp' undeclared (first use this function)
src/cosme.cpp:616: error: 'class Cosme' has no member named 'timeline'
src/cosme.cpp:618: error: `SoPickedPoint' undeclared (first use this function)
src/cosme.cpp:618: error: `picked_pt' undeclared (first use this function)
src/cosme.cpp:622: error: `SoPath' undeclared (first use this function)
src/cosme.cpp:622: error: `path' undeclared (first use this function)
src/cosme.cpp:623: error: 'class Cosme' has no member named 'lastClickedPos'
src/cosme.cpp:626: error: `SbVec2s' undeclared (first use this function)
src/cosme.cpp:626: error: expected `;' before "mouse_pos"
src/cosme.cpp:631: error: `SoNode' undeclared (first use this function)
src/cosme.cpp:631: error: expected primary-expression before ')' token
src/cosme.cpp:652: error: `mouse_pos' undeclared (first use this function)
src/cosme.cpp:658: error: `getRing' is not a member of `Ring'
src/cosme.cpp:697: error: `SoMouseButtonEvent' has not been declared
src/cosme.cpp:697: error: `BUTTON1' undeclared (first use this function)
src/cosme.cpp:699: error: expected `;' before "rp"
src/cosme.cpp:701: error: 'class Cosme' has no member named 'scene'
src/cosme.cpp:708: error: 'class Cosme' has no member named 'lastClickedPos'
src/cosme.cpp:711: error: expected `;' before "mouse_pos"
src/cosme.cpp:716: error: expected primary-expression before ')' token
src/cosme.cpp: In member function `void Cosme::matrixButtonClicked()':
src/cosme.cpp:737: error: `SoGetMatrixAction' undeclared (first use this function)
src/cosme.cpp:737: error: `action' undeclared (first use this function)
src/cosme.cpp:740: error: `manipulatorTransform' undeclared (first use this function)
src/cosme.cpp:744: error: `SbMatrix' undeclared (first use this function)
src/cosme.cpp:744: error: expected `;' before "transformation"
src/cosme.cpp:754: error: `SbVec3f' undeclared (first use this function)
src/cosme.cpp:754: error: expected `;' before "translation"
src/cosme.cpp:755: error: `SbRotation' undeclared (first use this function)
src/cosme.cpp:755: error: expected `;' before "rotation"
src/cosme.cpp:756: error: expected `;' before "scalevector"
src/cosme.cpp:757: error: expected `;' before "scaleorientation"
src/cosme.cpp:758: error: `transformation' undeclared (first use this function)
src/cosme.cpp:758: error: `translation' undeclared (first use this function)
src/cosme.cpp:758: error: `rotation' undeclared (first use this function)
src/cosme.cpp:758: error: `scalevector' undeclared (first use this function)
src/cosme.cpp:758: error: `scaleorientation' undeclared (first use this function)
src/cosme.cpp: In member function `void Cosme::setTranslationDragger(bool)':
src/cosme.cpp:1004: error: `SoDragPointDragger' undeclared (first use this function)
src/cosme.cpp:1004: error: `translationDragger' undeclared (first use this function)
src/cosme.cpp:1004: error: expected primary-expression before ')' token
src/cosme.cpp:1004: error: expected `;' before "getNode"
src/cosme.cpp:1005: error: 'class Cosme' has no member named 'containDragger'
src/cosme.cpp:1005: error: `SoNode' undeclared (first use this function)
src/cosme.cpp:1005: error: expected primary-expression before ')' token
src/cosme.cpp:1012: error: `SoDragPointDragger' has not been declared
src/cosme.cpp:1013: error: 'class Cosme' has no member named 'reshapeDragger'
src/cosme.cpp:1014: error: `SbBox3f' undeclared (first use this function)
src/cosme.cpp:1014: error: expected `;' before "box"
src/cosme.cpp:1015: error: `SbVec3f' undeclared (first use this function)
src/cosme.cpp:1015: error: expected `;' before "max"
src/cosme.cpp:1017: error: `max' undeclared (first use this function)
src/cosme.cpp:1019: error: 'class Cosme' has no member named 'containDragger'
src/cosme.cpp:1020: error: `SoDraggerCB' undeclared (first use this function)
src/cosme.cpp:1020: error: expected primary-expression before ')' token
src/cosme.cpp: In member function `void Cosme::setRotationManipulator(bool)':
src/cosme.cpp:1039: error: `SoSearchAction' undeclared (first use this function)
src/cosme.cpp:1039: error: `finder' undeclared (first use this function)
src/cosme.cpp:1039: error: `SoSearchAction' has not been declared
src/cosme.cpp:1046: error: `SoTransformManip' has not been declared
src/cosme.cpp:1046: error: `getClassTypeId' undeclared (first use this function)
src/cosme.cpp:1047: error: 'class Cosme' has no member named 'geometryObjects'
src/cosme.cpp:1049: error: `SoPath' undeclared (first use this function)
src/cosme.cpp:1049: error: `pathToTransformManip' undeclared (first use this function)
src/cosme.cpp:1051: error: `SoNode' undeclared (first use this function)
src/cosme.cpp:1051: error: `tail' undeclared (first use this function)
src/cosme.cpp:1053: error: `SoTransformManip' has not been declared
src/cosme.cpp:1055: error: `SoTransformManip' undeclared (first use this function)
src/cosme.cpp:1055: error: expected primary-expression before ')' token
src/cosme.cpp:1055: error: expected `)' before "tail"
src/cosme.cpp:1062: error: `manipulator' undeclared (first use this function)
src/cosme.cpp:1062: error: `SoTrackballManip' has not been declared
src/cosme.cpp:1063: error: `SoTransform' has not been declared
src/cosme.cpp:1068: error: 'class Cosme' has no member named 'geometryObjects'
src/cosme.cpp:1069: error: `pathToTransform' undeclared (first use this function)
src/cosme.cpp: In member function `void Cosme::setCenterballDragger(bool)':
src/cosme.cpp:1083: error: `SoSearchAction' undeclared (first use this function)
src/cosme.cpp:1083: error: `finder' undeclared (first use this function)
src/cosme.cpp:1083: error: `SoSearchAction' has not been declared
src/cosme.cpp:1087: error: `SoTransformManip' has not been declared
src/cosme.cpp:1087: error: `getClassTypeId' undeclared (first use this function)
src/cosme.cpp:1088: error: 'class Cosme' has no member named 'geometryObjects'
src/cosme.cpp:1090: error: `SoPath' undeclared (first use this function)
src/cosme.cpp:1090: error: `pathToTransformManip' undeclared (first use this function)
src/cosme.cpp:1092: error: `SoNode' undeclared (first use this function)
src/cosme.cpp:1092: error: `tail' undeclared (first use this function)
src/cosme.cpp:1094: error: `SoTransformManip' has not been declared
src/cosme.cpp:1096: error: `SoTransformManip' undeclared (first use this function)
src/cosme.cpp:1096: error: expected primary-expression before ')' token
src/cosme.cpp:1096: error: expected `)' before "tail"
src/cosme.cpp:1102: error: `manipulator' undeclared (first use this function)
src/cosme.cpp:1102: error: `SoCenterballManip' has not been declared
src/cosme.cpp:1103: error: `SoTransform' has not been declared
src/cosme.cpp:1107: error: 'class Cosme' has no member named 'geometryObjects'
src/cosme.cpp:1108: error: `pathToTransform' undeclared (first use this function)
src/cosme.cpp: In static member function `static void Cosme::replaceDraggerCB(void*)':
src/cosme.cpp:1123: error: `SoDragPointDragger' undeclared (first use this function)
src/cosme.cpp:1123: error: `dragger' undeclared (first use this function)
src/cosme.cpp:1123: error: expected primary-expression before ')' token
src/cosme.cpp:1123: error: expected `;' before "getNode"
src/cosme.cpp:1126: error: `SbBox3f' undeclared (first use this function)
src/cosme.cpp:1126: error: expected `;' before "box"
src/cosme.cpp:1127: error: `SbVec3f' undeclared (first use this function)
src/cosme.cpp:1127: error: expected `;' before "max"
src/cosme.cpp:1128: error: expected `;' before "offset"
src/cosme.cpp:1130: error: `offset' undeclared (first use this function)
src/cosme.cpp:1135: error: `SoTransform' undeclared (first use this function)
src/cosme.cpp:1135: error: `transform' undeclared (first use this function)
src/cosme.cpp:1135: error: expected primary-expression before ')' token
src/cosme.cpp:1135: error: expected `;' before "getNode"
src/cosme.cpp:1139: error: `box' undeclared (first use this function)
src/cosme.cpp:1139: error: 'class Cosme' has no member named 'getObjectBoundingBox'
src/cosme.cpp:1139: error: 'class Cosme' has no member named 'containTool'
src/cosme.cpp:1140: error: `max' undeclared (first use this function)
src/cosme.cpp: In member function `void Cosme::insertRing(int)':
src/cosme.cpp:1159: error: `lastClickedPos' undeclared (first use this function)
src/cosme.cpp:1177: error: `timeline' undeclared (first use this function)
src/cosme.cpp:1177: error: 'class Ring' has no member named 'getNode'
src/cosme.cpp: At global scope:
src/cosme.cpp:592: warning: unused parameter 'ev'
make[1]: *** [obj/cosme.o] Erreur 1
make[1]: Leaving directory `/users/invites/reant/ProjetCosme/cosme'
make: *** [app] Erreur 2
Bon, pas de panique, erreurs connues. On installe les bons packages.
bash-3.00$ su
Password:
su: Mot de passe incorrect.
bash-3.00$ su
Password:
[root@goldie cosme]# urpmi soqt
Pour satisfaire les dépendances, les 2 paquetages suivants vont être installés (5 Mo):
libcoin40-2.1.0-2mdk.i586
libsoqt20-1.0.3a-2mdk.i586
Est-ce correct ? (O/n) O

    ftp://ftp-sophia.cma.fr/pub/linux/distributions/Mandrakelinux/official/10.2/i586/media/contrib/libcoin40-2.1.0-2mdk.i586.rpm
    ftp://ftp-sophia.cma.fr/pub/linux/distributions/Mandrakelinux/official/10.2/i586/media/contrib/libsoqt20-1.0.3a-2mdk.i586.rpm
installation de libcoin40-2.1.0-2mdk.i586.rpm libsoqt20-1.0.3a-2mdk.i586.rpm depuis /var/cache/urpmi/rpms
Préparation ...                  #############################################
      1/2: libcoin40             #############################################
      2/2: libsoqt20             #############################################
[root@goldie cosme]# urpmi soqt-devel
Pour satisfaire les dépendances, les 2 paquetages suivants vont être installés (2 Mo):
libcoin40-devel-2.1.0-2mdk.i586
libsoqt20-devel-1.0.3a-2mdk.i586
Est-ce correct ? (O/n) O

    ftp://ftp-sophia.cma.fr/pub/linux/distributions/Mandrakelinux/official/10.2/i586/media/contrib/libcoin40-devel-2.1.0-2mdk.i586.rpm
    ftp://ftp-sophia.cma.fr/pub/linux/distributions/Mandrakelinux/official/10.2/i586/media/contrib/libsoqt20-devel-1.0.3a-2mdk.i586.rpm
installation de libsoqt20-devel-1.0.3a-2mdk.i586.rpm libcoin40-devel-2.1.0-2mdk.i586.rpm depuis /var/cache/urpmi/rpms
Préparation ...                  #############################################
      1/2: libcoin40-devel       #############################################
      2/2: libsoqt20-devel       #############################################
& on refait un make, sans au préalable avoir oublié de sortir du compte root, sinon on obtient cette erreur:
[root@goldie cosme]# make
test -d obj/ || mkdir -p obj
make -f MakefileCosme
make[1]: Entering directory `/users/invites/reant/ProjetCosme/cosme'
g++ -c -pipe -Wall -W -O2 -fomit-frame-pointer -pipe -march=i586 -mtune=pentiumpro  -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt3/mkspecs/default -I. -I/usr/lib/qt3//include -o obj/cosme.o src/cosme.cpp
Assembler messages:
FATAL: can't create obj/cosme.o: Permission denied
make[1]: *** [obj/cosme.o] Erreur 2
make[1]: Leaving directory `/users/invites/reant/ProjetCosme/cosme'
make: *** [app] Erreur 2
On sort donc de root, un make, & tout va bien.
root@goldie cosme]# exit
exit
bash-3.00$ make
test -d obj/ || mkdir -p obj
make -f MakefileCosme
make[1]: Entering directory `/users/invites/reant/ProjetCosme/cosme'
g++ -c -pipe -Wall -W -O2 -fomit-frame-pointer -pipe -march=i586 -mtune=pentiumpro  -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt3/mkspecs/default -I. -I/usr/lib/qt3//include -o obj/cosme.o src/cosme.cpp
src/cosme.cpp: In member function `void Cosme::matrixButtonClicked()':
src/cosme.cpp:737: warning: 'action' might be used uninitialized in this function
g++ -c -pipe -Wall -W -O2 -fomit-frame-pointer -pipe -march=i586 -mtune=pentiumpro  -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt3/mkspecs/default -I. -I/usr/lib/qt3//include -o obj/main.o src/main.cpp
g++ -c -pipe -Wall -W -O2 -fomit-frame-pointer -pipe -march=i586 -mtune=pentiumpro  -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt3/mkspecs/default -I. -I/usr/lib/qt3//include -o obj/ring.o src/ring.cpp
/usr/lib/qt3//bin/uic src/opentooldialog.ui -i opentooldialog.h -o src/opentooldialog.cpp
g++ -c -pipe -Wall -W -O2 -fomit-frame-pointer -pipe -march=i586 -mtune=pentiumpro  -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt3/mkspecs/default -I. -I/usr/lib/qt3//include -o obj/opentooldialog.o src/opentooldialog.cpp
/usr/lib/qt3//bin/moc src/cosme.h -o src/moc_cosme.cpp
g++ -c -pipe -Wall -W -O2 -fomit-frame-pointer -pipe -march=i586 -mtune=pentiumpro  -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt3/mkspecs/default -I. -I/usr/lib/qt3//include -o obj/moc_cosme.o src/moc_cosme.cpp
/usr/lib/qt3//bin/moc src/opentooldialog.h -o src/moc_opentooldialog.cpp
g++ -c -pipe -Wall -W -O2 -fomit-frame-pointer -pipe -march=i586 -mtune=pentiumpro  -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt3/mkspecs/default -I. -I/usr/lib/qt3//include -o obj/moc_opentooldialog.o src/moc_opentooldialog.cpp
test -d bin/ || mkdir -p bin/
g++  -o bin/cosme obj/cosme.o obj/main.o obj/ring.o obj/opentooldialog.o obj/moc_cosme.o obj/moc_opentooldialog.o   -L/usr/lib/qt3//lib -L/usr/X11R6/lib -lCoin -lSoQt -lqt-mt -lXext -lX11 -lm
make[1]: Leaving directory `/users/invites/reant/ProjetCosme/cosme'
cp -f src/scripts_python/*.py bin/
La mâchoire semble avoir un petit problème de conception. Autant les ciseaux sont parfaitement modélisés, autant la mâchoire semble avoir quelques soucis.
D'ailleurs, ce serait sympa qu'Audrey me passe l'outil le plus simple, dont j'ai encore oublié le nom. :-p
Il serait éventuellement possible plus tard d'effectuer un parsing du dossier censé contenir tous les fihciers .t.iv & .o.iv, & de récupérer automatiquement les fichiers, & proposer dans une liste déroulante au lieu d'avoir à sélectionner le fichier manuellement. À voir...
Lors de l'importation d'un outil, le nom de l'outil se remplit maintenant automatiquement. Exemple: /home/gilles/ProjetCosme/cosme/src/objects/ciseaux.t.iv se nomme ciseaux de façon automatique.


Après-midi:
Les types énumérés ne peuvent être statiques en C++. Or, comme la plupart des méthodes le sont (je me demande toujours pourquoi, d'ailleurs), je vais devoir coder salement pour définir mon état en statique... :-\ Merci C++.
On ne peut plus faire planter le programme en demandant la matrice sans avoir chargé d'outil.
Le programme plante quand j'effectue une transformation sur l'objet. Quand je mets le dragger, rien de grave, mais dès que je l'utilise, & que je demande la matrice, alors plantage...
Apparemment, c'est la fonction qui rajouter du texte à la zone de log qui fait planter. Pire, lorsque j'effectue mon déplacement, que je demande la matrice (que j'affiche temporairement sur cout, puisque la zone de log fait planter), & qu'ensuite j'affiche ma zone de log, alors plantage.
Mais si j'ai affiché ma zone de log avant de cliquer sur le bouton matrice, alors rien ne se passe de grave. C'est de la science fiction.
Encore plus bizarre: quand je n'affiche pas ma zone de log, & que je clique sur matrice en ayant au préalable commenté tous les appels à afficher, le programme plante. Si je décommente un des appels, le programme ne plante plus.
J'avoue que sans aide, là, je n'avance réellement plus.
J'ai installé les drivers de ma carte 3D; le résultat est que le programme ne rame plus quand on ouvre la zone de log, & l'affichage est plus fin. Je précise également que le déplacement d'objet est beaucoup plus rapide.
Il m'apparait comme plutôt importantd'installer les drivers spécifiques sur la machine faisant tourner l'application (en particulier sur les machines les moins puissantes), car Open Inventor est parfois gourmant en ressources 3D. Les grands constructeurs de carte 3D & de chipset 3D (ATI, NVidia, Intel, ...) fournissent des drivers Linux pour la plupart de leur produits, accompagnés d'explications compréhensibles. Néanmoins, il n'est pas rare que l'installation elle-même soit un peu compliquée & plus longue que prévue. Il ne faut pas ouvlier de faire des sauvegardes des fichiers modifiés (notamment /etc/X11/xorg.conf). Un peu d'aide peut être cherchée sur les forums d'Internet. Le réglage de l'écran à sa résolution native (maximale) est un luxe qui est le plus souvent très utile, ne serait-ce que pour la fatigue visuelle.

À effectuer prochainement:

Valid XHTML 1.0 Transitional