Compilation d'un nouveau fichier sous Darwin : -modifier le fichier /OpenScientist/v/CoinXt/Darwin.make -modifier le fichier /OpenScientist/v/CoinXt/requirement cmt/MakeXt ../Darwin/nv_fichier passage float->string char u[32]; sprintf (u,"%g",ma_valeur); passage de HEPVis sous lx1 ftp ftp puis put du fichier.tar telnet lx1 ------------------------------------------------------------------- ------------------------------------------------------------------- HEPVis dans project ss lx1 : setenv LD_LIBRARY_PATH ../i386_linux:${LD_LIBRARY_PATH} Debugger : gdb ../toto.exe puis "r" recompiler HEPVis library : make HEPVisAnalysis tar de dossiers : tar -c app/ titi/ ... -vzf toto.tgz Hachures : Passer les SbHatch sur de la tesselisation pour gerer les pb avec les polygones non convexes ------------------------------------------------------------------- ------------------------------------------------------------------- AUGER5 compil ssous auger5 : ssh -l garnier auger5 changer le CMTCONFIG en rh93_gcc322 ne pas accrocher la library MESA ne pas definir de COMPILER_PATH -Compil de povama, ne pas lancer la config e auger5 avant ! ------------------------------------------------------------------- ------------------------------------------------------------------- PROG : - delete sur les tableaux - for a verifier qu'ils ne passent pas en negatif for(a=0;a maintenant on travaille dans le rep du checkout et l'on peut supprimer le rep d'origine - recuperer un rep : cvs checkout garnier/nom_du_rep - mise a jour a partir du rep distant : cvs -n update puis cvs -m "" commit - CVS a fermilab : setenv CVSROOT :pserver:hvread@cepasrv1.fnal.gov:/home/local/viscvs/cvs - Dernière version au Head d'un fichier CVS -n update -A ou cvs -n update -r HEAD - diff sans tenir compte des blancs : cvs diff -r HEAD -w | more - modif depuis 7 jours : cvs -n update -D "7 days ago" - modif depuis derniere revision : cvs -n update -r "v15r0" - Ajouter récursivement un repertoire : find . -not -name "CVS" -exec cvs add -m "" {} \; puis cvs commit ------------------------------------------------------------------- ------------------------------------------------------------------- FIND : pour supprimer les fichiers les plus anciens : find . -not -newer toto -exec rm {} \; // commencer par un echo de pref ! find . -name "to*" -print find . -name "toto*" -exec grep "titi" {} \; -print find -not -name "CVS" pour lister tout sauf les CVS ------------------------------------------------------------------- ------------------------------------------------------------------- POVAMA : cvs de POVAMA : setenv CVSROOT /projetcs/SoPovama/cvsroot/ ChangeLog : Ctrl X4A pour ajouter des commentaires dans le fichier ChangeLog a partir de xemacs ------------------------------------------------------------------- ------------------------------------------------------------------- GeoModel : source /exp/atlas/projects/distribution/work/setup.csh cd /exp/atlas/projects/graphics/DetectorDescription/GeoModel/HitTest/HitTest-00-00-00/cmt source setup.csh cd ../run athena.exe GeoModelDisplay.txt == lancer dans un nv terminal : 'source /projects/Agora/v2r0/tools/run_geomodel.csh' ------------------------------------------------------------------- ------------------------------------------------------------------- Coin 2.2.1 Compil avec Coin 2.2.1 : -> Mac, renommer le /Library/Framework/Coin2.2.1.framework en /Library/Framework/Inventor.framework -> Atlas, effacer l'ancienne librarie de CoinGl sur /InstallArea/lib/libCoin.so (elle sera lue dans le nouveau dir de Coin 2.2.1) ------------------------------------------------------------------- ------------------------------------------------------------------- COMPILATION : If you use a symbol from a library that you are not explicitly linking against, you will get a single error message for each such library of the form: ld: object_file illegal reference to symbol: symbol defined in indirectly referenced dynamic library: library if you see this error message, you must add the library library to your link command. trouver tt les libraries loadées au chargement :setenv DYLD_PRINT_LIBRARIES 1 - ld: Undefined symbols:vtable for "...." : suppress the constructeur in "...." ------------------------------------------------------------------- ------------------------------------------------------------------- DEBUG sous mac :- Compiler le prog avec la librarie -lMallocDebug - lancer open /Developer/Applications/Performance\ Tools/MallocDebug.app puis lancer le fichier concerné - lancer gdb puis break sur malloc_printf ------------------------------------------------------------------- ------------------------------------------------------------------- OPENGL sur le mac : GL_CFLAGS = -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -DAPPLE_GL GL_LIBS = -framework OpenGL -framework AGL et aussi sur les fichiers : #ifdef APPLE_GL #include #include #else #include #include #endif ------------------------------------------------------------------- ------------------------------------------------------------------- CMT Now rebuilding ../src/getline.pp /bin/sh: line 1: cd: ../src/: No such file or directory /bin/sh: line 1: ../src/getline.pp: No such file or directory -> pb, CMTPATH mal défini. #CMT> version_conflict : BestFitSelector::operate> make: *** [gtk] Error 8 -> CMTCONFIG mal défini ------------------------------------------------------------------- ------------------------------------------------------------------- Windows compilation : nmake -nmake ------------------------------------------------------------------- ------------------------------------------------------------------- GTK Compiler du gtk sur atlas : gtk1 no pb gtk : gtkglarea2 n'est pas défini sur atlas, il faut dans le requirement de CoinGtk, passe le gtk2 avec le gtkglarea1. Et dans le gtkglarea1, changer le requirement vers le gtk2 Passer de Gtk1 a Gtk2 : - changer le requirement du Interface Gtk - recompiler le CoinGtk,HEPVis et OnX + autres... ------------------------------------------------------------------- ------------------------------------------------------------------- QT Lancement de OnX qt : open ../Darwin/OnX_oqt.app WM -Changer de Window manager sur le Mac : copier le fichier .xinitrc à la racine du home dir.Ne plus lancer quartz-wm à al fin de ce fichier, mais twm& puis exec xterm -geometry 50x40+20+20 -name login Le nouveau WM ne sera alors plus quartz-wm mais twm. Pour le lancer, lancer simplement X11. Pour rechanger, tuer twm, puis lancer quartz..... - Sur fvwm, pas grand chose qui marche par rapport aux décorations de Onx, seul le resize event est pris en compte. _________________________________________________________________________ OpenScientist install Changer le source setup.csh sur le nouveau CMT venu avec la nouvelle install _________________________________________________________________________ Optimisation #ifdef DEBUG_TIME #include #endif struct timeval val; struct timezone zone; gettimeofday(&val,&zone); _________________________________________________________________________ PAW pour lancer pawex24 : lancer d'abord pawex11 13 16 _________________________________________________________________________ ONX Creation de radioButtons : OnX ui_setParameter xyLayout.set true OnX region_setParameter legoLayout FALSE OnX ui_setParameter legoLayout.set false OnX ui_setParameter xyLayout.set true OnX ui_setParameter legoLayout.set false OnX region_setParameter legoLayout TRUE OnX ui_setParameter xyLayout.set false OnX ui_setParameter legoLayout.set true _________________________________________________________________________ SVN : checkout en haut, nom du repository : en bas, nom du nouveau dossier _________________________________________________________________________ ECOLE INFO svn import -m import --username roscoff --password RausQuof Analysis http://svn.lal.in2p3.fr/projects/Roscoff/LHCb/Analysis python /Users/laurentgarnier/Work/ecole_Roscoff/Release/v0/tests/FwTest.py svn co --username ens --password ens#58:ge http://grid05.lal.in2p3.fr/svn/ens svn delete Roscoff/ svn ci -m "nettoyage" --->cd ~/Work/ecole_Roscoff/collaboration;svn co --username ens --password ens#58:ge http://grid05.lal.in2p3.fr/svn/ens/LHCb/Release;python cmtco.py http://grid05.lal.in2p3.fr/svn/ens/LHCb Release/v0/cmt/requirements rm ../../../../InstallArea/Darwin/lib/*; rm ../../../../InstallArea/Darwin/bin/* source Analysis/v0/cmt/setup.csh source Base/v0/cmt/setup.csh source Core/v0/cmt/setup.csh source Detector/v0/cmt/setup.csh source Event/v0/cmt/setup.csh source Tools/v0/cmt/setup.csh opendiff _________________________________________________________________________ OnXDraw login on asc : cd /users/ens/ens/MG/MG04/v3/cmt;source setup.csh;../alpha/Draw.exe _________________________________________________________________________ Trac pysqlite 1.0 ne compile pas ... pysqlite 1.1 nécéssite sqlite3 sqlite3 crée un exe sqlite3 et 2 lib :libsqlite3.a et libsqlite3.la le tout compile avec pysqlite clearsilver 0.9.12 avec ruby 1.8.0, python 2.3, perl 5.006 apache 2.0.48 .... ./configure --prefix=/sw --with-ruby=/sw/bin/ruby -with-apache=/Library/Apache2/ make tout passe sans erreurs, qq warnings sur ruby et neo_utils : /sw/bin/ruby install.rb setup install.rb:15: warning: instance_methods: parameter will default to 'true' as of 1.8.1 install.rb: entering setup phase... ---> lib <--- lib ---> ext ---> ext/hdf make gcc -fno-common -g -O2 -fno-common -pipe -I. -I/sw/lib/ruby/1.8/powerpc-darwin -I/sw/lib/ruby/1.8/powerpc-darwin -I/sw/local/clearsilver-0.9.12/ruby/ext/hdf -DHAVE_CLEARSILVER_H -I../../.. -I/sw/include -c neo_cs.c neo_cs.c: In function `c_parse_str': neo_cs.c:74: warning: passing arg 2 of `rb_str2cstr' from incompatible pointer type gcc -fno-common -g -O2 -fno-common -pipe -I. -I/sw/lib/ruby/1.8/powerpc-darwin -I/sw/lib/ruby/1.8/powerpc-darwin -I/sw/local/clearsilver-0.9.12/ruby/ext/hdf -DHAVE_CLEARSILVER_H -I../../.. -I/sw/include -c neo_util.c neo_util.c: In function `h_escape': neo_util.c:451: warning: passing arg 2 of `rb_str2cstr' from incompatible pointer type neo_util.c: In function `h_unescape': neo_util.c:472: warning: passing arg 2 of `rb_str2cstr' from incompatible pointer type cc -dynamic -bundle -L"/sw/lib" -L"../../../libs" -o hdf.bundle neo_cs.o neo_util.o -lruby -lneo_cs -lneo_utl -ldl -lobjc <--- ext/hdf <--- ext install.rb: setup done. Running ruby test Passed ruby test trac & sqlite3 & pysqlite 1.1 ne marche pas, retour a pysqlite 1.0 et sqlite 2.8.15 et tout est ok