Apres avoir cherché (presque !) des années un logiciel tel que TeXgraph, je viens afin de le trouver... seul probleme je suis essentiellement sur Mac OS X, en particulier mon portable sur lequel j'écris mes cours. Autrement j'utilise beaucoup Linux mais avec des acces plus limités (notamment le calcul scientifique).
Bien sur je pourrais utiliser wine (l'émulateur window pour Linux/Unix) et la version window mais j'ai préféré essayer de compiler TeXgraph avec Lazarus pour Mac.
J'ai donc dans un premier temps installé Lazarus à partir du site officiel http://wiki.lazarus.freepascal.org/Installing_Lazarus_on_MacOS_X. Tout c'est bien passé et j'ai Lazarus version 0.9.26.2, et qui marche !
Au regard des détails postés sur la page de téléchargement http://texgraph.tuxfamily.org/Telecharger.html j'ai donc téléchargé la version 1.93 de TeXgraph puisque ma version de Lazarus est < 0.9.27
Je n'ai plus fait de pascal depuis quinze ans mais en revanche j'écris beaucoup de codes en C/C++ et par reflexe je n'ai pas utilisé l'interface graphique de Lazarus mais directement la commande en ligne
- Code: Tout sélectionner
lazbuild TeXgraph.lpi
J'ai eu dans un premier temps des problemes avec les chemins des units inclues dans le code. J'ai plus ou moins résolu ce probleme et plusieurs fichiers compilent correctement (voir sortie du compilateur ci-dessus). Mais j'ai un probleme avec Unit1.pas, et je n'ai pas l'impression que ceci soit directement du à Lazarus car cela ressemble plus à une inclusion d'units manquante ou incomplete. Pouvez-vous m'aiguiller vers une solution ?
- Code: Tout sélectionner
TCompiler.Compile WorkingDir="/Users/gibelin/Tmp/TeXgraph1.93/TeXgraph/src/" CompilerFilename="/usr/local/bin/ppc386" CompilerParams=
" -MObjFPC -Sgi -O1 -gl -k-framework -kCarbon -k-framework -kOpenGL -k'-dylib_file' -k'/System/Library/Frameworks/OpenGL.framework/V
ersions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib' -WG -vewnhi -l -Fu../..
/../../../../Developer/lazarus/components/custom/ -Fu../../../../../../Developer/lazarus/components/ -Fu../../../../../../Developer/l
azarus/packager/units/i386-darwin/ -Fu../../../../../../Developer/lazarus/lcl/units/i386-darwin/ -Fu../../../../../../Developer/lazar
us/lcl/units/i386-darwin/carbon/ -Fu../../../../../../Developer/lazarus/components/codetools/units/i386-darwin/ -Fu. -oTeXgraph -dLCL
-dLCLcarbon TeXgraph.lpr"
[TCompiler.Compile] CmdLine="/usr/local/bin/ppc386 -MObjFPC -Sgi -O1 -gl -k-framework -kCarbon -k-framework -kOpenGL -k'-dylib_file
' -k'/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Version
s/A/Libraries/libGL.dylib' -WG -vewnhi -l -Fu../../../../../../Developer/lazarus/components/custom/ -Fu../../../../../../Developer/la
zarus/components/ -Fu../../../../../../Developer/lazarus/packager/units/i386-darwin/ -Fu../../../../../../Developer/lazarus/lcl/units
/i386-darwin/ -Fu../../../../../../Developer/lazarus/lcl/units/i386-darwin/carbon/ -Fu../../../../../../Developer/lazarus/components/
codetools/units/i386-darwin/ -Fu. -oTeXgraph -dLCL -dLCLcarbon TeXgraph.lpr"
Hint: Start of reading config file /etc/fpc.cfg
Hint: End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 2.2.2 [2008/08/03] for i386
Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Darwin for i386
Compiling TeXgraph.lpr
Compiling Editeur.pas
Compiling Unit1.pas
Unit1.pas(378,31) Hint: Parameter "Sender" not used
Unit1.pas(779,24) Error: Identifier not found "mac2d"
Unit1.pas(785,39) Error: Identifier not found "mac2d"
Unit1.pas(791,24) Error: Identifier not found "mac3d"
Unit1.pas(797,39) Error: Identifier not found "mac2d"
Unit1.pas(803,12) Error: Identifier not found "mac2d"
Unit1.pas(803,25) Error: Identifier not found "mac3d"
Unit1.pas(873,58) Warning: use of NEW or DISPOSE for untyped pointers is meaningless
Unit1.pas(902,98) Hint: Local variable "nom" does not seem to be initialized
Unit1.pas(928,13) Error: Identifier not found "Yafond"
Unit1.pas(943,44) Error: Identifier not found "FondName"
Unit1.pas(946,63) Error: Identifier not found "Fondname"
Unit1.pas(955,21) Error: Identifier not found "FondLarge"
Unit1.pas(955,42) Error: Identifier not found "fondHaut"
Unit1.pas(956,21) Error: Identifier not found "fondOrigX"
Unit1.pas(956,38) Error: Identifier not found "fondOrigY"
Unit1.pas(957,18) Error: Identifier not found "YaFond"
Unit1.pas(966,112) Error: Identifier not found "FondName"
Unit1.pas(973,17) Error: Identifier not found "Yafond"
Unit1.pas(975,23) Error: Identifier not found "Yafond"
Unit1.pas(1038,12) Error: Identifier not found "Apercu"
Unit1.pas(1053,16) Error: Identifier not found "OffsetY"
Unit1.pas(1054,16) Error: Identifier not found "OffsetX"
Unit1.pas(1058,35) Error: Identifier not found "Yafond"
Unit1.pas(1061,50) Error: Identifier not found "Xentier"
Unit1.pas(1061,60) Error: Identifier not found "fondOrigX"
Unit1.pas(1061,69) Error: Identifier not found "Yentier"
Unit1.pas(1061,79) Error: Identifier not found "fondOrigY"
Unit1.pas(1061,88) Error: Identifier not found "Xentier"
Unit1.pas(1061,98) Error: Identifier not found "FondLarge"
Unit1.pas(1061,108) Error: Identifier not found "fondOrigX"
Unit1.pas(1061,117) Error: Identifier not found "Yentier"
Unit1.pas(1061,127) Error: Identifier not found "FondOrigY"
Unit1.pas(1061,136) Error: Identifier not found "fondHaut"
Unit1.pas(1064,34) Error: Identifier not found "ExportPrn"
Unit1.pas(1065,42) Error: Identifier not found "Dessiner_elements"
Unit1.pas(1066,34) Error: Identifier not found "ExportPrn"
Unit1.pas(1070,16) Error: Identifier not found "OffsetX"
Unit1.pas(1070,28) Error: Identifier not found "OffsetY"
Unit1.pas(1207,15) Error: Identifier not found "Yafond"
Unit1.pas(1209,34) Error: Identifier not found "Xentier"
Unit1.pas(1209,44) Error: Identifier not found "fondOrigX"
Unit1.pas(1209,53) Error: Identifier not found "Yentier"
Unit1.pas(1209,63) Error: Identifier not found "fondOrigY"
Unit1.pas(1209,72) Error: Identifier not found "Xentier"
Unit1.pas(1209,82) Error: Identifier not found "FondLarge"
Unit1.pas(1209,92) Error: Identifier not found "fondOrigX"
Unit1.pas(1209,101) Error: Identifier not found "Yentier"
Unit1.pas(1209,111) Error: Identifier not found "FondOrigY"
Unit1.pas(1209,120) Error: Identifier not found "fondHaut"
Unit1.pas(1212,22) Error: Identifier not found "Dessiner_elements"
Unit1.pas(1285,42) Error: Identifier not found "Xreel"
Unit1.pas(1285,56) Error: Identifier not found "Yreel"
Unit1.pas(1285,56) Fatal: There were 50 errors compiling module, stopping
ERROR: failed compiling of project /Users/gibelin/Tmp/TeXgraph1.93/TeXgraph/src/TeXgraph.lpi
Je pense notamment que l'ensemble des Identifier ne sont pas trouvés car non définis... Peut-etre dans une units et si oui laquelle ?
A noter que j'ai trouvé a posteriori cet entrée dans l'ancien forum http://texgraph.forumpro.fr/questions-rponses-f3/sur-mac-t219.htm mais ceci ne résout pas mon probleme. Quelques commentaires à propos cette entrée :
n'est a priori pas le probleme principal et on peut toujours bricoler quelque chose (en fait encapsuler le programme à la main) du moment où l'executable fonctionne (comme pour Linux, voir par exemple http://www.rhythmiccanvas.com/software/ ... index.html).reste plus qu'a obtenir un .app correct..
Enfin :
- Code: Tout sélectionner
Il faudrait donc qu'un utilisateur Mac s'y colle, il y en a un qui m'a dit y être parvenu mais dont je n'ai plus jamais eu de nouvelles depuis!
Je veux bien, si je réussi à compiler TeXgraph, vous envoyer un executable pour Mac OS X 10.5...
Merci par avance de l'aide que vous pourriez me porter.
Cordialement
GiB