diff --git a/Test-SFML/arial.ttf b/Test-SFML/arial.ttf new file mode 100644 index 0000000..886789b Binary files /dev/null and b/Test-SFML/arial.ttf differ diff --git a/Test-SFML/main b/Test-SFML/main new file mode 100755 index 0000000..75024f6 Binary files /dev/null and b/Test-SFML/main differ diff --git a/Test-SFML/main.c b/Test-SFML/main.c new file mode 100644 index 0000000..01172cf --- /dev/null +++ b/Test-SFML/main.c @@ -0,0 +1,80 @@ +#include +#include + +/* +Installation : +sudo apt-get install libcsfml-dev + +Commandes : +gcc -c main.c +gcc main.o -o main -lcsfml-graphics -lcsfml-window -lcsfml-audio -lcsfml-system + +opencv : +gcc opencv.c -o opencv `pkg-config --libs --cflags opencv` -ldl -lm + +*/ +#define EXIT_FAILURE 0 +#define EXIT_SUCCESS 1 +int main() +{ + sfVideoMode mode = {800, 600, 32}; + sfRenderWindow* window; + sfTexture* texture; + sfSprite* sprite; + sfFont* font; + sfText* text; + sfMusic* music; + sfEvent event; + /* Create the main window */ + window = sfRenderWindow_create(mode, "SFML window", sfResize | sfClose, NULL); + if (!window) + return EXIT_FAILURE; + /* Load a sprite to display */ + texture = sfTexture_createFromFile("tree.jpeg", NULL); + if (!texture) + return EXIT_FAILURE; + sprite = sfSprite_create(); + sfSprite_setTexture(sprite, texture, sfTrue); + /* Create a graphical text to display */ + font = sfFont_createFromFile("arial.ttf"); + if (!font) + return EXIT_FAILURE; + text = sfText_create(); + sfText_setString(text, "Hello SFML"); + sfText_setFont(text, font); + sfText_setCharacterSize(text, 50); + /* Load a music to play */ + //music = sfMusic_createFromFile("nice_music.ogg"); + if (!music) + return EXIT_FAILURE; + /* Play the music */ + sfMusic_play(music); + /* Start the game loop */ + while (sfRenderWindow_isOpen(window)) + { + /* Process events */ + while (sfRenderWindow_pollEvent(window, &event)) + { + /* Close window : exit */ + if (event.type == sfEvtClosed) + sfRenderWindow_close(window); + } + /* Clear the screen */ + sfRenderWindow_clear(window, sfBlack); + /* Draw the sprite */ + sfRenderWindow_drawSprite(window, sprite, NULL); + /* Draw the text */ + sfRenderWindow_drawText(window, text, NULL); + /* Update the window */ + sfRenderWindow_display(window); + } + /* Cleanup resources */ + sfMusic_destroy(music); + sfText_destroy(text); + sfFont_destroy(font); + sfSprite_destroy(sprite); + sfTexture_destroy(texture); + sfRenderWindow_destroy(window); + return EXIT_SUCCESS; +} + diff --git a/Test-SFML/main.c~ b/Test-SFML/main.c~ new file mode 100644 index 0000000..741802b --- /dev/null +++ b/Test-SFML/main.c~ @@ -0,0 +1,72 @@ +#include +#include + +/*Commandes : +gcc -c main.c +gcc main.o -o main -lcsfml-graphics -lcsfml-window -lcsfml-audio -lcsfml-system + +*/ + +int main() +{ + sfVideoMode mode = {800, 600, 32}; + sfRenderWindow* window; + sfTexture* texture; + sfSprite* sprite; + sfFont* font; + sfText* text; + sfMusic* music; + sfEvent event; + /* Create the main window */ + window = sfRenderWindow_create(mode, "SFML window", sfResize | sfClose, NULL); + if (!window) + return EXIT_FAILURE; + /* Load a sprite to display */ + texture = sfTexture_createFromFile("tree.jpeg", NULL); + if (!texture) + return EXIT_FAILURE; + sprite = sfSprite_create(); + sfSprite_setTexture(sprite, texture, sfTrue); + /* Create a graphical text to display */ + font = sfFont_createFromFile("arial.ttf"); + if (!font) + return EXIT_FAILURE; + text = sfText_create(); + sfText_setString(text, "Hello SFML"); + sfText_setFont(text, font); + sfText_setCharacterSize(text, 50); + /* Load a music to play */ + //music = sfMusic_createFromFile("nice_music.ogg"); + if (!music) + return EXIT_FAILURE; + /* Play the music */ + sfMusic_play(music); + /* Start the game loop */ + while (sfRenderWindow_isOpen(window)) + { + /* Process events */ + while (sfRenderWindow_pollEvent(window, &event)) + { + /* Close window : exit */ + if (event.type == sfEvtClosed) + sfRenderWindow_close(window); + } + /* Clear the screen */ + sfRenderWindow_clear(window, sfBlack); + /* Draw the sprite */ + sfRenderWindow_drawSprite(window, sprite, NULL); + /* Draw the text */ + sfRenderWindow_drawText(window, text, NULL); + /* Update the window */ + sfRenderWindow_display(window); + } + /* Cleanup resources */ + sfMusic_destroy(music); + sfText_destroy(text); + sfFont_destroy(font); + sfSprite_destroy(sprite); + sfTexture_destroy(texture); + sfRenderWindow_destroy(window); + return EXIT_SUCCESS; +} + diff --git a/Test-SFML/main.o b/Test-SFML/main.o new file mode 100644 index 0000000..912fd32 Binary files /dev/null and b/Test-SFML/main.o differ diff --git a/Test-SFML/navi hey listen all sounds.mp3 b/Test-SFML/navi hey listen all sounds.mp3 new file mode 100644 index 0000000..2b765d5 Binary files /dev/null and b/Test-SFML/navi hey listen all sounds.mp3 differ diff --git a/Test-SFML/nice_music.ogg b/Test-SFML/nice_music.ogg new file mode 100644 index 0000000..cd9ef16 Binary files /dev/null and b/Test-SFML/nice_music.ogg differ diff --git a/Test-SFML/test2.c~ b/Test-SFML/test2.c~ new file mode 100644 index 0000000..fdfcdeb --- /dev/null +++ b/Test-SFML/test2.c~ @@ -0,0 +1,11 @@ +#include + +int main(){ + sfVideoMode mode = {800, 600, 32}; + sfRenderWindow* window; + /* Create the main window */ + window = sfRenderWindow_create(mode, "SFML window", sfResize | sfClose, NULL); + + + +} diff --git a/Test-SFML/tree.jpeg b/Test-SFML/tree.jpeg new file mode 100644 index 0000000..d053f00 Binary files /dev/null and b/Test-SFML/tree.jpeg differ diff --git a/Test-opencv/main.c b/Test-opencv/main.c new file mode 100644 index 0000000..6fd47c5 --- /dev/null +++ b/Test-opencv/main.c @@ -0,0 +1,50 @@ +#include +#include +#include +/* +Commandes : + +gcc -c main.c -Wall `pkg-config opencv --cflags` +gcc -o main main.o `pkg-config opencv --libs` + +*/ + +int main (int argc, char* argv[]) +{ + IplImage* img = NULL; + const char* window_title = "Hello, OpenCV!"; + + /* Vérification: au moins un argument doit être passé au programme.*/ + if (argc < 2) + { + fprintf (stderr, "usage: %s IMAGE\n", argv[0]); + return EXIT_FAILURE; + } + + /* Chargement de l'image passée en argument */ + img = cvLoadImage(argv[1], CV_LOAD_IMAGE_UNCHANGED); + + if (!img) + { + fprintf (stderr, "couldn't open image file: %s\n", argv[1]); + return EXIT_FAILURE; + } + + /* Création d'une fenêtre intitulée "Hello, OpenCV!" */ + cvNamedWindow (window_title, CV_WINDOW_AUTOSIZE); + + /* Affichage de l'image */ + cvShowImage (window_title, img); + + /* Pause le temps que l'utilisateur appuie sur une touche */ + cvWaitKey (0); + + /* Destruction de la fenêtre */ + cvDestroyAllWindows (); + + + /* Libération de la mémoire */ + cvReleaseImage (&img); + + return EXIT_SUCCESS; +} diff --git a/Test-opencv/main.c~ b/Test-opencv/main.c~ new file mode 100644 index 0000000..779398b --- /dev/null +++ b/Test-opencv/main.c~ @@ -0,0 +1,49 @@ +#include +#include +#include +/* +Commandes : +opencv : +gcc opencv.c -o opencv `pkg-config --libs --cflags opencv` -ldl -lm + +*/ + +int main (int argc, char* argv[]) +{ + IplImage* img = NULL; + const char* window_title = "Hello, OpenCV!"; + + /* Vérification: au moins un argument doit être passé au programme.*/ + if (argc < 2) + { + fprintf (stderr, "usage: %s IMAGE\n", argv[0]); + return EXIT_FAILURE; + } + + /* Chargement de l'image passée en argument */ + img = cvLoadImage(argv[1], CV_LOAD_IMAGE_UNCHANGED); + + if (!img) + { + fprintf (stderr, "couldn't open image file: %s\n", argv[1]); + return EXIT_FAILURE; + } + + /* Création d'une fenêtre intitulée "Hello, OpenCV!" */ + cvNamedWindow (window_title, CV_WINDOW_AUTOSIZE); + + /* Affichage de l'image */ + cvShowImage (window_title, img); + + /* Pause le temps que l'utilisateur appuie sur une touche */ + cvWaitKey (0); + + /* Destruction de la fenêtre */ + cvDestroyAllWindows (); + + + /* Libération de la mémoire */ + cvReleaseImage (&img); + + return EXIT_SUCCESS; +} diff --git a/Test-opencv/main.o b/Test-opencv/main.o new file mode 100644 index 0000000..aaeaf33 Binary files /dev/null and b/Test-opencv/main.o differ diff --git a/err.txt b/err.txt new file mode 100644 index 0000000..d04f0ea --- /dev/null +++ b/err.txt @@ -0,0 +1 @@ +[100%] Built target DisplayImage diff --git a/presentation_projet_html/ProjetInformatiqueRob3-1.html b/presentation_projet_html/ProjetInformatiqueRob3-1.html new file mode 100644 index 0000000..98d1a78 --- /dev/null +++ b/presentation_projet_html/ProjetInformatiqueRob3-1.html @@ -0,0 +1,129 @@ + + + +Page 1 + + + + + +
+background image +

Projet Informatique Rob3 

+

 

+

Living Machine 

+

 

+

 

+

Figure imposée : Suivi de balle monochrome 

+

Description :

+

​Pour la figure libre, nous avons pour

+

   

+

   

+

 

+

 

+

 

+

 

+

 

+

objectif le suivi d’un objet d’une couleur unie et ce tout autour

+

   

+

 

+

 

+

 

+

 

+

 

+

   

+

 

+

 

+

 

+

de notre robot à base fixe. Notre robot est composé d’une

+

 

+

 

+

   

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

caméra et de deux moteurs à axes de rotation perpendiculaire

+

   

+

 

+

 

+

   

+

   

+

 

+

 

+

permettant une orientation dans toutes les directions du

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

système d’acquisition d’image. 
Une interface graphique permet de visualiser la position de la

+

 

+

 

+

 

+

 

+

 

+

   

+

 

+

   

+

balle dans l’image et de configurer la couleur de l’objet suivi.

+

 

+

 

+

   

+

 

+

   

+

 

+

 

+

 

+

 

+

Ci-contre notre couleur de référence (Rose Kirby). 
 

+

Modules : 

+

-

+

Acquisition du flux image : Découverte de la bibliothèque openCV et programmation 
d’un affichage du flux vidéo de la caméra USB. 

+

-

+

Traitement de l’image : Mise en place d’un traitement de l’image (Filtrage couleur, 
Binarisation, Filtrage parasite, etc.) permettant de connaître la position de l’objet 
dans l’image. 

+

-

+

Asservissement moteurs : Découverte du fonctionnement de la carte Arch Pro et de 
l’utilisation des moteurs. Développement d’une fonction d’asservissement des 
moteurs pour garder l’objet dans le flux vidéo. 

+

-

+

Interface graphique : Affichage de l’image avec les informations du suivi et d’un 
panneau de configuration du robot. Découverte de la bibliothèque SFML. 

+

 

+

Planning de l’activité principale de chaque binôme : 
 

+

Module 

+

Séance 1 

+

(18/04/17) 

+

Séance 2 

+

(25/04/17) 

+

Séance 3 

+

(02/05/17) 

+

Acquisition du flux 

+

image 

+

Antoine / Jacques 

+

 

+

Traitement de 

+

l’image 

+

 

+

Antoine 

+

Asservissement 

+

moteurs 

+

Jacques 

+

Interface graphique 

+

 

+

Antoine 

+

 
 

+
+ + diff --git a/presentation_projet_html/ProjetInformatiqueRob3-2.html b/presentation_projet_html/ProjetInformatiqueRob3-2.html new file mode 100644 index 0000000..233f16e --- /dev/null +++ b/presentation_projet_html/ProjetInformatiqueRob3-2.html @@ -0,0 +1,218 @@ + + + +Page 2 + + + + + +
+background image +

 
 
 
 
Figure libre : Navi, assistant du parfait aventurier (prototype de réalité augmenté) 

+

Description :

+

​Pour la figure libre, nous avons trouvé notre inspiration dans le

+

   

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

   

+

personnage de la fée Navi d’Ocarina of Time.  

+

Le système devrait pouvoir reconnaître différents visages, déterminer

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

s’il s’agit d’un allié (Link) ou bien un ennemi (Ganon) et remplacer son

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

   

+

 

+

 

+

visage par celui de l’allié/ennemi correspondant pour plus de réalisme. Selon

+

 

+

 

+

   

+

 

+

 

+

 

+

   

+

 

+

 

+

ce qu’elle détecte, Navi lancera des sons : par exemple, “Hey Listen ! ” s’il

+

 

+

 

+

 

+

 

+

 

+

 

+

   

+

 

+

 

+

 

+

     

+

 

+

s’agit d’un allié, “Watchout ! “ s’il s’agit d’un ennemi, ou bien un bruit de

+

 

+

 

+

 

+

     

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

battements d’ailes s’il ne se passe rien.  

+

Par rapport aux mouvements de caméras, Navi pourrait activer un

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

suivi de la cible surtout si elle détecte l’ennemi. Elle pourrait aussi effectuer

+

 

+

   

+

 

+

   

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

des mouvements libres comme si elle cherchait à explorer son

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

environnement. Cependant, avant d’en arriver là, on cherchera d’abord à

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

   

+

avoir un résultat propre en caméra fixe. 

+

Selon l’avancé du projet, nous avons encore pensé à pas mal de fonctionnalités pour

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

   

+

 

+

   

+

 

+

 

+

rendre plus vivant notre système : détection de plusieurs alliés/ennemis différents (Zelda,

+

 

+

 

+

 

+

 

+

   

+

 

+

 

+

 

+

 

+

 

+

 

+

Kokiri, Arbre Mojo ou bien Effroi, Dark link, etc), détection d’objets de quêtes utiles (stylo

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

 

+

transformé en Master Sword, gomme transformée en Ocarina, etc.). 

+

 
Modules  

+

-

+

Reconnaissance faciale : Découverte et utilisation des modules spécialisés opencv  

+

-

+

Réalité augmentée : Chargement d’images 2D dans opencv et trouver une manière 
propre de modifier un visage détecté (en calquant l’image par exemple) 

+

-

+

Audio : Gestion des appels audios du système (on compte regarder du côté de 
SFML) 

+

-

+

Interface graphique : Affichage de l’image avec les informations du suivi et d’un 
panneau de configuration du robot. 

+

-

+

Optionnels : Mouvements libres, multi-détections 

+

 

+

Planning prévu : 
 

+

Module 

+

Séance 3 

+

(2/05/2017) 

+

Séance 4 

+

(09/05/2017) 

+

Séance 5 

+

(16/05/2017) 

+

Séance 6 

+

(23/05/2017) 

+

Reconnaissance faciale 

+

Jacques 

+

 

+

Réalité augmentée 

+

 

+

Antoine / Jacques 

+

Audio 

+

 

+

Antoine 

+

Interface Graphique 

+

Antoine 

+

 

+

 

+
+ + diff --git a/presentation_projet_html/ProjetInformatiqueRob3.html b/presentation_projet_html/ProjetInformatiqueRob3.html new file mode 100644 index 0000000..7b7ff35 --- /dev/null +++ b/presentation_projet_html/ProjetInformatiqueRob3.html @@ -0,0 +1,12 @@ + + + +/srv/www/vhosts/online-convert.com/save/processed//d/4/0/d40a83df-482c-427c-9d78-f93a143aaf19/01_14810732d7cd76ab9f1a98f75e49ad6b_pdf_intermediate_html/ProjetInformatiqueRob3 + + + + + + + + diff --git a/presentation_projet_html/ProjetInformatiqueRob3.pdf b/presentation_projet_html/ProjetInformatiqueRob3.pdf new file mode 100644 index 0000000..49a812b Binary files /dev/null and b/presentation_projet_html/ProjetInformatiqueRob3.pdf differ diff --git a/presentation_projet_html/ProjetInformatiqueRob3001.png b/presentation_projet_html/ProjetInformatiqueRob3001.png new file mode 100644 index 0000000..2e2c5f2 Binary files /dev/null and b/presentation_projet_html/ProjetInformatiqueRob3001.png differ diff --git a/presentation_projet_html/ProjetInformatiqueRob3002.png b/presentation_projet_html/ProjetInformatiqueRob3002.png new file mode 100644 index 0000000..26a6588 Binary files /dev/null and b/presentation_projet_html/ProjetInformatiqueRob3002.png differ diff --git a/presentation_projet_html/ProjetInformatiqueRob3_ind.html b/presentation_projet_html/ProjetInformatiqueRob3_ind.html new file mode 100644 index 0000000..6f3ec07 --- /dev/null +++ b/presentation_projet_html/ProjetInformatiqueRob3_ind.html @@ -0,0 +1,9 @@ + + + + + +Page 1
+Page 2
+ + diff --git a/src/DisplayImage.c~ b/src/DisplayImage.c~ new file mode 100644 index 0000000..32eb8c7 --- /dev/null +++ b/src/DisplayImage.c~ @@ -0,0 +1,193 @@ +#include +#include +#include +#include +//#include //Pour le cvRound +//#include "opencv2/videoio/videoio_c.h" //Pour le CvCapture* + +//#include +//#include + +/*Headers*/ +void controle_moteur(int vecX, int vecY, int rayon); +int limite_moteur(int val_pwm); + + +int main(int argc, char* argv[]) +{ + int height,width,step,channels; //parameters of the image we are working on + int posX, posY; //Position objet + CvMoments *moments = (CvMoments*)malloc(sizeof(CvMoments)); //Variable moyenne position + + // Open capture device. 0 is /dev/video0, 1 is /dev/video1, etc. + CvCapture* capture = cvCaptureFromCAM( 0 ); + + if( !capture ){ + printf("ERROR: capture is NULL \n" ); + return -1; + } + + // grab an image from the capture + IplImage* frame = cvQueryFrame( capture ); + + // Create a window in which the captured images will be presented + cvNamedWindow( "Camera", CV_WINDOW_AUTOSIZE ); + cvNamedWindow( "HSV", CV_WINDOW_AUTOSIZE ); + cvNamedWindow( "Binaire", CV_WINDOW_AUTOSIZE ); + + //sf::Window window; + //window.create(sf::VideoMode(800, 600), "My window",sf::Style::Default); + + // get the image data + height = frame->height; + width = frame->width; + step = frame->widthStep; + + // capture size - + CvSize size = cvSize(width,height); + + // Initialize different images that are going to be used in the program + IplImage* hsv_frame = cvCreateImage(size, IPL_DEPTH_8U, 3); // image converted to HSV plane + IplImage* threshold = cvCreateImage(size, IPL_DEPTH_8U, 1); + + //Controle couleur + cvNamedWindow("Control", CV_WINDOW_AUTOSIZE); //create a window called "Control" + + //Setup Kirby + int iLowH = 139; + int iHighH = 179; + + int iLowS = 48; + int iHighS = 255; + + int iLowV = 101; + int iHighV = 255; + CvScalar valinf={iLowH,iLowS,iLowV}; + CvScalar valsup={iHighH,iHighS,iHighV}; + + + //Create trackbars in "Control" window + cvCreateTrackbar("LowH", "Control", &iLowH, 179,NULL); //Hue (0 - 179) + cvCreateTrackbar("HighH", "Control", &iHighH, 179,NULL); + + cvCreateTrackbar("LowS", "Control", &iLowS, 255,NULL); //Saturation (0 - 255) + cvCreateTrackbar("HighS", "Control", &iHighS, 255,NULL); + + cvCreateTrackbar("LowV", "Control", &iLowV, 255,NULL); //Value (0 - 255) + cvCreateTrackbar("HighV", "Control", &iHighV, 255,NULL); + + + while( 1 ) + { + + // Get one frame + frame = cvQueryFrame( capture ); + + if( !frame ){ + printf("ERROR: frame is null...\n" ); + break; + } + + // Covert color space to HSV as it is much easier to filter colors in the HSV color-space. + cvCvtColor(frame, hsv_frame, CV_BGR2HSV); + + //Blur + cvSmooth( hsv_frame, hsv_frame, CV_GAUSSIAN, 15, 0,0,0); //suppression des parasites par flou gaussien + + //Binarisation + cvInRangeS(hsv_frame, valinf,valsup, threshold); + + //cvSmooth( threshold, threshold, CV_GAUSSIAN, 9, 9 ); //Legère suppression des parasites + + // Calculate the moments to estimate the position of the ball + + cvMoments(threshold, moments, 1); + // The actual moment values + double moment10 = cvGetSpatialMoment(moments, 1, 0); + double moment01 = cvGetSpatialMoment(moments, 0, 1); + double area = cvGetCentralMoment(moments, 0, 0); + + posX= moment10/area; + posY= moment01/area; + + //Affichage zone suivie objet + cvCircle(frame, cvPoint(width/2,height/2), height/6, CV_RGB(0, 255, 0), 4, 8, 0 ); + + if(posX<5&&posY<5){ //Si aucun objet spotted, pointeur rouge au centre + posX=width/2; + posY=height/2; + cvLine(frame, cvPoint(posX-20,posY), cvPoint(posX+20,posY), CV_RGB(255, 0, 0), 4, 8, 0 ); + cvLine(frame, cvPoint(posX,posY-20), cvPoint(posX,posY+20), CV_RGB(255, 0, 0), 4, 8, 0 ); + } + else{ //Objet spotted + //Affichage position de l'objet + cvLine(frame, cvPoint(posX-20,posY), cvPoint(posX+20,posY), CV_RGB(0, 0, 255), 4, 8, 0 ); + cvLine(frame, cvPoint(posX,posY-20), cvPoint(posX,posY+20), CV_RGB(0, 0, 255), 4, 8, 0 ); + } + cvShowImage( "Camera", frame ); // Original stream with detected ball overlay + cvShowImage( "HSV", hsv_frame); // Original stream in the HSV color space + cvShowImage( "Binaire", threshold); // The stream after color filtering + + controle_moteur(posX-width/2, posY-height/2, height/6); //Envoie commande moteur + + if( (cvWaitKey(10) ) >= 0 ) break; //Arret capture + } + + cvWaitKey(0); //Fin programme + + // Release the capture device housekeeping + cvReleaseCapture( &capture ); + + cvReleaseImage(&threshold); + + return 0; + } + +/*On se rapproche de (vecX, vecY) si la position se situe en dehors d'un cercle centre sur la camera*/ +void controle_moteur(int vecX, int vecY, int rayon){ + + int val_pwm[2]; + + /*Lecture valeur*/ + FILE* fichier = NULL; + fichier = fopen("/dev/ttyACM0","r"); + if(fichier==NULL){ + printf("Erreur ouverture fichier\n"); + return ; + } + + fscanf(fichier,"%d,%d",&val_pwm[0],&val_pwm[1]); + + fclose(fichier); + + /*Ecriture nouvelle valeur*/ + fichier = fopen("/dev/ttyACM0","w"); + if(fichier==NULL){ + printf("Erreur ouverture fichier\n"); + return ; + } + double norme = 1.0*vecX*vecX + 1.0*vecY*vecY; + + if (norme > rayon*rayon){ + if(vecX >= vecY && limite_moteur(val_pwm[0])){ /*Ecart sur x plus important*/ + fprintf(fichier,"%d,%d",val_pwm[0]++,val_pwm[1]); + } + else if(vecX <= vecY && limite_moteur(val_pwm[1])){ /*Ecart sur y plus important*/ + fprintf(fichier,"%d,%d",val_pwm[0],val_pwm[1]++); + } + } + + fclose(fichier); + return; +} + +/*Verifie que les valeurs envoyees aux moteurs sont correctes*/ +int limite_moteur(int val_pwm){ + int MAX_PWM = 255; + if (val_pwm > MAX_PWM || val_pwm < 0){ + return 0; + } + else{ + return 1; + } +} diff --git a/trash/code/.Rhistory b/trash/code/.Rhistory new file mode 100644 index 0000000..e69de29 diff --git a/trash/code/CMakeCache.txt b/trash/code/CMakeCache.txt new file mode 100644 index 0000000..3068e69 --- /dev/null +++ b/trash/code/CMakeCache.txt @@ -0,0 +1,295 @@ +# This is the CMakeCache file. +# For build in directory: /home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code +# It was generated by CMake: /usr/bin/cmake +# You can edit this file to change values found and used by cmake. +# If you do not want to change any of the values, simply exit the editor. +# If you do want to change a value, simply edit, save, and exit the editor. +# The syntax for the file is as follows: +# KEY:TYPE=VALUE +# KEY is the name of a variable in the cache. +# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!. +# VALUE is the current value for the KEY. + +######################## +# EXTERNAL cache entries +######################## + +//Choose the type of build, options are: None(CMAKE_CXX_FLAGS or +// CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel. +CMAKE_BUILD_TYPE:STRING= + +//Enable/Disable color output during build. +CMAKE_COLOR_MAKEFILE:BOOL=ON + +//CXX compiler. +CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++ + +//Flags used by the compiler during all build types. +CMAKE_CXX_FLAGS:STRING= + +//Flags used by the compiler during debug builds. +CMAKE_CXX_FLAGS_DEBUG:STRING=-g + +//Flags used by the compiler during release minsize builds. +CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG + +//Flags used by the compiler during release builds (/MD /Ob1 /Oi +// /Ot /Oy /Gs will produce slightly less optimized but smaller +// files). +CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG + +//Flags used by the compiler during Release with Debug Info builds. +CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG + +//C compiler. +CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc + +//Flags used by the compiler during all build types. +CMAKE_C_FLAGS:STRING= + +//Flags used by the compiler during debug builds. +CMAKE_C_FLAGS_DEBUG:STRING=-g + +//Flags used by the compiler during release minsize builds. +CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG + +//Flags used by the compiler during release builds (/MD /Ob1 /Oi +// /Ot /Oy /Gs will produce slightly less optimized but smaller +// files). +CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG + +//Flags used by the compiler during Release with Debug Info builds. +CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG + +//Flags used by the linker. +CMAKE_EXE_LINKER_FLAGS:STRING=' ' + +//Flags used by the linker during debug builds. +CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during release minsize builds. +CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during release builds. +CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during Release with Debug Info builds. +CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Enable/Disable output of compile commands during generation. +CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF + +//Install path prefix, prepended onto install directories. +CMAKE_INSTALL_PREFIX:PATH=/usr/local + +//Path to a program. +CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make + +//Flags used by the linker during the creation of modules. +CMAKE_MODULE_LINKER_FLAGS:STRING=' ' + +//Flags used by the linker during debug builds. +CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during release minsize builds. +CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during release builds. +CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during Release with Debug Info builds. +CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Value Computed by CMake +CMAKE_PROJECT_NAME:STATIC=DisplayImage + +//Flags used by the linker during the creation of dll's. +CMAKE_SHARED_LINKER_FLAGS:STRING=' ' + +//Flags used by the linker during debug builds. +CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during release minsize builds. +CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during release builds. +CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during Release with Debug Info builds. +CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//If set, runtime paths are not added when installing shared libraries, +// but are added when building. +CMAKE_SKIP_INSTALL_RPATH:BOOL=NO + +//If set, runtime paths are not added when using shared libraries. +CMAKE_SKIP_RPATH:BOOL=NO + +//Flags used by the linker during the creation of static libraries. +CMAKE_STATIC_LINKER_FLAGS:STRING= + +//Flags used by the linker during debug builds. +CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during release minsize builds. +CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during release builds. +CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during Release with Debug Info builds. +CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//If true, cmake will use relative paths in makefiles and projects. +CMAKE_USE_RELATIVE_PATHS:BOOL=OFF + +//If this value is on, makefiles will be generated without the +// .SILENT directive, and all commands will be echoed to the console +// during the make. This is useful for debugging only. With Visual +// Studio IDE projects all commands are done without /nologo. +CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE + +//Value Computed by CMake +DisplayImage_BINARY_DIR:STATIC=/home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code + +//Value Computed by CMake +DisplayImage_SOURCE_DIR:STATIC=/home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code + +//Path where debug 3rdpaty OpenCV dependencies are located +OpenCV_3RDPARTY_LIB_DIR_DBG:PATH= + +//Path where release 3rdpaty OpenCV dependencies are located +OpenCV_3RDPARTY_LIB_DIR_OPT:PATH= + +OpenCV_CONFIG_PATH:FILEPATH=/usr/share/OpenCV + +//The directory containing a CMake configuration file for OpenCV. +OpenCV_DIR:PATH=/usr/share/OpenCV + +//Path where debug OpenCV libraries are located +OpenCV_LIB_DIR_DBG:PATH= + +//Path where release OpenCV libraries are located +OpenCV_LIB_DIR_OPT:PATH= + + +######################## +# INTERNAL cache entries +######################## + +//ADVANCED property for variable: CMAKE_BUILD_TOOL +CMAKE_BUILD_TOOL-ADVANCED:INTERNAL=1 +//What is the target build tool cmake is generating for. +CMAKE_BUILD_TOOL:INTERNAL=/usr/bin/make +//This is the directory where this CMakeCache.txt was created +CMAKE_CACHEFILE_DIR:INTERNAL=/home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code +//Major version of cmake used to create the current loaded cache +CMAKE_CACHE_MAJOR_VERSION:INTERNAL=2 +//Minor version of cmake used to create the current loaded cache +CMAKE_CACHE_MINOR_VERSION:INTERNAL=8 +//Patch version of cmake used to create the current loaded cache +CMAKE_CACHE_PATCH_VERSION:INTERNAL=12 +//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE +CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1 +//Path to CMake executable. +CMAKE_COMMAND:INTERNAL=/usr/bin/cmake +//Path to cpack program executable. +CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack +//Path to ctest program executable. +CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest +//ADVANCED property for variable: CMAKE_CXX_FLAGS +CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG +CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL +CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE +CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO +CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS +CMAKE_C_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG +CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL +CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE +CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO +CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS +CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG +CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL +CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE +CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS +CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1 +//Name of generator. +CMAKE_GENERATOR:INTERNAL=Unix Makefiles +//Name of generator toolset. +CMAKE_GENERATOR_TOOLSET:INTERNAL= +//Start directory with the top level CMakeLists.txt file for this +// project +CMAKE_HOME_DIRECTORY:INTERNAL=/home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code +//Install .so files without execute permission. +CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MAKE_PROGRAM +CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS +CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG +CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL +CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE +CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//number of local generators +CMAKE_NUMBER_OF_LOCAL_GENERATORS:INTERNAL=1 +//Path to CMake installation. +CMAKE_ROOT:INTERNAL=/usr/share/cmake-2.8 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS +CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG +CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL +CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE +CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH +CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SKIP_RPATH +CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS +CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG +CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL +CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE +CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_USE_RELATIVE_PATHS +CMAKE_USE_RELATIVE_PATHS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE +CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: OpenCV_3RDPARTY_LIB_DIR_DBG +OpenCV_3RDPARTY_LIB_DIR_DBG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: OpenCV_3RDPARTY_LIB_DIR_OPT +OpenCV_3RDPARTY_LIB_DIR_OPT-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: OpenCV_CONFIG_PATH +OpenCV_CONFIG_PATH-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: OpenCV_LIB_DIR_DBG +OpenCV_LIB_DIR_DBG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: OpenCV_LIB_DIR_OPT +OpenCV_LIB_DIR_OPT-ADVANCED:INTERNAL=1 + diff --git a/trash/code/CMakeFiles/2.8.12.2/CMakeCCompiler.cmake b/trash/code/CMakeFiles/2.8.12.2/CMakeCCompiler.cmake new file mode 100644 index 0000000..c82c48b --- /dev/null +++ b/trash/code/CMakeFiles/2.8.12.2/CMakeCCompiler.cmake @@ -0,0 +1,56 @@ +set(CMAKE_C_COMPILER "/usr/bin/cc") +set(CMAKE_C_COMPILER_ARG1 "") +set(CMAKE_C_COMPILER_ID "GNU") +set(CMAKE_C_COMPILER_VERSION "4.8.5") +set(CMAKE_C_PLATFORM_ID "Linux") + +set(CMAKE_AR "/usr/bin/ar") +set(CMAKE_RANLIB "/usr/bin/ranlib") +set(CMAKE_LINKER "/usr/bin/ld") +set(CMAKE_COMPILER_IS_GNUCC 1) +set(CMAKE_C_COMPILER_LOADED 1) +set(CMAKE_C_COMPILER_WORKS TRUE) +set(CMAKE_C_ABI_COMPILED TRUE) +set(CMAKE_COMPILER_IS_MINGW ) +set(CMAKE_COMPILER_IS_CYGWIN ) +if(CMAKE_COMPILER_IS_CYGWIN) + set(CYGWIN 1) + set(UNIX 1) +endif() + +set(CMAKE_C_COMPILER_ENV_VAR "CC") + +if(CMAKE_COMPILER_IS_MINGW) + set(MINGW 1) +endif() +set(CMAKE_C_COMPILER_ID_RUN 1) +set(CMAKE_C_SOURCE_FILE_EXTENSIONS c) +set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) +set(CMAKE_C_LINKER_PREFERENCE 10) + +# Save compiler ABI information. +set(CMAKE_C_SIZEOF_DATA_PTR "8") +set(CMAKE_C_COMPILER_ABI "ELF") +set(CMAKE_C_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") + +if(CMAKE_C_SIZEOF_DATA_PTR) + set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") +endif() + +if(CMAKE_C_COMPILER_ABI) + set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") +endif() + +if(CMAKE_C_LIBRARY_ARCHITECTURE) + set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") +endif() + + + + +set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "c") +set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/4.8;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib") +set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") + + + diff --git a/trash/code/CMakeFiles/2.8.12.2/CMakeCXXCompiler.cmake b/trash/code/CMakeFiles/2.8.12.2/CMakeCXXCompiler.cmake new file mode 100644 index 0000000..c8441ec --- /dev/null +++ b/trash/code/CMakeFiles/2.8.12.2/CMakeCXXCompiler.cmake @@ -0,0 +1,57 @@ +set(CMAKE_CXX_COMPILER "/usr/bin/c++") +set(CMAKE_CXX_COMPILER_ARG1 "") +set(CMAKE_CXX_COMPILER_ID "GNU") +set(CMAKE_CXX_COMPILER_VERSION "4.8.5") +set(CMAKE_CXX_PLATFORM_ID "Linux") + +set(CMAKE_AR "/usr/bin/ar") +set(CMAKE_RANLIB "/usr/bin/ranlib") +set(CMAKE_LINKER "/usr/bin/ld") +set(CMAKE_COMPILER_IS_GNUCXX 1) +set(CMAKE_CXX_COMPILER_LOADED 1) +set(CMAKE_CXX_COMPILER_WORKS TRUE) +set(CMAKE_CXX_ABI_COMPILED TRUE) +set(CMAKE_COMPILER_IS_MINGW ) +set(CMAKE_COMPILER_IS_CYGWIN ) +if(CMAKE_COMPILER_IS_CYGWIN) + set(CYGWIN 1) + set(UNIX 1) +endif() + +set(CMAKE_CXX_COMPILER_ENV_VAR "CXX") + +if(CMAKE_COMPILER_IS_MINGW) + set(MINGW 1) +endif() +set(CMAKE_CXX_COMPILER_ID_RUN 1) +set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC) +set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;CPP) +set(CMAKE_CXX_LINKER_PREFERENCE 30) +set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1) + +# Save compiler ABI information. +set(CMAKE_CXX_SIZEOF_DATA_PTR "8") +set(CMAKE_CXX_COMPILER_ABI "ELF") +set(CMAKE_CXX_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") + +if(CMAKE_CXX_SIZEOF_DATA_PTR) + set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}") +endif() + +if(CMAKE_CXX_COMPILER_ABI) + set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}") +endif() + +if(CMAKE_CXX_LIBRARY_ARCHITECTURE) + set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") +endif() + + + + +set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;m;c") +set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/4.8;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib") +set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") + + + diff --git a/trash/code/CMakeFiles/2.8.12.2/CMakeDetermineCompilerABI_C.bin b/trash/code/CMakeFiles/2.8.12.2/CMakeDetermineCompilerABI_C.bin new file mode 100644 index 0000000..5782005 Binary files /dev/null and b/trash/code/CMakeFiles/2.8.12.2/CMakeDetermineCompilerABI_C.bin differ diff --git a/trash/code/CMakeFiles/2.8.12.2/CMakeDetermineCompilerABI_CXX.bin b/trash/code/CMakeFiles/2.8.12.2/CMakeDetermineCompilerABI_CXX.bin new file mode 100644 index 0000000..d222c75 Binary files /dev/null and b/trash/code/CMakeFiles/2.8.12.2/CMakeDetermineCompilerABI_CXX.bin differ diff --git a/trash/code/CMakeFiles/2.8.12.2/CMakeSystem.cmake b/trash/code/CMakeFiles/2.8.12.2/CMakeSystem.cmake new file mode 100644 index 0000000..b69e89d --- /dev/null +++ b/trash/code/CMakeFiles/2.8.12.2/CMakeSystem.cmake @@ -0,0 +1,15 @@ +set(CMAKE_HOST_SYSTEM "Linux-3.13.0-113-generic") +set(CMAKE_HOST_SYSTEM_NAME "Linux") +set(CMAKE_HOST_SYSTEM_VERSION "3.13.0-113-generic") +set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64") + + + +set(CMAKE_SYSTEM "Linux-3.13.0-113-generic") +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_VERSION "3.13.0-113-generic") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(CMAKE_CROSSCOMPILING "FALSE") + +set(CMAKE_SYSTEM_LOADED 1) diff --git a/trash/code/CMakeFiles/2.8.12.2/CompilerIdC/CMakeCCompilerId.c b/trash/code/CMakeFiles/2.8.12.2/CompilerIdC/CMakeCCompilerId.c new file mode 100644 index 0000000..cba81d4 --- /dev/null +++ b/trash/code/CMakeFiles/2.8.12.2/CompilerIdC/CMakeCCompilerId.c @@ -0,0 +1,389 @@ +#ifdef __cplusplus +# error "A C++ compiler has been selected for C." +#endif + +/* Version number components: V=Version, R=Revision, P=Patch + Version date components: YYYY=Year, MM=Month, DD=Day */ + +#if defined(__18CXX) +# define ID_VOID_MAIN +#endif + +#if defined(__INTEL_COMPILER) || defined(__ICC) +# define COMPILER_ID "Intel" + /* __INTEL_COMPILER = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) +# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) +# if defined(__INTEL_COMPILER_BUILD_DATE) + /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ +# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) +# endif + +#elif defined(__PATHCC__) +# define COMPILER_ID "PathScale" +# define COMPILER_VERSION_MAJOR DEC(__PATHCC__) +# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) +# if defined(__PATHCC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) +# endif + +#elif defined(__clang__) +# define COMPILER_ID "Clang" +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) + +#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) +# define COMPILER_ID "Embarcadero" +# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) +# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) +# define COMPILER_VERSION_PATCH HEX(__CODEGEARC_VERSION__ & 0xFFFF) + +#elif defined(__BORLANDC__) +# define COMPILER_ID "Borland" + /* __BORLANDC__ = 0xVRR */ +# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) +# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) + +#elif defined(__WATCOMC__) +# define COMPILER_ID "Watcom" + /* __WATCOMC__ = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) +# define COMPILER_VERSION_MINOR DEC(__WATCOMC__ % 100) + +#elif defined(__SUNPRO_C) +# define COMPILER_ID "SunPro" +# if __SUNPRO_C >= 0x5100 + /* __SUNPRO_C = 0xVRRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) +# else + /* __SUNPRO_C = 0xVRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) +# endif + +#elif defined(__HP_cc) +# define COMPILER_ID "HP" + /* __HP_cc = VVRRPP */ +# define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000) +# define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100) +# define COMPILER_VERSION_PATCH DEC(__HP_cc % 100) + +#elif defined(__DECC) +# define COMPILER_ID "Compaq" + /* __DECC_VER = VVRRTPPPP */ +# define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000) +# define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100) +# define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000) + +#elif defined(__IBMC__) +# if defined(__COMPILER_VER__) +# define COMPILER_ID "zOS" +# else +# if __IBMC__ >= 800 +# define COMPILER_ID "XL" +# else +# define COMPILER_ID "VisualAge" +# endif + /* __IBMC__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) +# endif + +#elif defined(__PGI) +# define COMPILER_ID "PGI" +# define COMPILER_VERSION_MAJOR DEC(__PGIC__) +# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) +# if defined(__PGIC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) +# endif + +#elif defined(_CRAYC) +# define COMPILER_ID "Cray" +# define COMPILER_VERSION_MAJOR DEC(_RELEASE) +# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) + +#elif defined(__TI_COMPILER_VERSION__) +# define COMPILER_ID "TI" + /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ +# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) +# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) +# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) + +#elif defined(__TINYC__) +# define COMPILER_ID "TinyCC" + +#elif defined(__SCO_VERSION__) +# define COMPILER_ID "SCO" + +#elif defined(__GNUC__) +# define COMPILER_ID "GNU" +# define COMPILER_VERSION_MAJOR DEC(__GNUC__) +# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) +# if defined(__GNUC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) +# endif + +#elif defined(_MSC_VER) +# define COMPILER_ID "MSVC" + /* _MSC_VER = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) +# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) +# if defined(_MSC_FULL_VER) +# if _MSC_VER >= 1400 + /* _MSC_FULL_VER = VVRRPPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) +# else + /* _MSC_FULL_VER = VVRRPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) +# endif +# endif +# if defined(_MSC_BUILD) +# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) +# endif + +/* Analog VisualDSP++ >= 4.5.6 */ +#elif defined(__VISUALDSPVERSION__) +# define COMPILER_ID "ADSP" + /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ +# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) +# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) + +/* Analog VisualDSP++ < 4.5.6 */ +#elif defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) +# define COMPILER_ID "ADSP" + +/* IAR Systems compiler for embedded systems. + http://www.iar.com */ +#elif defined(__IAR_SYSTEMS_ICC__ ) || defined(__IAR_SYSTEMS_ICC) +# define COMPILER_ID "IAR" + +/* sdcc, the small devices C compiler for embedded systems, + http://sdcc.sourceforge.net */ +#elif defined(SDCC) +# define COMPILER_ID "SDCC" + /* SDCC = VRP */ +# define COMPILER_VERSION_MAJOR DEC(SDCC/100) +# define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10) +# define COMPILER_VERSION_PATCH DEC(SDCC % 10) + +#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION) +# define COMPILER_ID "MIPSpro" +# if defined(_SGI_COMPILER_VERSION) + /* _SGI_COMPILER_VERSION = VRP */ +# define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100) +# define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10) +# define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10) +# else + /* _COMPILER_VERSION = VRP */ +# define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100) +# define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10) +# define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10) +# endif + +/* This compiler is either not known or is too old to define an + identification macro. Try to identify the platform and guess that + it is the native compiler. */ +#elif defined(__sgi) +# define COMPILER_ID "MIPSpro" + +#elif defined(__hpux) || defined(__hpua) +# define COMPILER_ID "HP" + +#else /* unknown compiler */ +# define COMPILER_ID "" + +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; + +/* Identify known platforms by name. */ +#if defined(__linux) || defined(__linux__) || defined(linux) +# define PLATFORM_ID "Linux" + +#elif defined(__CYGWIN__) +# define PLATFORM_ID "Cygwin" + +#elif defined(__MINGW32__) +# define PLATFORM_ID "MinGW" + +#elif defined(__APPLE__) +# define PLATFORM_ID "Darwin" + +#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) +# define PLATFORM_ID "Windows" + +#elif defined(__FreeBSD__) || defined(__FreeBSD) +# define PLATFORM_ID "FreeBSD" + +#elif defined(__NetBSD__) || defined(__NetBSD) +# define PLATFORM_ID "NetBSD" + +#elif defined(__OpenBSD__) || defined(__OPENBSD) +# define PLATFORM_ID "OpenBSD" + +#elif defined(__sun) || defined(sun) +# define PLATFORM_ID "SunOS" + +#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) +# define PLATFORM_ID "AIX" + +#elif defined(__sgi) || defined(__sgi__) || defined(_SGI) +# define PLATFORM_ID "IRIX" + +#elif defined(__hpux) || defined(__hpux__) +# define PLATFORM_ID "HP-UX" + +#elif defined(__HAIKU__) +# define PLATFORM_ID "Haiku" + +#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) +# define PLATFORM_ID "BeOS" + +#elif defined(__QNX__) || defined(__QNXNTO__) +# define PLATFORM_ID "QNX" + +#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) +# define PLATFORM_ID "Tru64" + +#elif defined(__riscos) || defined(__riscos__) +# define PLATFORM_ID "RISCos" + +#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) +# define PLATFORM_ID "SINIX" + +#elif defined(__UNIX_SV__) +# define PLATFORM_ID "UNIX_SV" + +#elif defined(__bsdos__) +# define PLATFORM_ID "BSDOS" + +#elif defined(_MPRAS) || defined(MPRAS) +# define PLATFORM_ID "MP-RAS" + +#elif defined(__osf) || defined(__osf__) +# define PLATFORM_ID "OSF1" + +#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) +# define PLATFORM_ID "SCO_SV" + +#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) +# define PLATFORM_ID "ULTRIX" + +#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) +# define PLATFORM_ID "Xenix" + +#else /* unknown platform */ +# define PLATFORM_ID "" + +#endif + +/* For windows compilers MSVC and Intel we can determine + the architecture of the compiler being used. This is because + the compilers do not have flags that can change the architecture, + but rather depend on which compiler is being used +*/ +#if defined(_WIN32) && defined(_MSC_VER) +# if defined(_M_IA64) +# define ARCHITECTURE_ID "IA64" + +# elif defined(_M_X64) || defined(_M_AMD64) +# define ARCHITECTURE_ID "x64" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# elif defined(_M_ARM) +# define ARCHITECTURE_ID "ARM" + +# elif defined(_M_MIPS) +# define ARCHITECTURE_ID "MIPS" + +# elif defined(_M_SH) +# define ARCHITECTURE_ID "SHx" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#else +# define ARCHITECTURE_ID "" +#endif + +/* Convert integer to decimal digit literals. */ +#define DEC(n) \ + ('0' + (((n) / 10000000)%10)), \ + ('0' + (((n) / 1000000)%10)), \ + ('0' + (((n) / 100000)%10)), \ + ('0' + (((n) / 10000)%10)), \ + ('0' + (((n) / 1000)%10)), \ + ('0' + (((n) / 100)%10)), \ + ('0' + (((n) / 10)%10)), \ + ('0' + ((n) % 10)) + +/* Convert integer to hex digit literals. */ +#define HEX(n) \ + ('0' + ((n)>>28 & 0xF)), \ + ('0' + ((n)>>24 & 0xF)), \ + ('0' + ((n)>>20 & 0xF)), \ + ('0' + ((n)>>16 & 0xF)), \ + ('0' + ((n)>>12 & 0xF)), \ + ('0' + ((n)>>8 & 0xF)), \ + ('0' + ((n)>>4 & 0xF)), \ + ('0' + ((n) & 0xF)) + +/* Construct a string literal encoding the version number components. */ +#ifdef COMPILER_VERSION_MAJOR +char const info_version[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', + COMPILER_VERSION_MAJOR, +# ifdef COMPILER_VERSION_MINOR + '.', COMPILER_VERSION_MINOR, +# ifdef COMPILER_VERSION_PATCH + '.', COMPILER_VERSION_PATCH, +# ifdef COMPILER_VERSION_TWEAK + '.', COMPILER_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; +char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; + + + +/*--------------------------------------------------------------------------*/ + +#ifdef ID_VOID_MAIN +void main() {} +#else +int main(int argc, char* argv[]) +{ + int require = 0; + require += info_compiler[argc]; + require += info_platform[argc]; + require += info_arch[argc]; +#ifdef COMPILER_VERSION_MAJOR + require += info_version[argc]; +#endif + (void)argv; + return require; +} +#endif diff --git a/trash/code/CMakeFiles/2.8.12.2/CompilerIdC/a.out b/trash/code/CMakeFiles/2.8.12.2/CompilerIdC/a.out new file mode 100644 index 0000000..bf64d15 Binary files /dev/null and b/trash/code/CMakeFiles/2.8.12.2/CompilerIdC/a.out differ diff --git a/trash/code/CMakeFiles/2.8.12.2/CompilerIdC/desktop.ini b/trash/code/CMakeFiles/2.8.12.2/CompilerIdC/desktop.ini new file mode 100644 index 0000000..995bb2e --- /dev/null +++ b/trash/code/CMakeFiles/2.8.12.2/CompilerIdC/desktop.ini @@ -0,0 +1,5 @@ +[.ShellClassInfo] +InfoTip=Ce dossier est partag en ligne. +IconFile=C:\Program Files\Google\Drive\googledrivesync.exe +IconIndex=16 + \ No newline at end of file diff --git a/trash/code/CMakeFiles/2.8.12.2/CompilerIdCXX/CMakeCXXCompilerId.cpp b/trash/code/CMakeFiles/2.8.12.2/CompilerIdCXX/CMakeCXXCompilerId.cpp new file mode 100644 index 0000000..e8220b2 --- /dev/null +++ b/trash/code/CMakeFiles/2.8.12.2/CompilerIdCXX/CMakeCXXCompilerId.cpp @@ -0,0 +1,377 @@ +/* This source file must have a .cpp extension so that all C++ compilers + recognize the extension without flags. Borland does not know .cxx for + example. */ +#ifndef __cplusplus +# error "A C compiler has been selected for C++." +#endif + +/* Version number components: V=Version, R=Revision, P=Patch + Version date components: YYYY=Year, MM=Month, DD=Day */ + +#if defined(__COMO__) +# define COMPILER_ID "Comeau" + /* __COMO_VERSION__ = VRR */ +# define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100) +# define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100) + +#elif defined(__INTEL_COMPILER) || defined(__ICC) +# define COMPILER_ID "Intel" + /* __INTEL_COMPILER = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) +# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) +# if defined(__INTEL_COMPILER_BUILD_DATE) + /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ +# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) +# endif + +#elif defined(__PATHCC__) +# define COMPILER_ID "PathScale" +# define COMPILER_VERSION_MAJOR DEC(__PATHCC__) +# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) +# if defined(__PATHCC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) +# endif + +#elif defined(__clang__) +# define COMPILER_ID "Clang" +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) + +#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) +# define COMPILER_ID "Embarcadero" +# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) +# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) +# define COMPILER_VERSION_PATCH HEX(__CODEGEARC_VERSION__ & 0xFFFF) + +#elif defined(__BORLANDC__) +# define COMPILER_ID "Borland" + /* __BORLANDC__ = 0xVRR */ +# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) +# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) + +#elif defined(__WATCOMC__) +# define COMPILER_ID "Watcom" + /* __WATCOMC__ = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) +# define COMPILER_VERSION_MINOR DEC(__WATCOMC__ % 100) + +#elif defined(__SUNPRO_CC) +# define COMPILER_ID "SunPro" +# if __SUNPRO_CC >= 0x5100 + /* __SUNPRO_CC = 0xVRRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF) +# else + /* __SUNPRO_CC = 0xVRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF) +# endif + +#elif defined(__HP_aCC) +# define COMPILER_ID "HP" + /* __HP_aCC = VVRRPP */ +# define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000) +# define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100) +# define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100) + +#elif defined(__DECCXX) +# define COMPILER_ID "Compaq" + /* __DECCXX_VER = VVRRTPPPP */ +# define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000) +# define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100) +# define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000) + +#elif defined(__IBMCPP__) +# if defined(__COMPILER_VER__) +# define COMPILER_ID "zOS" +# else +# if __IBMCPP__ >= 800 +# define COMPILER_ID "XL" +# else +# define COMPILER_ID "VisualAge" +# endif + /* __IBMCPP__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) +# endif + +#elif defined(__PGI) +# define COMPILER_ID "PGI" +# define COMPILER_VERSION_MAJOR DEC(__PGIC__) +# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) +# if defined(__PGIC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) +# endif + +#elif defined(_CRAYC) +# define COMPILER_ID "Cray" +# define COMPILER_VERSION_MAJOR DEC(_RELEASE) +# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) + +#elif defined(__TI_COMPILER_VERSION__) +# define COMPILER_ID "TI" + /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ +# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) +# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) +# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) + +#elif defined(__SCO_VERSION__) +# define COMPILER_ID "SCO" + +#elif defined(__GNUC__) +# define COMPILER_ID "GNU" +# define COMPILER_VERSION_MAJOR DEC(__GNUC__) +# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) +# if defined(__GNUC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) +# endif + +#elif defined(_MSC_VER) +# define COMPILER_ID "MSVC" + /* _MSC_VER = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) +# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) +# if defined(_MSC_FULL_VER) +# if _MSC_VER >= 1400 + /* _MSC_FULL_VER = VVRRPPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) +# else + /* _MSC_FULL_VER = VVRRPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) +# endif +# endif +# if defined(_MSC_BUILD) +# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) +# endif + +/* Analog VisualDSP++ >= 4.5.6 */ +#elif defined(__VISUALDSPVERSION__) +# define COMPILER_ID "ADSP" + /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ +# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) +# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) + +/* Analog VisualDSP++ < 4.5.6 */ +#elif defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) +# define COMPILER_ID "ADSP" + +/* IAR Systems compiler for embedded systems. + http://www.iar.com */ +#elif defined(__IAR_SYSTEMS_ICC__ ) || defined(__IAR_SYSTEMS_ICC) +# define COMPILER_ID "IAR" + +#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION) +# define COMPILER_ID "MIPSpro" +# if defined(_SGI_COMPILER_VERSION) + /* _SGI_COMPILER_VERSION = VRP */ +# define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100) +# define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10) +# define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10) +# else + /* _COMPILER_VERSION = VRP */ +# define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100) +# define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10) +# define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10) +# endif + +/* This compiler is either not known or is too old to define an + identification macro. Try to identify the platform and guess that + it is the native compiler. */ +#elif defined(__sgi) +# define COMPILER_ID "MIPSpro" + +#elif defined(__hpux) || defined(__hpua) +# define COMPILER_ID "HP" + +#else /* unknown compiler */ +# define COMPILER_ID "" + +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; + +/* Identify known platforms by name. */ +#if defined(__linux) || defined(__linux__) || defined(linux) +# define PLATFORM_ID "Linux" + +#elif defined(__CYGWIN__) +# define PLATFORM_ID "Cygwin" + +#elif defined(__MINGW32__) +# define PLATFORM_ID "MinGW" + +#elif defined(__APPLE__) +# define PLATFORM_ID "Darwin" + +#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) +# define PLATFORM_ID "Windows" + +#elif defined(__FreeBSD__) || defined(__FreeBSD) +# define PLATFORM_ID "FreeBSD" + +#elif defined(__NetBSD__) || defined(__NetBSD) +# define PLATFORM_ID "NetBSD" + +#elif defined(__OpenBSD__) || defined(__OPENBSD) +# define PLATFORM_ID "OpenBSD" + +#elif defined(__sun) || defined(sun) +# define PLATFORM_ID "SunOS" + +#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) +# define PLATFORM_ID "AIX" + +#elif defined(__sgi) || defined(__sgi__) || defined(_SGI) +# define PLATFORM_ID "IRIX" + +#elif defined(__hpux) || defined(__hpux__) +# define PLATFORM_ID "HP-UX" + +#elif defined(__HAIKU__) +# define PLATFORM_ID "Haiku" + +#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) +# define PLATFORM_ID "BeOS" + +#elif defined(__QNX__) || defined(__QNXNTO__) +# define PLATFORM_ID "QNX" + +#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) +# define PLATFORM_ID "Tru64" + +#elif defined(__riscos) || defined(__riscos__) +# define PLATFORM_ID "RISCos" + +#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) +# define PLATFORM_ID "SINIX" + +#elif defined(__UNIX_SV__) +# define PLATFORM_ID "UNIX_SV" + +#elif defined(__bsdos__) +# define PLATFORM_ID "BSDOS" + +#elif defined(_MPRAS) || defined(MPRAS) +# define PLATFORM_ID "MP-RAS" + +#elif defined(__osf) || defined(__osf__) +# define PLATFORM_ID "OSF1" + +#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) +# define PLATFORM_ID "SCO_SV" + +#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) +# define PLATFORM_ID "ULTRIX" + +#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) +# define PLATFORM_ID "Xenix" + +#else /* unknown platform */ +# define PLATFORM_ID "" + +#endif + +/* For windows compilers MSVC and Intel we can determine + the architecture of the compiler being used. This is because + the compilers do not have flags that can change the architecture, + but rather depend on which compiler is being used +*/ +#if defined(_WIN32) && defined(_MSC_VER) +# if defined(_M_IA64) +# define ARCHITECTURE_ID "IA64" + +# elif defined(_M_X64) || defined(_M_AMD64) +# define ARCHITECTURE_ID "x64" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# elif defined(_M_ARM) +# define ARCHITECTURE_ID "ARM" + +# elif defined(_M_MIPS) +# define ARCHITECTURE_ID "MIPS" + +# elif defined(_M_SH) +# define ARCHITECTURE_ID "SHx" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#else +# define ARCHITECTURE_ID "" +#endif + +/* Convert integer to decimal digit literals. */ +#define DEC(n) \ + ('0' + (((n) / 10000000)%10)), \ + ('0' + (((n) / 1000000)%10)), \ + ('0' + (((n) / 100000)%10)), \ + ('0' + (((n) / 10000)%10)), \ + ('0' + (((n) / 1000)%10)), \ + ('0' + (((n) / 100)%10)), \ + ('0' + (((n) / 10)%10)), \ + ('0' + ((n) % 10)) + +/* Convert integer to hex digit literals. */ +#define HEX(n) \ + ('0' + ((n)>>28 & 0xF)), \ + ('0' + ((n)>>24 & 0xF)), \ + ('0' + ((n)>>20 & 0xF)), \ + ('0' + ((n)>>16 & 0xF)), \ + ('0' + ((n)>>12 & 0xF)), \ + ('0' + ((n)>>8 & 0xF)), \ + ('0' + ((n)>>4 & 0xF)), \ + ('0' + ((n) & 0xF)) + +/* Construct a string literal encoding the version number components. */ +#ifdef COMPILER_VERSION_MAJOR +char const info_version[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', + COMPILER_VERSION_MAJOR, +# ifdef COMPILER_VERSION_MINOR + '.', COMPILER_VERSION_MINOR, +# ifdef COMPILER_VERSION_PATCH + '.', COMPILER_VERSION_PATCH, +# ifdef COMPILER_VERSION_TWEAK + '.', COMPILER_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; +char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; + + + +/*--------------------------------------------------------------------------*/ + +int main(int argc, char* argv[]) +{ + int require = 0; + require += info_compiler[argc]; + require += info_platform[argc]; +#ifdef COMPILER_VERSION_MAJOR + require += info_version[argc]; +#endif + (void)argv; + return require; +} diff --git a/trash/code/CMakeFiles/2.8.12.2/CompilerIdCXX/a.out b/trash/code/CMakeFiles/2.8.12.2/CompilerIdCXX/a.out new file mode 100644 index 0000000..695cd27 Binary files /dev/null and b/trash/code/CMakeFiles/2.8.12.2/CompilerIdCXX/a.out differ diff --git a/trash/code/CMakeFiles/2.8.12.2/CompilerIdCXX/desktop.ini b/trash/code/CMakeFiles/2.8.12.2/CompilerIdCXX/desktop.ini new file mode 100644 index 0000000..995bb2e --- /dev/null +++ b/trash/code/CMakeFiles/2.8.12.2/CompilerIdCXX/desktop.ini @@ -0,0 +1,5 @@ +[.ShellClassInfo] +InfoTip=Ce dossier est partag en ligne. +IconFile=C:\Program Files\Google\Drive\googledrivesync.exe +IconIndex=16 + \ No newline at end of file diff --git a/trash/code/CMakeFiles/CMakeDirectoryInformation.cmake b/trash/code/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000..0610c48 --- /dev/null +++ b/trash/code/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 2.8 + +# Relative path conversion top directories. +SET(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code") +SET(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code") + +# Force unix paths in dependencies. +SET(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +SET(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +SET(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +SET(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +SET(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/trash/code/CMakeFiles/CMakeOutput.log b/trash/code/CMakeFiles/CMakeOutput.log new file mode 100644 index 0000000..2e80955 --- /dev/null +++ b/trash/code/CMakeFiles/CMakeOutput.log @@ -0,0 +1,263 @@ +The system is: Linux - 3.13.0-113-generic - x86_64 +Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. +Compiler: /usr/bin/cc +Build flags: +Id flags: + +The output was: +0 + + +Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out" + +The C compiler identification is GNU, found in "/home/sasl/eleves/rob/3408017/projet_info/CMakeFiles/2.8.12.2/CompilerIdC/a.out" + +Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. +Compiler: /usr/bin/c++ +Build flags: +Id flags: + +The output was: +0 + + +Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out" + +The CXX compiler identification is GNU, found in "/home/sasl/eleves/rob/3408017/projet_info/CMakeFiles/2.8.12.2/CompilerIdCXX/a.out" + +Determining if the C compiler works passed with the following output: +Change Dir: /home/sasl/eleves/rob/3408017/projet_info/CMakeFiles/CMakeTmp + +Run Build Command:/usr/bin/make "cmTryCompileExec244909993/fast" +/usr/bin/make -f CMakeFiles/cmTryCompileExec244909993.dir/build.make CMakeFiles/cmTryCompileExec244909993.dir/build +make[1]: entrant dans le répertoire « /nfs/home/sasl/eleves/rob/3408017/projet_info/CMakeFiles/CMakeTmp » +/usr/bin/cmake -E cmake_progress_report /home/sasl/eleves/rob/3408017/projet_info/CMakeFiles/CMakeTmp/CMakeFiles 1 +Building C object CMakeFiles/cmTryCompileExec244909993.dir/testCCompiler.c.o +/usr/bin/cc -o CMakeFiles/cmTryCompileExec244909993.dir/testCCompiler.c.o -c /home/sasl/eleves/rob/3408017/projet_info/CMakeFiles/CMakeTmp/testCCompiler.c +Linking C executable cmTryCompileExec244909993 +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec244909993.dir/link.txt --verbose=1 +/usr/bin/cc CMakeFiles/cmTryCompileExec244909993.dir/testCCompiler.c.o -o cmTryCompileExec244909993 -rdynamic +make[1]: quittant le répertoire « /nfs/home/sasl/eleves/rob/3408017/projet_info/CMakeFiles/CMakeTmp » + + +Detecting C compiler ABI info compiled with the following output: +Change Dir: /home/sasl/eleves/rob/3408017/projet_info/CMakeFiles/CMakeTmp + +Run Build Command:/usr/bin/make "cmTryCompileExec3648733970/fast" +/usr/bin/make -f CMakeFiles/cmTryCompileExec3648733970.dir/build.make CMakeFiles/cmTryCompileExec3648733970.dir/build +make[1]: entrant dans le répertoire « /nfs/home/sasl/eleves/rob/3408017/projet_info/CMakeFiles/CMakeTmp » +/usr/bin/cmake -E cmake_progress_report /home/sasl/eleves/rob/3408017/projet_info/CMakeFiles/CMakeTmp/CMakeFiles 1 +Building C object CMakeFiles/cmTryCompileExec3648733970.dir/CMakeCCompilerABI.c.o +/usr/bin/cc -o CMakeFiles/cmTryCompileExec3648733970.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-2.8/Modules/CMakeCCompilerABI.c +Linking C executable cmTryCompileExec3648733970 +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3648733970.dir/link.txt --verbose=1 +/usr/bin/cc -v CMakeFiles/cmTryCompileExec3648733970.dir/CMakeCCompilerABI.c.o -o cmTryCompileExec3648733970 -rdynamic +Using built-in specs. +COLLECT_GCC=/usr/bin/cc +COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper +Target: x86_64-linux-gnu +Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.5-2ubuntu1~14.04.1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu +Thread model: posix +gcc version 4.8.5 (Ubuntu 4.8.5-2ubuntu1~14.04.1) +COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/ +LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../:/lib/:/usr/lib/ +COLLECT_GCC_OPTIONS='-v' '-o' 'cmTryCompileExec3648733970' '-rdynamic' '-mtune=generic' '-march=x86-64' + /usr/lib/gcc/x86_64-linux-gnu/4.8/collect2 --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTryCompileExec3648733970 /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.. CMakeFiles/cmTryCompileExec3648733970.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/4.8/crtend.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crtn.o +make[1]: quittant le répertoire « /nfs/home/sasl/eleves/rob/3408017/projet_info/CMakeFiles/CMakeTmp » + + +Parsed C implicit link information from above output: + link line regex: [^( *|.*[/\])(ld|([^/\]+-)?ld|collect2)[^/\]*( |$)] + ignore line: [Change Dir: /home/sasl/eleves/rob/3408017/projet_info/CMakeFiles/CMakeTmp] + ignore line: [] + ignore line: [Run Build Command:/usr/bin/make "cmTryCompileExec3648733970/fast"] + ignore line: [/usr/bin/make -f CMakeFiles/cmTryCompileExec3648733970.dir/build.make CMakeFiles/cmTryCompileExec3648733970.dir/build] + ignore line: [make[1]: entrant dans le répertoire « /nfs/home/sasl/eleves/rob/3408017/projet_info/CMakeFiles/CMakeTmp »] + ignore line: [/usr/bin/cmake -E cmake_progress_report /home/sasl/eleves/rob/3408017/projet_info/CMakeFiles/CMakeTmp/CMakeFiles 1] + ignore line: [Building C object CMakeFiles/cmTryCompileExec3648733970.dir/CMakeCCompilerABI.c.o] + ignore line: [/usr/bin/cc -o CMakeFiles/cmTryCompileExec3648733970.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-2.8/Modules/CMakeCCompilerABI.c] + ignore line: [Linking C executable cmTryCompileExec3648733970] + ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3648733970.dir/link.txt --verbose=1] + ignore line: [/usr/bin/cc -v CMakeFiles/cmTryCompileExec3648733970.dir/CMakeCCompilerABI.c.o -o cmTryCompileExec3648733970 -rdynamic ] + ignore line: [Using built-in specs.] + ignore line: [COLLECT_GCC=/usr/bin/cc] + ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper] + ignore line: [Target: x86_64-linux-gnu] + ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.5-2ubuntu1~14.04.1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu] + ignore line: [Thread model: posix] + ignore line: [gcc version 4.8.5 (Ubuntu 4.8.5-2ubuntu1~14.04.1) ] + ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/] + ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../:/lib/:/usr/lib/] + ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTryCompileExec3648733970' '-rdynamic' '-mtune=generic' '-march=x86-64'] + link line: [ /usr/lib/gcc/x86_64-linux-gnu/4.8/collect2 --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTryCompileExec3648733970 /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.. CMakeFiles/cmTryCompileExec3648733970.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/4.8/crtend.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crtn.o] + arg [/usr/lib/gcc/x86_64-linux-gnu/4.8/collect2] ==> ignore + arg [--sysroot=/] ==> ignore + arg [--build-id] ==> ignore + arg [--eh-frame-hdr] ==> ignore + arg [-m] ==> ignore + arg [elf_x86_64] ==> ignore + arg [--hash-style=gnu] ==> ignore + arg [--as-needed] ==> ignore + arg [-export-dynamic] ==> ignore + arg [-dynamic-linker] ==> ignore + arg [/lib64/ld-linux-x86-64.so.2] ==> ignore + arg [-zrelro] ==> ignore + arg [-o] ==> ignore + arg [cmTryCompileExec3648733970] ==> ignore + arg [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o] ==> ignore + arg [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crti.o] ==> ignore + arg [/usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o] ==> ignore + arg [-L/usr/lib/gcc/x86_64-linux-gnu/4.8] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/4.8] + arg [-L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu] + arg [-L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib] + arg [-L/lib/x86_64-linux-gnu] ==> dir [/lib/x86_64-linux-gnu] + arg [-L/lib/../lib] ==> dir [/lib/../lib] + arg [-L/usr/lib/x86_64-linux-gnu] ==> dir [/usr/lib/x86_64-linux-gnu] + arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib] + arg [-L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../..] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../..] + arg [CMakeFiles/cmTryCompileExec3648733970.dir/CMakeCCompilerABI.c.o] ==> ignore + arg [-lgcc] ==> lib [gcc] + arg [--as-needed] ==> ignore + arg [-lgcc_s] ==> lib [gcc_s] + arg [--no-as-needed] ==> ignore + arg [-lc] ==> lib [c] + arg [-lgcc] ==> lib [gcc] + arg [--as-needed] ==> ignore + arg [-lgcc_s] ==> lib [gcc_s] + arg [--no-as-needed] ==> ignore + arg [/usr/lib/gcc/x86_64-linux-gnu/4.8/crtend.o] ==> ignore + arg [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crtn.o] ==> ignore + remove lib [gcc] + remove lib [gcc_s] + remove lib [gcc] + remove lib [gcc_s] + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/4.8] ==> [/usr/lib/gcc/x86_64-linux-gnu/4.8] + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu] + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib] ==> [/usr/lib] + collapse library dir [/lib/x86_64-linux-gnu] ==> [/lib/x86_64-linux-gnu] + collapse library dir [/lib/../lib] ==> [/lib] + collapse library dir [/usr/lib/x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu] + collapse library dir [/usr/lib/../lib] ==> [/usr/lib] + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../..] ==> [/usr/lib] + implicit libs: [c] + implicit dirs: [/usr/lib/gcc/x86_64-linux-gnu/4.8;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib] + implicit fwks: [] + + +Determining if the CXX compiler works passed with the following output: +Change Dir: /home/sasl/eleves/rob/3408017/projet_info/CMakeFiles/CMakeTmp + +Run Build Command:/usr/bin/make "cmTryCompileExec1206261901/fast" +/usr/bin/make -f CMakeFiles/cmTryCompileExec1206261901.dir/build.make CMakeFiles/cmTryCompileExec1206261901.dir/build +make[1]: entrant dans le répertoire « /nfs/home/sasl/eleves/rob/3408017/projet_info/CMakeFiles/CMakeTmp » +/usr/bin/cmake -E cmake_progress_report /home/sasl/eleves/rob/3408017/projet_info/CMakeFiles/CMakeTmp/CMakeFiles 1 +Building CXX object CMakeFiles/cmTryCompileExec1206261901.dir/testCXXCompiler.cxx.o +/usr/bin/c++ -o CMakeFiles/cmTryCompileExec1206261901.dir/testCXXCompiler.cxx.o -c /home/sasl/eleves/rob/3408017/projet_info/CMakeFiles/CMakeTmp/testCXXCompiler.cxx +Linking CXX executable cmTryCompileExec1206261901 +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1206261901.dir/link.txt --verbose=1 +/usr/bin/c++ CMakeFiles/cmTryCompileExec1206261901.dir/testCXXCompiler.cxx.o -o cmTryCompileExec1206261901 -rdynamic +make[1]: quittant le répertoire « /nfs/home/sasl/eleves/rob/3408017/projet_info/CMakeFiles/CMakeTmp » + + +Detecting CXX compiler ABI info compiled with the following output: +Change Dir: /home/sasl/eleves/rob/3408017/projet_info/CMakeFiles/CMakeTmp + +Run Build Command:/usr/bin/make "cmTryCompileExec998015616/fast" +/usr/bin/make -f CMakeFiles/cmTryCompileExec998015616.dir/build.make CMakeFiles/cmTryCompileExec998015616.dir/build +make[1]: entrant dans le répertoire « /nfs/home/sasl/eleves/rob/3408017/projet_info/CMakeFiles/CMakeTmp » +/usr/bin/cmake -E cmake_progress_report /home/sasl/eleves/rob/3408017/projet_info/CMakeFiles/CMakeTmp/CMakeFiles 1 +Building CXX object CMakeFiles/cmTryCompileExec998015616.dir/CMakeCXXCompilerABI.cpp.o +/usr/bin/c++ -o CMakeFiles/cmTryCompileExec998015616.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-2.8/Modules/CMakeCXXCompilerABI.cpp +Linking CXX executable cmTryCompileExec998015616 +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec998015616.dir/link.txt --verbose=1 +/usr/bin/c++ -v CMakeFiles/cmTryCompileExec998015616.dir/CMakeCXXCompilerABI.cpp.o -o cmTryCompileExec998015616 -rdynamic +Using built-in specs. +COLLECT_GCC=/usr/bin/c++ +COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper +Target: x86_64-linux-gnu +Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.5-2ubuntu1~14.04.1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu +Thread model: posix +gcc version 4.8.5 (Ubuntu 4.8.5-2ubuntu1~14.04.1) +COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/ +LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../:/lib/:/usr/lib/ +COLLECT_GCC_OPTIONS='-v' '-o' 'cmTryCompileExec998015616' '-rdynamic' '-shared-libgcc' '-mtune=generic' '-march=x86-64' + /usr/lib/gcc/x86_64-linux-gnu/4.8/collect2 --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTryCompileExec998015616 /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.. CMakeFiles/cmTryCompileExec998015616.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/4.8/crtend.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crtn.o +make[1]: quittant le répertoire « /nfs/home/sasl/eleves/rob/3408017/projet_info/CMakeFiles/CMakeTmp » + + +Parsed CXX implicit link information from above output: + link line regex: [^( *|.*[/\])(ld|([^/\]+-)?ld|collect2)[^/\]*( |$)] + ignore line: [Change Dir: /home/sasl/eleves/rob/3408017/projet_info/CMakeFiles/CMakeTmp] + ignore line: [] + ignore line: [Run Build Command:/usr/bin/make "cmTryCompileExec998015616/fast"] + ignore line: [/usr/bin/make -f CMakeFiles/cmTryCompileExec998015616.dir/build.make CMakeFiles/cmTryCompileExec998015616.dir/build] + ignore line: [make[1]: entrant dans le répertoire « /nfs/home/sasl/eleves/rob/3408017/projet_info/CMakeFiles/CMakeTmp »] + ignore line: [/usr/bin/cmake -E cmake_progress_report /home/sasl/eleves/rob/3408017/projet_info/CMakeFiles/CMakeTmp/CMakeFiles 1] + ignore line: [Building CXX object CMakeFiles/cmTryCompileExec998015616.dir/CMakeCXXCompilerABI.cpp.o] + ignore line: [/usr/bin/c++ -o CMakeFiles/cmTryCompileExec998015616.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-2.8/Modules/CMakeCXXCompilerABI.cpp] + ignore line: [Linking CXX executable cmTryCompileExec998015616] + ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec998015616.dir/link.txt --verbose=1] + ignore line: [/usr/bin/c++ -v CMakeFiles/cmTryCompileExec998015616.dir/CMakeCXXCompilerABI.cpp.o -o cmTryCompileExec998015616 -rdynamic ] + ignore line: [Using built-in specs.] + ignore line: [COLLECT_GCC=/usr/bin/c++] + ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper] + ignore line: [Target: x86_64-linux-gnu] + ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.5-2ubuntu1~14.04.1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu] + ignore line: [Thread model: posix] + ignore line: [gcc version 4.8.5 (Ubuntu 4.8.5-2ubuntu1~14.04.1) ] + ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/] + ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../:/lib/:/usr/lib/] + ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTryCompileExec998015616' '-rdynamic' '-shared-libgcc' '-mtune=generic' '-march=x86-64'] + link line: [ /usr/lib/gcc/x86_64-linux-gnu/4.8/collect2 --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTryCompileExec998015616 /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.. CMakeFiles/cmTryCompileExec998015616.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/4.8/crtend.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crtn.o] + arg [/usr/lib/gcc/x86_64-linux-gnu/4.8/collect2] ==> ignore + arg [--sysroot=/] ==> ignore + arg [--build-id] ==> ignore + arg [--eh-frame-hdr] ==> ignore + arg [-m] ==> ignore + arg [elf_x86_64] ==> ignore + arg [--hash-style=gnu] ==> ignore + arg [--as-needed] ==> ignore + arg [-export-dynamic] ==> ignore + arg [-dynamic-linker] ==> ignore + arg [/lib64/ld-linux-x86-64.so.2] ==> ignore + arg [-zrelro] ==> ignore + arg [-o] ==> ignore + arg [cmTryCompileExec998015616] ==> ignore + arg [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o] ==> ignore + arg [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crti.o] ==> ignore + arg [/usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o] ==> ignore + arg [-L/usr/lib/gcc/x86_64-linux-gnu/4.8] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/4.8] + arg [-L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu] + arg [-L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib] + arg [-L/lib/x86_64-linux-gnu] ==> dir [/lib/x86_64-linux-gnu] + arg [-L/lib/../lib] ==> dir [/lib/../lib] + arg [-L/usr/lib/x86_64-linux-gnu] ==> dir [/usr/lib/x86_64-linux-gnu] + arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib] + arg [-L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../..] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../..] + arg [CMakeFiles/cmTryCompileExec998015616.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore + arg [-lstdc++] ==> lib [stdc++] + arg [-lm] ==> lib [m] + arg [-lgcc_s] ==> lib [gcc_s] + arg [-lgcc] ==> lib [gcc] + arg [-lc] ==> lib [c] + arg [-lgcc_s] ==> lib [gcc_s] + arg [-lgcc] ==> lib [gcc] + arg [/usr/lib/gcc/x86_64-linux-gnu/4.8/crtend.o] ==> ignore + arg [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crtn.o] ==> ignore + remove lib [gcc_s] + remove lib [gcc] + remove lib [gcc_s] + remove lib [gcc] + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/4.8] ==> [/usr/lib/gcc/x86_64-linux-gnu/4.8] + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu] + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib] ==> [/usr/lib] + collapse library dir [/lib/x86_64-linux-gnu] ==> [/lib/x86_64-linux-gnu] + collapse library dir [/lib/../lib] ==> [/lib] + collapse library dir [/usr/lib/x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu] + collapse library dir [/usr/lib/../lib] ==> [/usr/lib] + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/4.8/../../..] ==> [/usr/lib] + implicit libs: [stdc++;m;c] + implicit dirs: [/usr/lib/gcc/x86_64-linux-gnu/4.8;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib] + implicit fwks: [] + + diff --git a/trash/code/CMakeFiles/DisplayImage.dir/C.includecache b/trash/code/CMakeFiles/DisplayImage.dir/C.includecache new file mode 100644 index 0000000..e366615 --- /dev/null +++ b/trash/code/CMakeFiles/DisplayImage.dir/C.includecache @@ -0,0 +1,14 @@ +#IncludeRegexLine: ^[ ]*#[ ]*(include|import)[ ]*[<"]([^">]+)([">]) + +#IncludeRegexScan: ^.*$ + +#IncludeRegexComplain: ^$ + +#IncludeRegexTransform: + +/home/sasl/eleves/rob/3408017/projet_info/DisplayImage.c +stdio.h +- +opencv2/opencv.h +- + diff --git a/trash/code/CMakeFiles/DisplayImage.dir/CXX.includecache b/trash/code/CMakeFiles/DisplayImage.dir/CXX.includecache new file mode 100644 index 0000000..ef5549e --- /dev/null +++ b/trash/code/CMakeFiles/DisplayImage.dir/CXX.includecache @@ -0,0 +1,56 @@ +#IncludeRegexLine: ^[ ]*#[ ]*(include|import)[ ]*[<"]([^">]+)([">]) + +#IncludeRegexScan: ^.*$ + +#IncludeRegexComplain: ^$ + +#IncludeRegexTransform: + +/home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code/DisplayImage.cpp +cv.h +- +highgui.h +- +cxcore.h +- + +/usr/include/opencv/cv.h +opencv2/core/core_c.h +/usr/include/opencv/opencv2/core/core_c.h +opencv2/core/core.hpp +/usr/include/opencv/opencv2/core/core.hpp +opencv2/imgproc/imgproc_c.h +/usr/include/opencv/opencv2/imgproc/imgproc_c.h +opencv2/imgproc/imgproc.hpp +/usr/include/opencv/opencv2/imgproc/imgproc.hpp +opencv2/video/tracking.hpp +/usr/include/opencv/opencv2/video/tracking.hpp +opencv2/features2d/features2d.hpp +/usr/include/opencv/opencv2/features2d/features2d.hpp +opencv2/flann/flann.hpp +/usr/include/opencv/opencv2/flann/flann.hpp +opencv2/calib3d/calib3d.hpp +/usr/include/opencv/opencv2/calib3d/calib3d.hpp +opencv2/objdetect/objdetect.hpp +/usr/include/opencv/opencv2/objdetect/objdetect.hpp +opencv2/legacy/compat.hpp +/usr/include/opencv/opencv2/legacy/compat.hpp +opencv2/core/internal.hpp +/usr/include/opencv/opencv2/core/internal.hpp + +/usr/include/opencv/cxcore.h +opencv2/core/core_c.h +/usr/include/opencv/opencv2/core/core_c.h +opencv2/core/core.hpp +/usr/include/opencv/opencv2/core/core.hpp + +/usr/include/opencv/highgui.h +opencv2/core/core_c.h +/usr/include/opencv/opencv2/core/core_c.h +opencv2/core/core.hpp +/usr/include/opencv/opencv2/core/core.hpp +opencv2/highgui/highgui_c.h +/usr/include/opencv/opencv2/highgui/highgui_c.h +opencv2/highgui/highgui.hpp +/usr/include/opencv/opencv2/highgui/highgui.hpp + diff --git a/trash/code/CMakeFiles/DisplayImage.dir/DependInfo.cmake b/trash/code/CMakeFiles/DisplayImage.dir/DependInfo.cmake new file mode 100644 index 0000000..8ff4c12 --- /dev/null +++ b/trash/code/CMakeFiles/DisplayImage.dir/DependInfo.cmake @@ -0,0 +1,21 @@ +# The set of languages for which implicit dependencies are needed: +SET(CMAKE_DEPENDS_LANGUAGES + "CXX" + ) +# The set of files for implicit dependencies of each language: +SET(CMAKE_DEPENDS_CHECK_CXX + "/home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code/DisplayImage.cpp" "/home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code/CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o" + ) +SET(CMAKE_CXX_COMPILER_ID "GNU") + +# Targets to which this target links. +SET(CMAKE_TARGET_LINKED_INFO_FILES + ) + +# The include file search paths: +SET(CMAKE_C_TARGET_INCLUDE_PATH + "/usr/include/opencv" + ) +SET(CMAKE_CXX_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH}) +SET(CMAKE_Fortran_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH}) +SET(CMAKE_ASM_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH}) diff --git a/trash/code/CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o b/trash/code/CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o new file mode 100644 index 0000000..a987e58 Binary files /dev/null and b/trash/code/CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o differ diff --git a/trash/code/CMakeFiles/DisplayImage.dir/build.make b/trash/code/CMakeFiles/DisplayImage.dir/build.make new file mode 100644 index 0000000..b0a3655 --- /dev/null +++ b/trash/code/CMakeFiles/DisplayImage.dir/build.make @@ -0,0 +1,131 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 2.8 + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code + +# Include any dependencies generated for this target. +include CMakeFiles/DisplayImage.dir/depend.make + +# Include the progress variables for this target. +include CMakeFiles/DisplayImage.dir/progress.make + +# Include the compile flags for this target's objects. +include CMakeFiles/DisplayImage.dir/flags.make + +CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o: CMakeFiles/DisplayImage.dir/flags.make +CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o: DisplayImage.cpp + $(CMAKE_COMMAND) -E cmake_progress_report /home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code/CMakeFiles $(CMAKE_PROGRESS_1) + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Building CXX object CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o" + /usr/bin/c++ $(CXX_DEFINES) $(CXX_FLAGS) -o CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o -c /home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code/DisplayImage.cpp + +CMakeFiles/DisplayImage.dir/DisplayImage.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/DisplayImage.dir/DisplayImage.cpp.i" + /usr/bin/c++ $(CXX_DEFINES) $(CXX_FLAGS) -E /home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code/DisplayImage.cpp > CMakeFiles/DisplayImage.dir/DisplayImage.cpp.i + +CMakeFiles/DisplayImage.dir/DisplayImage.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/DisplayImage.dir/DisplayImage.cpp.s" + /usr/bin/c++ $(CXX_DEFINES) $(CXX_FLAGS) -S /home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code/DisplayImage.cpp -o CMakeFiles/DisplayImage.dir/DisplayImage.cpp.s + +CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o.requires: +.PHONY : CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o.requires + +CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o.provides: CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o.requires + $(MAKE) -f CMakeFiles/DisplayImage.dir/build.make CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o.provides.build +.PHONY : CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o.provides + +CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o.provides.build: CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o + +# Object files for target DisplayImage +DisplayImage_OBJECTS = \ +"CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o" + +# External object files for target DisplayImage +DisplayImage_EXTERNAL_OBJECTS = + +DisplayImage: CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o +DisplayImage: CMakeFiles/DisplayImage.dir/build.make +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_videostab.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_video.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_ts.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_superres.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_stitching.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_photo.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_ocl.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_objdetect.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_ml.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_legacy.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_imgproc.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_gpu.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_flann.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_features2d.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_contrib.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_calib3d.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_photo.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_legacy.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_video.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_objdetect.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_ml.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_calib3d.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_features2d.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_imgproc.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_flann.so.2.4.8 +DisplayImage: /usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4.8 +DisplayImage: CMakeFiles/DisplayImage.dir/link.txt + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --red --bold "Linking CXX executable DisplayImage" + $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/DisplayImage.dir/link.txt --verbose=$(VERBOSE) + +# Rule to build all files generated by this target. +CMakeFiles/DisplayImage.dir/build: DisplayImage +.PHONY : CMakeFiles/DisplayImage.dir/build + +CMakeFiles/DisplayImage.dir/requires: CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o.requires +.PHONY : CMakeFiles/DisplayImage.dir/requires + +CMakeFiles/DisplayImage.dir/clean: + $(CMAKE_COMMAND) -P CMakeFiles/DisplayImage.dir/cmake_clean.cmake +.PHONY : CMakeFiles/DisplayImage.dir/clean + +CMakeFiles/DisplayImage.dir/depend: + cd /home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code /home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code /home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code /home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code /home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code/CMakeFiles/DisplayImage.dir/DependInfo.cmake --color=$(COLOR) +.PHONY : CMakeFiles/DisplayImage.dir/depend + diff --git a/trash/code/CMakeFiles/DisplayImage.dir/cmake_clean.cmake b/trash/code/CMakeFiles/DisplayImage.dir/cmake_clean.cmake new file mode 100644 index 0000000..cf3253b --- /dev/null +++ b/trash/code/CMakeFiles/DisplayImage.dir/cmake_clean.cmake @@ -0,0 +1,10 @@ +FILE(REMOVE_RECURSE + "CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o" + "DisplayImage.pdb" + "DisplayImage" +) + +# Per-language clean rules from dependency scanning. +FOREACH(lang CXX) + INCLUDE(CMakeFiles/DisplayImage.dir/cmake_clean_${lang}.cmake OPTIONAL) +ENDFOREACH(lang) diff --git a/trash/code/CMakeFiles/DisplayImage.dir/depend.internal b/trash/code/CMakeFiles/DisplayImage.dir/depend.internal new file mode 100644 index 0000000..49b11ce --- /dev/null +++ b/trash/code/CMakeFiles/DisplayImage.dir/depend.internal @@ -0,0 +1,8 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 2.8 + +CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o + /home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code/DisplayImage.cpp + /usr/include/opencv/cv.h + /usr/include/opencv/cxcore.h + /usr/include/opencv/highgui.h diff --git a/trash/code/CMakeFiles/DisplayImage.dir/depend.make b/trash/code/CMakeFiles/DisplayImage.dir/depend.make new file mode 100644 index 0000000..a7d878e --- /dev/null +++ b/trash/code/CMakeFiles/DisplayImage.dir/depend.make @@ -0,0 +1,8 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 2.8 + +CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o: DisplayImage.cpp +CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o: /usr/include/opencv/cv.h +CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o: /usr/include/opencv/cxcore.h +CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o: /usr/include/opencv/highgui.h + diff --git a/trash/code/CMakeFiles/DisplayImage.dir/flags.make b/trash/code/CMakeFiles/DisplayImage.dir/flags.make new file mode 100644 index 0000000..8767332 --- /dev/null +++ b/trash/code/CMakeFiles/DisplayImage.dir/flags.make @@ -0,0 +1,8 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 2.8 + +# compile CXX with /usr/bin/c++ +CXX_FLAGS = -I/usr/include/opencv + +CXX_DEFINES = + diff --git a/trash/code/CMakeFiles/DisplayImage.dir/link.txt b/trash/code/CMakeFiles/DisplayImage.dir/link.txt new file mode 100644 index 0000000..84eae0d --- /dev/null +++ b/trash/code/CMakeFiles/DisplayImage.dir/link.txt @@ -0,0 +1 @@ +/usr/bin/c++ CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o -o DisplayImage -rdynamic /usr/lib/x86_64-linux-gnu/libopencv_videostab.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_video.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_ts.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_superres.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_stitching.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_photo.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_ocl.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_objdetect.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_ml.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_legacy.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_imgproc.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_gpu.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_flann.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_features2d.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_contrib.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_calib3d.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_photo.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_legacy.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_video.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_objdetect.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_ml.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_calib3d.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_features2d.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_imgproc.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_flann.so.2.4.8 /usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4.8 diff --git a/trash/code/CMakeFiles/DisplayImage.dir/progress.make b/trash/code/CMakeFiles/DisplayImage.dir/progress.make new file mode 100644 index 0000000..781c7de --- /dev/null +++ b/trash/code/CMakeFiles/DisplayImage.dir/progress.make @@ -0,0 +1,2 @@ +CMAKE_PROGRESS_1 = 1 + diff --git a/trash/code/CMakeFiles/Makefile.cmake b/trash/code/CMakeFiles/Makefile.cmake new file mode 100644 index 0000000..992ab2d --- /dev/null +++ b/trash/code/CMakeFiles/Makefile.cmake @@ -0,0 +1,48 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 2.8 + +# The generator used is: +SET(CMAKE_DEPENDS_GENERATOR "Unix Makefiles") + +# The top level Makefile was generated from the following files: +SET(CMAKE_MAKEFILE_DEPENDS + "CMakeCache.txt" + "CMakeFiles/2.8.12.2/CMakeCCompiler.cmake" + "CMakeFiles/2.8.12.2/CMakeCXXCompiler.cmake" + "CMakeFiles/2.8.12.2/CMakeSystem.cmake" + "CMakeLists.txt" + "/usr/share/OpenCV/OpenCVConfig-version.cmake" + "/usr/share/OpenCV/OpenCVConfig.cmake" + "/usr/share/OpenCV/OpenCVModules-release.cmake" + "/usr/share/OpenCV/OpenCVModules.cmake" + "/usr/share/cmake-2.8/Modules/CMakeCInformation.cmake" + "/usr/share/cmake-2.8/Modules/CMakeCXXInformation.cmake" + "/usr/share/cmake-2.8/Modules/CMakeCommonLanguageInclude.cmake" + "/usr/share/cmake-2.8/Modules/CMakeGenericSystem.cmake" + "/usr/share/cmake-2.8/Modules/CMakeSystemSpecificInformation.cmake" + "/usr/share/cmake-2.8/Modules/CMakeUnixFindMake.cmake" + "/usr/share/cmake-2.8/Modules/Compiler/GNU-C.cmake" + "/usr/share/cmake-2.8/Modules/Compiler/GNU-CXX.cmake" + "/usr/share/cmake-2.8/Modules/Compiler/GNU.cmake" + "/usr/share/cmake-2.8/Modules/Platform/Linux-GNU-C.cmake" + "/usr/share/cmake-2.8/Modules/Platform/Linux-GNU-CXX.cmake" + "/usr/share/cmake-2.8/Modules/Platform/Linux-GNU.cmake" + "/usr/share/cmake-2.8/Modules/Platform/Linux.cmake" + "/usr/share/cmake-2.8/Modules/Platform/UnixPaths.cmake" + ) + +# The corresponding makefile is: +SET(CMAKE_MAKEFILE_OUTPUTS + "Makefile" + "CMakeFiles/cmake.check_cache" + ) + +# Byproducts of CMake generate step: +SET(CMAKE_MAKEFILE_PRODUCTS + "CMakeFiles/CMakeDirectoryInformation.cmake" + ) + +# Dependency information for all targets: +SET(CMAKE_DEPEND_INFO_FILES + "CMakeFiles/DisplayImage.dir/DependInfo.cmake" + ) diff --git a/trash/code/CMakeFiles/Makefile2 b/trash/code/CMakeFiles/Makefile2 new file mode 100644 index 0000000..a6dba77 --- /dev/null +++ b/trash/code/CMakeFiles/Makefile2 @@ -0,0 +1,99 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 2.8 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# The main recursive all target +all: +.PHONY : all + +# The main recursive preinstall target +preinstall: +.PHONY : preinstall + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code + +#============================================================================= +# Target rules for target CMakeFiles/DisplayImage.dir + +# All Build rule for target. +CMakeFiles/DisplayImage.dir/all: + $(MAKE) -f CMakeFiles/DisplayImage.dir/build.make CMakeFiles/DisplayImage.dir/depend + $(MAKE) -f CMakeFiles/DisplayImage.dir/build.make CMakeFiles/DisplayImage.dir/build + $(CMAKE_COMMAND) -E cmake_progress_report /home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code/CMakeFiles 1 + @echo "Built target DisplayImage" +.PHONY : CMakeFiles/DisplayImage.dir/all + +# Include target in all. +all: CMakeFiles/DisplayImage.dir/all +.PHONY : all + +# Build rule for subdir invocation for target. +CMakeFiles/DisplayImage.dir/rule: cmake_check_build_system + $(CMAKE_COMMAND) -E cmake_progress_start /home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code/CMakeFiles 1 + $(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/DisplayImage.dir/all + $(CMAKE_COMMAND) -E cmake_progress_start /home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code/CMakeFiles 0 +.PHONY : CMakeFiles/DisplayImage.dir/rule + +# Convenience name for target. +DisplayImage: CMakeFiles/DisplayImage.dir/rule +.PHONY : DisplayImage + +# clean rule for target. +CMakeFiles/DisplayImage.dir/clean: + $(MAKE) -f CMakeFiles/DisplayImage.dir/build.make CMakeFiles/DisplayImage.dir/clean +.PHONY : CMakeFiles/DisplayImage.dir/clean + +# clean rule for target. +clean: CMakeFiles/DisplayImage.dir/clean +.PHONY : clean + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/trash/code/CMakeFiles/TargetDirectories.txt b/trash/code/CMakeFiles/TargetDirectories.txt new file mode 100644 index 0000000..d905414 --- /dev/null +++ b/trash/code/CMakeFiles/TargetDirectories.txt @@ -0,0 +1 @@ +/home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code/CMakeFiles/DisplayImage.dir diff --git a/trash/code/CMakeFiles/cmake.check_cache b/trash/code/CMakeFiles/cmake.check_cache new file mode 100644 index 0000000..3dccd73 --- /dev/null +++ b/trash/code/CMakeFiles/cmake.check_cache @@ -0,0 +1 @@ +# This file is generated by cmake for dependency checking of the CMakeCache.txt file diff --git a/trash/code/CMakeFiles/desktop.ini b/trash/code/CMakeFiles/desktop.ini new file mode 100644 index 0000000..995bb2e --- /dev/null +++ b/trash/code/CMakeFiles/desktop.ini @@ -0,0 +1,5 @@ +[.ShellClassInfo] +InfoTip=Ce dossier est partag en ligne. +IconFile=C:\Program Files\Google\Drive\googledrivesync.exe +IconIndex=16 + \ No newline at end of file diff --git a/trash/code/CMakeFiles/progress.marks b/trash/code/CMakeFiles/progress.marks new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/trash/code/CMakeFiles/progress.marks @@ -0,0 +1 @@ +1 diff --git a/trash/code/CMakeLists.txt b/trash/code/CMakeLists.txt new file mode 100644 index 0000000..7bf7aad --- /dev/null +++ b/trash/code/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 2.8) +project( DisplayImage ) +find_package( OpenCV REQUIRED ) +add_executable( DisplayImage DisplayImage.cpp ) +target_link_libraries( DisplayImage ${OpenCV_LIBS} ) diff --git a/trash/code/DisplayImage b/trash/code/DisplayImage new file mode 100755 index 0000000..2347067 Binary files /dev/null and b/trash/code/DisplayImage differ diff --git a/trash/code/DisplayImage.cpp b/trash/code/DisplayImage.cpp new file mode 100644 index 0000000..1d52cf5 --- /dev/null +++ b/trash/code/DisplayImage.cpp @@ -0,0 +1,116 @@ + +#include +#include +#include + + +//callback for trackbar. nothing to be done here +void on_trackbar( int, void* ) +{ +} + +int main(int argc, char* argv[]) +{ + int height,width,step,channels; //parameters of the image we are working on + int posX, posY; //Position objet + CvMoments *moments = (CvMoments*)malloc(sizeof(CvMoments)); //Variable moyenne position + + // Open capture device. 0 is /dev/video0, 1 is /dev/video1, etc. + CvCapture* capture = cvCaptureFromCAM( 0 ); + + if( !capture ){ + printf("ERROR: capture is NULL \n" ); + return -1; + } + + // grab an image from the capture + IplImage* frame = cvQueryFrame( capture ); + + // Create a window in which the captured images will be presented + cvNamedWindow( "Camera", CV_WINDOW_AUTOSIZE ); + cvNamedWindow( "HSV", CV_WINDOW_AUTOSIZE ); + cvNamedWindow( "Binaire", CV_WINDOW_AUTOSIZE ); + + // get the image data + height = frame->height; + width = frame->width; + step = frame->widthStep; + + // capture size - + CvSize size = cvSize(width,height); + + // Initialize different images that are going to be used in the program + IplImage* hsv_frame = cvCreateImage(size, IPL_DEPTH_8U, 3); // image converted to HSV plane + IplImage* threshold = cvCreateImage(size, IPL_DEPTH_8U, 1); + + //Controle couleur + cvNamedWindow("Control", CV_WINDOW_AUTOSIZE); //create a window called "Control" + + //Setup Kirby + int iLowH = 139; + int iHighH = 179; + + int iLowS = 48; + int iHighS = 255; + + int iLowV = 101; + int iHighV = 255; + + //Create trackbars in "Control" window + cvCreateTrackbar("LowH", "Control", &iLowH, 179); //Hue (0 - 179) + cvCreateTrackbar("HighH", "Control", &iHighH, 179); + + cvCreateTrackbar("LowS", "Control", &iLowS, 255); //Saturation (0 - 255) + cvCreateTrackbar("HighS", "Control", &iHighS, 255); + + cvCreateTrackbar("LowV", "Control", &iLowV, 255); //Value (0 - 255) + cvCreateTrackbar("HighV", "Control", &iHighV, 255); + + while( 1 ) + { + + // Get one frame + frame = cvQueryFrame( capture ); + + if( !frame ){ + printf("ERROR: frame is null...\n" ); + break; + } + + // Covert color space to HSV as it is much easier to filter colors in the HSV color-space. + cvCvtColor(frame, hsv_frame, CV_BGR2HSV); + //Binarisation + cvInRangeS(hsv_frame, cvScalar(iLowH, iLowS, iLowV), cvScalar(iHighH, iHighS, iHighV), threshold); + //Blur + cvSmooth( threshold, threshold, CV_GAUSSIAN, 9, 9 ); //Legère suppression des parasites + + // Calculate the moments to estimate the position of the ball + + cvMoments(threshold, moments, 1); + // The actual moment values + double moment10 = cvGetSpatialMoment(moments, 1, 0); + double moment01 = cvGetSpatialMoment(moments, 0, 1); + double area = cvGetCentralMoment(moments, 0, 0); + + posX= moment10/area; + posY= moment01/area; + + cvCircle(frame, cvPoint(posX,posY), 5, cvScalar(0,0,255), -1, 8, 0 ); + + cvShowImage( "Camera", frame ); // Original stream with detected ball overlay + cvShowImage( "HSV", hsv_frame); // Original stream in the HSV color space + cvShowImage( "Binaire", threshold); // The stream after color filtering + + + if( (cvWaitKey(10) ) >= 0 ) break; //Arret capture + } + + cvWaitKey(0); //Fin programme + + // Release the capture device housekeeping + cvReleaseCapture( &capture ); + + cvReleaseImage(&threshold); + + return 0; + } diff --git a/trash/code/Makefile b/trash/code/Makefile new file mode 100644 index 0000000..ea432cd --- /dev/null +++ b/trash/code/Makefile @@ -0,0 +1,163 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 2.8 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running interactive CMake command-line interface..." + /usr/bin/cmake -i . +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." + /usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# The main all target +all: cmake_check_build_system + $(CMAKE_COMMAND) -E cmake_progress_start /home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code/CMakeFiles /home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code/CMakeFiles/progress.marks + $(MAKE) -f CMakeFiles/Makefile2 all + $(CMAKE_COMMAND) -E cmake_progress_start /home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + $(MAKE) -f CMakeFiles/Makefile2 clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + $(MAKE) -f CMakeFiles/Makefile2 preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + $(MAKE) -f CMakeFiles/Makefile2 preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +#============================================================================= +# Target rules for targets named DisplayImage + +# Build rule for target. +DisplayImage: cmake_check_build_system + $(MAKE) -f CMakeFiles/Makefile2 DisplayImage +.PHONY : DisplayImage + +# fast build rule for target. +DisplayImage/fast: + $(MAKE) -f CMakeFiles/DisplayImage.dir/build.make CMakeFiles/DisplayImage.dir/build +.PHONY : DisplayImage/fast + +DisplayImage.o: DisplayImage.cpp.o +.PHONY : DisplayImage.o + +# target to build an object file +DisplayImage.cpp.o: + $(MAKE) -f CMakeFiles/DisplayImage.dir/build.make CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o +.PHONY : DisplayImage.cpp.o + +DisplayImage.i: DisplayImage.cpp.i +.PHONY : DisplayImage.i + +# target to preprocess a source file +DisplayImage.cpp.i: + $(MAKE) -f CMakeFiles/DisplayImage.dir/build.make CMakeFiles/DisplayImage.dir/DisplayImage.cpp.i +.PHONY : DisplayImage.cpp.i + +DisplayImage.s: DisplayImage.cpp.s +.PHONY : DisplayImage.s + +# target to generate assembly for a file +DisplayImage.cpp.s: + $(MAKE) -f CMakeFiles/DisplayImage.dir/build.make CMakeFiles/DisplayImage.dir/DisplayImage.cpp.s +.PHONY : DisplayImage.cpp.s + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... DisplayImage" + @echo "... edit_cache" + @echo "... rebuild_cache" + @echo "... DisplayImage.o" + @echo "... DisplayImage.i" + @echo "... DisplayImage.s" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/trash/code/Sample0_display.cpp b/trash/code/Sample0_display.cpp new file mode 100644 index 0000000..966b8a8 --- /dev/null +++ b/trash/code/Sample0_display.cpp @@ -0,0 +1,30 @@ +#include +#include + +using namespace cv; + +int main(int argc, char** argv ) +{ + CvCapture *capture; + IplImage *image; + + VideoCapture cap(0); // open the default camera + if(!cap.isOpened()) // check if we succeeded + return -1; + Mat edges; + namedWindow("edges",1); + for(;;) + { + Mat frame; + cap >> frame; // get a new frame from camera + cvtColor(frame, edges, CV_BGR2GRAY); + GaussianBlur(edges, edges, Size(7,7), 1.5, 1.5); + Canny(edges, edges, 0, 30, 3); + imshow("edges", edges); + if(waitKey(30) >= 0) break; + } + + waitKey(0); + return 0; + +} diff --git a/trash/code/Sample1.cpp b/trash/code/Sample1.cpp new file mode 100644 index 0000000..6ce9f3c --- /dev/null +++ b/trash/code/Sample1.cpp @@ -0,0 +1,48 @@ +#include +#include + +using namespace cv; + +int main(int argc, char** argv ) +{ + CvCapture *capture; + IplImage *image; + + VideoCapture cap(0); // open the default camera + if(!cap.isOpened()) // check if we succeeded + return -1; + Mat edges; + namedWindow("edges",1); + for(;;) + { + Mat frame; + cap >> frame; // get a new frame from camera + cvtColor(frame, edges, CV_BGR2GRAY); + GaussianBlur(edges, edges, Size(7,7), 1.5, 1.5); + Canny(edges, edges, 0, 30, 3); + imshow("edges", edges); + if(waitKey(30) >= 0) break; + } + + cv::waitKey(0); + return 0; +/* + capture = cvCaptureFromCAM(0); + + if (!capture) { + + printf("Ouverture du flux vidéo impossible !\n"); + return 1; + + } + + cvNamedWindow("Test", CV_WINDOW_AUTOSIZE); + + while(1){ + image = cvQueryFrame(capture); + + cvShowImage("Test", image); + } + return 0; +*/ +} diff --git a/trash/code/cmake_install.cmake b/trash/code/cmake_install.cmake new file mode 100644 index 0000000..05da2fd --- /dev/null +++ b/trash/code/cmake_install.cmake @@ -0,0 +1,44 @@ +# Install script for directory: /home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code + +# Set the install prefix +IF(NOT DEFINED CMAKE_INSTALL_PREFIX) + SET(CMAKE_INSTALL_PREFIX "/usr/local") +ENDIF(NOT DEFINED CMAKE_INSTALL_PREFIX) +STRING(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +IF(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + IF(BUILD_TYPE) + STRING(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + ELSE(BUILD_TYPE) + SET(CMAKE_INSTALL_CONFIG_NAME "") + ENDIF(BUILD_TYPE) + MESSAGE(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +ENDIF(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + +# Set the component getting installed. +IF(NOT CMAKE_INSTALL_COMPONENT) + IF(COMPONENT) + MESSAGE(STATUS "Install component: \"${COMPONENT}\"") + SET(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + ELSE(COMPONENT) + SET(CMAKE_INSTALL_COMPONENT) + ENDIF(COMPONENT) +ENDIF(NOT CMAKE_INSTALL_COMPONENT) + +# Install shared libraries without execute permission? +IF(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + SET(CMAKE_INSTALL_SO_NO_EXE "1") +ENDIF(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + +IF(CMAKE_INSTALL_COMPONENT) + SET(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") +ELSE(CMAKE_INSTALL_COMPONENT) + SET(CMAKE_INSTALL_MANIFEST "install_manifest.txt") +ENDIF(CMAKE_INSTALL_COMPONENT) + +FILE(WRITE "/home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code/${CMAKE_INSTALL_MANIFEST}" "") +FOREACH(file ${CMAKE_INSTALL_MANIFEST_FILES}) + FILE(APPEND "/home/sasl/eleves/rob/3408212/rob3-projetsinfo-g15-2017/code/${CMAKE_INSTALL_MANIFEST}" "${file}\n") +ENDFOREACH(file) diff --git a/trash/code/desktop.ini b/trash/code/desktop.ini new file mode 100644 index 0000000..995bb2e --- /dev/null +++ b/trash/code/desktop.ini @@ -0,0 +1,5 @@ +[.ShellClassInfo] +InfoTip=Ce dossier est partag en ligne. +IconFile=C:\Program Files\Google\Drive\googledrivesync.exe +IconIndex=16 + \ No newline at end of file diff --git a/trash/code/motor-control-serial.cpp b/trash/code/motor-control-serial.cpp new file mode 100644 index 0000000..c017b2f --- /dev/null +++ b/trash/code/motor-control-serial.cpp @@ -0,0 +1,69 @@ +#include "mbed.h" + +DigitalOut led2(P0_5); +DigitalOut led1(LED1); +PwmOut servo1(P2_5); +PwmOut servo2(P2_4); +//Serial pc(USBTX,USBRX); +Serial pc(USBTX,USBRX); +Thread mythread; + +void console_thread(){ + char buff[255]; + char *c0; + char *c; + int vals[3]; + int num=0; + //pc.printf("Ask for servos with XXX,YYY \n\r(where XXX and YYY are integers 1/1000 of 20ms)\n\r"); //Commented in RELEASE + + while (true) { + c0=buff; + c=buff; + for(num=0;num<2;){ + + *c=pc.getc(); // echo input back to terminal + pc.putc(*c); + if(*c == 'q') + break ; + if((*c == '\n') || (*c == '\r') || (*c == '\0') || (*c == ' ') || (*c == ',')) + { + // + *c='\0'; + vals[num]=atoi(c0); + c0=c+1; + num++; + } + c++; + } + float s_vals[2]; + int idx=0; + for(idx=0;idx<2;idx++){ + if(vals[idx]<0) vals[idx]=0; + if(vals[idx]>1000) vals[idx]=1000; + s_vals[idx]=vals[idx]*0.001; + } + servo1=s_vals[0]; + servo2=s_vals[1]; + + pc.printf("%d,%d \n",vals[0],vals[1]); + wait(0.5); + + + + } +} + +int main() { + mythread.start(console_thread); + int mystate=0; + servo1.period_ms(20); + servo2.period_ms(20); + while (true) { + led2 = !led2; + led1 = !led1; + mystate = !mystate; + wait(0.5); + } +} + +