| 1 | Compilation d'un nouveau fichier sous Darwin :
|
|---|
| 2 | -modifier le fichier /OpenScientist/v/CoinXt/Darwin.make
|
|---|
| 3 | -modifier le fichier /OpenScientist/v/CoinXt/requirement
|
|---|
| 4 | cmt/MakeXt
|
|---|
| 5 | ../Darwin/nv_fichier
|
|---|
| 6 |
|
|---|
| 7 | passage float->string
|
|---|
| 8 | char u[32];
|
|---|
| 9 | sprintf (u,"%g",ma_valeur);
|
|---|
| 10 |
|
|---|
| 11 | passage de HEPVis sous lx1
|
|---|
| 12 | ftp ftp puis put du fichier.tar
|
|---|
| 13 | telnet lx1
|
|---|
| 14 |
|
|---|
| 15 | -------------------------------------------------------------------
|
|---|
| 16 | -------------------------------------------------------------------
|
|---|
| 17 | HEPVis dans project ss lx1 :
|
|---|
| 18 | setenv LD_LIBRARY_PATH ../i386_linux:${LD_LIBRARY_PATH}
|
|---|
| 19 |
|
|---|
| 20 | Debugger :
|
|---|
| 21 | gdb ../toto.exe puis "r"
|
|---|
| 22 |
|
|---|
| 23 | recompiler HEPVis library : make HEPVisAnalysis
|
|---|
| 24 |
|
|---|
| 25 | tar de dossiers :
|
|---|
| 26 | tar -c app/ titi/ ... -vzf toto.tgz
|
|---|
| 27 |
|
|---|
| 28 | Hachures : Passer les SbHatch sur de la tesselisation pour gerer les pb avec les polygones
|
|---|
| 29 | non convexes
|
|---|
| 30 |
|
|---|
| 31 | -------------------------------------------------------------------
|
|---|
| 32 | -------------------------------------------------------------------
|
|---|
| 33 | AUGER5
|
|---|
| 34 | compil ssous auger5 :
|
|---|
| 35 | ssh -l garnier auger5
|
|---|
| 36 | changer le CMTCONFIG en rh93_gcc322
|
|---|
| 37 |
|
|---|
| 38 | ne pas accrocher la library MESA
|
|---|
| 39 | ne pas definir de COMPILER_PATH
|
|---|
| 40 | -Compil de povama, ne pas lancer la config e auger5 avant !
|
|---|
| 41 |
|
|---|
| 42 | -------------------------------------------------------------------
|
|---|
| 43 | -------------------------------------------------------------------
|
|---|
| 44 | PROG :
|
|---|
| 45 | - delete sur les tableaux
|
|---|
| 46 | - for a verifier qu'ils ne passent pas en negatif
|
|---|
| 47 | for(a=0;a<b;a++) si b<0 on boucle !!!
|
|---|
| 48 |
|
|---|
| 49 | - pb sur les std::vector en bout de tableau si on indexe le prochain element
|
|---|
| 50 | - tab a la place des " "
|
|---|
| 51 | - sur les for(...a.size()) a éviter
|
|---|
| 52 |
|
|---|
| 53 | -------------------------------------------------------------------
|
|---|
| 54 | -------------------------------------------------------------------
|
|---|
| 55 | CVS
|
|---|
| 56 | - declarer un CVROOT : dans le fichier de conf .cshrc , declarer le CVSPATH=/projects/cvs/garnier avec le lien garnier qui pointe sur le rep cvs qui servira
|
|---|
| 57 | - Ajouter un repertoire : se placer en dehors du rep a jouter puis
|
|---|
| 58 | cvs import -m "" garnier/nom_nv_rep nom version (realese?)
|
|---|
| 59 | puis "cvs checkout -d garnier/nom_nv_rep dirLocal" pour le recuperer en local
|
|---|
| 60 | puis cvs commit pour mettre a jour le rep distant
|
|---|
| 61 | -> maintenant on travaille dans le rep du checkout et l'on peut supprimer le rep d'origine
|
|---|
| 62 |
|
|---|
| 63 | - recuperer un rep : cvs checkout garnier/nom_du_rep
|
|---|
| 64 | - mise a jour a partir du rep distant : cvs -n update
|
|---|
| 65 | puis cvs -m "" commit
|
|---|
| 66 | - CVS a fermilab : setenv CVSROOT :pserver:hvread@cepasrv1.fnal.gov:/home/local/viscvs/cvs
|
|---|
| 67 | - Dernière version au Head d'un fichier CVS -n update -A ou cvs -n update -r HEAD
|
|---|
| 68 | - diff sans tenir compte des blancs : cvs diff -r HEAD -w | more
|
|---|
| 69 | - modif depuis 7 jours : cvs -n update -D "7 days ago"
|
|---|
| 70 | - modif depuis derniere revision : cvs -n update -r "v15r0"
|
|---|
| 71 | - Ajouter récursivement un repertoire : find . -not -name "CVS" -exec cvs add -m "" {} \;
|
|---|
| 72 | puis cvs commit
|
|---|
| 73 | -------------------------------------------------------------------
|
|---|
| 74 | -------------------------------------------------------------------
|
|---|
| 75 | FIND : pour supprimer les fichiers les plus anciens :
|
|---|
| 76 | find . -not -newer toto -exec rm {} \; // commencer par un echo de pref !
|
|---|
| 77 | find . -name "to*" -print
|
|---|
| 78 | find . -name "toto*" -exec grep "titi" {} \; -print
|
|---|
| 79 | find -not -name "CVS" pour lister tout sauf les CVS
|
|---|
| 80 |
|
|---|
| 81 | -------------------------------------------------------------------
|
|---|
| 82 | -------------------------------------------------------------------
|
|---|
| 83 | POVAMA : cvs de POVAMA : setenv CVSROOT /projetcs/SoPovama/cvsroot/
|
|---|
| 84 |
|
|---|
| 85 | ChangeLog : Ctrl X4A pour ajouter des commentaires dans le fichier ChangeLog a partir de xemacs
|
|---|
| 86 |
|
|---|
| 87 | -------------------------------------------------------------------
|
|---|
| 88 | -------------------------------------------------------------------
|
|---|
| 89 | GeoModel :
|
|---|
| 90 |
|
|---|
| 91 | source /exp/atlas/projects/distribution/work/setup.csh
|
|---|
| 92 | cd /exp/atlas/projects/graphics/DetectorDescription/GeoModel/HitTest/HitTest-00-00-00/cmt
|
|---|
| 93 | source setup.csh
|
|---|
| 94 | cd ../run
|
|---|
| 95 | athena.exe GeoModelDisplay.txt
|
|---|
| 96 | ==
|
|---|
| 97 | lancer dans un nv terminal :
|
|---|
| 98 | 'source /projects/Agora/v2r0/tools/run_geomodel.csh'
|
|---|
| 99 |
|
|---|
| 100 | -------------------------------------------------------------------
|
|---|
| 101 | -------------------------------------------------------------------
|
|---|
| 102 | Coin 2.2.1
|
|---|
| 103 | Compil avec Coin 2.2.1 :
|
|---|
| 104 | -> Mac, renommer le /Library/Framework/Coin2.2.1.framework en /Library/Framework/Inventor.framework
|
|---|
| 105 | -> Atlas, effacer l'ancienne librarie de CoinGl sur /InstallArea/lib/libCoin.so (elle sera lue dans le nouveau dir de Coin 2.2.1)
|
|---|
| 106 |
|
|---|
| 107 | -------------------------------------------------------------------
|
|---|
| 108 | -------------------------------------------------------------------
|
|---|
| 109 | COMPILATION :
|
|---|
| 110 |
|
|---|
| 111 | 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:
|
|---|
| 112 | ld: object_file illegal reference to symbol: symbol defined in indirectly referenced dynamic library: library
|
|---|
| 113 | if you see this error message, you must add the library library to your link command.
|
|---|
| 114 |
|
|---|
| 115 | trouver tt les libraries loadées au chargement :setenv DYLD_PRINT_LIBRARIES 1
|
|---|
| 116 |
|
|---|
| 117 | - ld: Undefined symbols:vtable for "...." : suppress the constructeur in "...."
|
|---|
| 118 |
|
|---|
| 119 | -------------------------------------------------------------------
|
|---|
| 120 | -------------------------------------------------------------------
|
|---|
| 121 | DEBUG
|
|---|
| 122 |
|
|---|
| 123 | sous mac :- Compiler le prog avec la librarie -lMallocDebug
|
|---|
| 124 | - lancer open /Developer/Applications/Performance\ Tools/MallocDebug.app puis lancer le fichier concerné
|
|---|
| 125 | - lancer gdb puis break sur malloc_printf
|
|---|
| 126 | -------------------------------------------------------------------
|
|---|
| 127 | -------------------------------------------------------------------
|
|---|
| 128 | OPENGL sur le mac :
|
|---|
| 129 | GL_CFLAGS = -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -DAPPLE_GL
|
|---|
| 130 | GL_LIBS = -framework OpenGL -framework AGL
|
|---|
| 131 |
|
|---|
| 132 | et aussi sur les fichiers :
|
|---|
| 133 | #ifdef APPLE_GL
|
|---|
| 134 | #include <gl.h>
|
|---|
| 135 | #include <glu.h>
|
|---|
| 136 | #else
|
|---|
| 137 | #include <GL/gl.h>
|
|---|
| 138 | #include <GL/glu.h>
|
|---|
| 139 | #endif
|
|---|
| 140 |
|
|---|
| 141 |
|
|---|
| 142 | -------------------------------------------------------------------
|
|---|
| 143 | -------------------------------------------------------------------
|
|---|
| 144 | CMT
|
|---|
| 145 | Now rebuilding ../src/getline.pp
|
|---|
| 146 | /bin/sh: line 1: cd: ../src/: No such file or directory
|
|---|
| 147 | /bin/sh: line 1: ../src/getline.pp: No such file or directory
|
|---|
| 148 | -> pb, CMTPATH mal défini.
|
|---|
| 149 |
|
|---|
| 150 | #CMT> version_conflict : BestFitSelector::operate>
|
|---|
| 151 | make: *** [gtk] Error 8
|
|---|
| 152 | -> CMTCONFIG mal défini
|
|---|
| 153 |
|
|---|
| 154 | -------------------------------------------------------------------
|
|---|
| 155 | -------------------------------------------------------------------
|
|---|
| 156 | Windows
|
|---|
| 157 | compilation : nmake -nmake
|
|---|
| 158 |
|
|---|
| 159 | -------------------------------------------------------------------
|
|---|
| 160 | -------------------------------------------------------------------
|
|---|
| 161 | GTK
|
|---|
| 162 | Compiler du gtk sur atlas :
|
|---|
| 163 | gtk1 no pb
|
|---|
| 164 | 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
|
|---|
| 165 |
|
|---|
| 166 | Passer de Gtk1 a Gtk2 :
|
|---|
| 167 | - changer le requirement du Interface Gtk
|
|---|
| 168 | - recompiler le CoinGtk,HEPVis et OnX
|
|---|
| 169 | + autres...
|
|---|
| 170 | -------------------------------------------------------------------
|
|---|
| 171 | -------------------------------------------------------------------
|
|---|
| 172 | QT
|
|---|
| 173 | Lancement de OnX qt : open ../Darwin/OnX_oqt.app
|
|---|
| 174 |
|
|---|
| 175 | WM
|
|---|
| 176 | -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
|
|---|
| 177 | twm& puis exec xterm -geometry 50x40+20+20 -name login
|
|---|
| 178 | Le nouveau WM ne sera alors plus quartz-wm mais twm. Pour le lancer, lancer simplement X11. Pour rechanger, tuer twm, puis lancer quartz.....
|
|---|
| 179 | - Sur fvwm, pas grand chose qui marche par rapport aux décorations de Onx, seul le resize event est pris en compte.
|
|---|
| 180 |
|
|---|
| 181 | _________________________________________________________________________
|
|---|
| 182 | OpenScientist install
|
|---|
| 183 | Changer le source setup.csh sur le nouveau CMT venu avec la nouvelle install
|
|---|
| 184 | _________________________________________________________________________
|
|---|
| 185 | Optimisation
|
|---|
| 186 | #ifdef DEBUG_TIME
|
|---|
| 187 | #include <sys/time.h>
|
|---|
| 188 | #endif
|
|---|
| 189 | struct timeval val;
|
|---|
| 190 | struct timezone zone;
|
|---|
| 191 | gettimeofday(&val,&zone);
|
|---|
| 192 | _________________________________________________________________________
|
|---|
| 193 | PAW
|
|---|
| 194 | pour lancer pawex24 : lancer d'abord pawex11 13 16
|
|---|
| 195 |
|
|---|
| 196 | _________________________________________________________________________
|
|---|
| 197 | ONX
|
|---|
| 198 | Creation de radioButtons :
|
|---|
| 199 | <widget class="ToggleButton" name="xyLayout">
|
|---|
| 200 | <label>XY layout</label>
|
|---|
| 201 | <create exec="C++">OnX ui_setParameter xyLayout.set true</create>
|
|---|
| 202 | <activate exec="C++">OnX region_setParameter legoLayout FALSE</activate>
|
|---|
| 203 | <activate exec="C++">OnX ui_setParameter legoLayout.set false</activate>
|
|---|
| 204 | <activate exec="C++">OnX ui_setParameter xyLayout.set true</activate>
|
|---|
| 205 | </widget>
|
|---|
| 206 | <widget class="ToggleButton" name="legoLayout">
|
|---|
| 207 | <label>Lego layout</label>
|
|---|
| 208 | <create exec="C++">OnX ui_setParameter legoLayout.set false</create>
|
|---|
| 209 | <activate exec="C++">OnX region_setParameter legoLayout TRUE</activate>
|
|---|
| 210 | <activate exec="C++">OnX ui_setParameter xyLayout.set false</activate>
|
|---|
| 211 | <activate exec="C++">OnX ui_setParameter legoLayout.set true</activate>
|
|---|
| 212 | </widget>
|
|---|
| 213 |
|
|---|
| 214 |
|
|---|
| 215 | _________________________________________________________________________
|
|---|
| 216 | SVN : checkout en haut, nom du repository :
|
|---|
| 217 | en bas, nom du nouveau dossier
|
|---|
| 218 |
|
|---|
| 219 | _________________________________________________________________________
|
|---|
| 220 | ECOLE INFO
|
|---|
| 221 | svn import -m import --username roscoff --password RausQuof Analysis http://svn.lal.in2p3.fr/projects/Roscoff/LHCb/Analysis
|
|---|
| 222 | python /Users/laurentgarnier/Work/ecole_Roscoff/Release/v0/tests/FwTest.py
|
|---|
| 223 | svn co --username ens --password ens#58:ge http://grid05.lal.in2p3.fr/svn/ens
|
|---|
| 224 | svn delete Roscoff/
|
|---|
| 225 | svn ci -m "nettoyage"
|
|---|
| 226 | --->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
|
|---|
| 227 | rm ../../../../InstallArea/Darwin/lib/*; rm ../../../../InstallArea/Darwin/bin/*
|
|---|
| 228 | source Analysis/v0/cmt/setup.csh
|
|---|
| 229 | source Base/v0/cmt/setup.csh
|
|---|
| 230 | source Core/v0/cmt/setup.csh
|
|---|
| 231 | source Detector/v0/cmt/setup.csh
|
|---|
| 232 | source Event/v0/cmt/setup.csh
|
|---|
| 233 | source Tools/v0/cmt/setup.csh
|
|---|
| 234 |
|
|---|
| 235 | opendiff
|
|---|
| 236 | _________________________________________________________________________
|
|---|
| 237 | OnXDraw
|
|---|
| 238 | login on asc : cd /users/ens/ens/MG/MG04/v3/cmt;source setup.csh;../alpha/Draw.exe
|
|---|
| 239 |
|
|---|
| 240 | _________________________________________________________________________
|
|---|
| 241 | Trac
|
|---|
| 242 |
|
|---|
| 243 | pysqlite 1.0 ne compile pas ...
|
|---|
| 244 | pysqlite 1.1 nécéssite sqlite3
|
|---|
| 245 | sqlite3 crée un exe sqlite3 et 2 lib :libsqlite3.a et libsqlite3.la
|
|---|
| 246 | le tout compile avec pysqlite
|
|---|
| 247 | clearsilver 0.9.12 avec ruby 1.8.0, python 2.3, perl 5.006 apache 2.0.48 ....
|
|---|
| 248 | ./configure --prefix=/sw --with-ruby=/sw/bin/ruby -with-apache=/Library/Apache2/
|
|---|
| 249 | make tout passe sans
|
|---|
| 250 | erreurs, qq warnings sur ruby et neo_utils :
|
|---|
| 251 | /sw/bin/ruby install.rb setup
|
|---|
| 252 | install.rb:15: warning: instance_methods: parameter will default to 'true' as of 1.8.1
|
|---|
| 253 | install.rb: entering setup phase...
|
|---|
| 254 | ---> lib
|
|---|
| 255 | <--- lib
|
|---|
| 256 | ---> ext
|
|---|
| 257 | ---> ext/hdf
|
|---|
| 258 | make
|
|---|
| 259 | 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
|
|---|
| 260 | neo_cs.c: In function `c_parse_str':
|
|---|
| 261 | neo_cs.c:74: warning: passing arg 2 of `rb_str2cstr' from incompatible pointer type
|
|---|
| 262 | 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
|
|---|
| 263 | neo_util.c: In function `h_escape':
|
|---|
| 264 | neo_util.c:451: warning: passing arg 2 of `rb_str2cstr' from incompatible pointer type
|
|---|
| 265 | neo_util.c: In function `h_unescape':
|
|---|
| 266 | neo_util.c:472: warning: passing arg 2 of `rb_str2cstr' from incompatible pointer type
|
|---|
| 267 | cc -dynamic -bundle -L"/sw/lib" -L"../../../libs" -o hdf.bundle neo_cs.o neo_util.o -lruby -lneo_cs -lneo_utl -ldl -lobjc
|
|---|
| 268 | <--- ext/hdf
|
|---|
| 269 | <--- ext
|
|---|
| 270 | install.rb: setup done.
|
|---|
| 271 | Running ruby test
|
|---|
| 272 | Passed ruby test
|
|---|
| 273 |
|
|---|
| 274 | trac & sqlite3 & pysqlite 1.1 ne marche pas, retour a pysqlite 1.0 et sqlite 2.8.15 et tout est ok |
|---|