Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| smarteiffel [Le 30/10/2011, 14:51] – Cration + tutorial pour la compilation de SmartEiffel ordiman85 | smarteiffel [Le 15/12/2011, 15:22] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | {{tag> | ||
| + | ---- | ||
| + | |||
| + | ====== SmartEiffel : Compilateur Eiffel GNU ====== | ||
| + | |||
| + | **SmartEiffel** est un compilateur libre pour Eiffel, un langage purement orienté objet. | ||
| + | |||
| + | |||
| + | ===== Compilation de SmartEiffel ===== | ||
| + | Premièrement, | ||
| + | < | ||
| + | |||
| + | Vous devez ensuite aller chercher l' | ||
| + | |||
| + | <note important> | ||
| + | |||
| + | Un tutoriel pour y remédier existe : http:// | ||
| + | |||
| + | Ouvrez un terminal (Applications-> | ||
| + | < | ||
| + | cd Répertoire_Contenant_l_archive | ||
| + | tar xvf smarteiffel.tgz | ||
| + | </ | ||
| + | |||
| + | Rendez-vous dans le répertoire de SmartEiffel. | ||
| + | < | ||
| + | cd SmartEiffel | ||
| + | </ | ||
| + | |||
| + | Tapez la commande de configuration : | ||
| + | < | ||
| + | ./configure | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | < | ||
| + | ***********/ | ||
| + | This configure file is just for information ! | ||
| + | It will analyze your system and warn you for missing dependences librairies. | ||
| + | It does not generate makefile or any other files. | ||
| + | ***********/ | ||
| + | |||
| + | Headers : | ||
| + | vfork.h not found, please install it if you want build SmartEiffel correctly | ||
| + | |||
| + | Functions : | ||
| + | clock_gettime not found, please install it if you want build SmartEiffel correctly | ||
| + | |||
| + | ##################################### | ||
| + | |||
| + | If they' | ||
| + | |||
| + | Then type VerifyAndStripTools to complete the installation | ||
| + | </ | ||
| + | Pas de panique, certains éléments ne sont pas indispensables au bon fonctionnement de la compilation. Cependant, si le résultat affiche plus d' | ||
| + | </ | ||
| + | |||
| + | Lancez la compilation : | ||
| + | < | ||
| + | make | ||
| + | </ | ||
| + | |||
| + | Après quelques minutes, il devrait s' | ||
| + | < | ||
| + | SmartEiffel Release 2.4 (svn snaphsot 9308) [????] | ||
| + | |||
| + | Generating configuration in / | ||
| + | OK | ||
| + | |||
| + | Using the existing compile_to_c as bootstrap compiler | ||
| + | |||
| + | Building the compiler | ||
| + | compile.c: In function ‘basic_exec_posix_put_character’: | ||
| + | compile.c: | ||
| + | OK | ||
| + | |||
| + | Building large tools (using the SmartEiffel parser and AST) | ||
| + | OK | ||
| + | |||
| + | Building helper tools | ||
| + | OK | ||
| + | |||
| + | Generating API docs | ||
| + | OK | ||
| + | |||
| + | Done. | ||
| + | </ | ||
| + | |||
| + | ===== Installation de SmartEiffel ===== | ||
| + | |||
| + | < | ||
| + | |||
| + | Dans un premier temps, créez un dossier .local/bin. | ||
| + | < | ||
| + | mkdir ~/ | ||
| + | </ | ||
| + | |||
| + | Copiez les fichiers exécutables vers .local/bin en remplaçant " | ||
| + | < | ||
| + | cp -R Chemin_vers_SmartEiffel/ | ||
| + | </ | ||
| + | |||
| + | Modifiez le fichier .bashrc de votre dossier personnel : | ||
| + | < | ||
| + | gedit ~/.bashrc | ||
| + | </ | ||
| + | |||
| + | Ajoutez-y les lignes suivantes à la fin du fichier : | ||
| + | < | ||
| + | # Les exécutables/ | ||
| + | export PATH=$PATH: | ||
| + | </ | ||
| + | |||
| + | Enfin, fermez les fenêtres de terminal pour que les changements soient effectués. | ||
| + | |||
| + | Vous pourrez désormais compiler vos fichiers *.e grâce à la commande : | ||
| + | < | ||
| + | compile -o Mon_executable Mon_fichier.e | ||
| + | </ | ||
