Quand je compile mon programme opengl sous linux, voila ce que ca m'affiche:
make -k
g++ -O -s opengl.o triangle.o camera.o world.o shape.o sphere.o cylindre.o cone.o paysage.o cube.o union.o box.o exemple.o -o exemple -L/usr/X11R6/lib -lglut -lGLU -lGL -lX11 -lXext -lXmu -lXi
/usr//bin/ld: warning: libSM.so.6, needed by /usr/X11R6/lib/libglut.so, not found (try using -rpath or -rpath-link)
/usr//bin/ld: warning: libICE.so.6, needed by /usr/X11R6/lib/libglut.so, not found (try using -rpath or -rpath-link)
/usr//bin/ld: warning: libXt.so.6, needed by /usr/X11R6/lib/libXmu.so, not found (try using -rpath or -rpath-link)
/usr/X11R6/lib/libXmu.so: undefined reference to `XtDisplayToApplicationContext'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtWarningMsg'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtGetConstraintResourceList'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtGetApplicationResources'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtErrorMsg'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtGetValues'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtOwnSelection'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtCallConverter'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtFree'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtCalloc'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtIsManaged'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtWarning'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtConvertAndStore'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtMalloc'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtAppWarning'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtStringConversionWarning'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtDisplayStringConversionWarning'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtAppSetWarningMsgHandler'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtAppSetTypeConverter'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtGetSelectionValue'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtWindowOfObject'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtCvtStringToFont'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtDestroyWidget'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtName'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtAppWarningMsg'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtGetResourceList'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtResolvePathname'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtRealloc'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtVaSetValues'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtCreateWidget'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtTranslateCoords'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtWidgetToApplicationContext'
/usr/X11R6/lib/libXmu.so: undefined reference to `XtScreenDatabase'
collect2: ld returned 1 exit status
make: *** [exemple] Erreur 1
Compilation exited abnormally with code 2 at Fri May 10 12:32:15
Je sait que ca vient de ma configuration de linux mais je ne sait pas comment la regler.
Si quelqu'un pouvait m'aider, ca serait vraiment magnifique, merci par avance a tous.
Je ne suis pas un expert mais je pense que les fichiers qui te manque sont "libSM.so.6, libICE.so.6 et libXt.so.6".
D'apres ton resultat il semblerait qu'ils sont recherché ds le repertoire /usr//bin/ld. Verifie que les fichiers sus-cité sont present sur ton systeme et note leur chemin. Corrige ensuite le makefile en consequence.
Good Luck...
Trouvez des réponses à vos questions sur l'exploitation du système d'exploitation Windows, les astuces, et les résolutions de problèmes. Rejoignez une communauté de passionnés de Windows pour une utilisation efficace et productive de votre PC.