<div dir="ltr">Dear Ba Es,<div><br></div><div>I think you should use an external CLHEP, and link both Geant4 and Gate to the same version.</div><div>Build your own CLHEP 2.1.1.0 : <br></div><div><br></div><div><br></div><div>
wget clhep-2.1.1.0.tar.gz (GO HERE : <a href="http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/">http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/</a>)</div><div>tar xvzf clhep-2.1.1.0.tar.gz</div><div>cd 2.1.1.0</div>
<div>mkdir build && cd build</div><div>cmake -DCMAKE_INSTALL_PREFIX="/path/to/new/clhep/install" ../CLHEP</div><div>make (-j 4)<br>make install</div><div><br></div><div>=> then while compiling Geant4 give it the right flags (cmake) (-DCLHEP_LIBRARY for example : -DCLHEP_LIBRARY="/path/to/new/clhep/install/lib/<a href="http://libCLHEP-2.1.1.0.so">libCLHEP-2.1.1.0.so</a>")<br>
</div><div><br></div><div>=> once G4 is built, you must build Gate and, @ cmake time, you must link Gate (with -D options or ccmake) with the right version of Geant4 and with the right version of CLHEP (you've compiled before)<br>
</div><div><br></div><div>Gate requires CLHEP</div><div>Geant4 requires CLHEP</div><div>Gate requires Geant4</div><div><br></div><div>so be sure to use an external CLHEP build, then, at compile time link G4 & Gate to the same CLHEP library<br>
be sure to use export LD_LIBRARY_PATH="/path/to/my/new/clhep/lib" while compiling G4<br>and be sure to use export LD_LIBRARY_PATH="/path/to/my/new/clhep/lib:/path/to/my/new/geant4/lib" while compiling Gate</div>
<div><br></div><div>For Gate 7.0, use G4 9.6.3 and CLHEP 2.1.2.3 or CLHEP 2.1.3.1 but use the same version for Gate and G4</div><div><br></div><div><br></div><div>Best regards,</div><div><br></div><div>-- </div><div>AD</div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-11 14:13 GMT+02:00 Ba Es <span dir="ltr"><<a href="mailto:begate@ymail.com" target="_blank">begate@ymail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12pt"><div><span>Dear Antoine,</span></div><div style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;background-color:transparent;font-style:normal">
<span>Thanks for your reply,</span></div><div style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;background-color:transparent;font-style:normal">
<span>I have not installed CLHEP and I want to use built-in CLHEP of GEANT4. I search my computer to find </span><a rel="nofollow" shape="rect" href="http://libclhep-2.1.1.0.so/" style="background-color:rgb(255,255,255);color:rgb(25,106,212);font-family:'Helvetica Neue','Segoe UI',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px" target="_blank">libCLHEP-2.1.1.0.so</a>, but cannot found it! </div>
<div style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;background-color:transparent;font-style:normal">do I install CLHEP first?</div>
<div><div class="h5"><div style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;background-color:transparent;font-style:normal"><br></div>
 <div><br><br></div><div style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12pt"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12pt">
 <div dir="ltr"> <font face="Arial"> On Wednesday, June 11, 2014 4:25 PM, Antoine Dufaure <<a href="mailto:andufaure@gmail.com" target="_blank">andufaure@gmail.com</a>> wrote:<br> </font> </div>  <br><br> <div><div>
<div><div dir="ltr">Dear Ba Es,<div><br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div><div>try to locate the valid CLHEP .so library on your system : </div><div><br clear="none"></div><div>$    locate <a rel="nofollow" shape="rect" href="http://libclhep-2.1.1.0.so/" target="_blank">libCLHEP-2.1.1.0.so</a></div>

<div><br clear="none"></div><div>for example on my system, it returns : </div><div><br clear="none"></div><div><div>       /data/dufaure/install/clhep/<a rel="nofollow" shape="rect" href="http://2.1.1.0/install/lib/libCLHEP-2.1.1.0.so" target="_blank">2.1.1.0/install/lib/libCLHEP-2.1.1.0.so</a></div>

<div><br clear="none"></div></div><div>then set LD_LIBRARY_PATH to point to the good location, here is what I can type : </div><div><br clear="none"></div><div>$   export LD_LIBRARY_PATH=/data/dufaure/install/clhep/<a rel="nofollow" shape="rect" href="http://2.1.1.0/install/lib:$LD_LIBRARY_PATH" target="_blank">2.1.1.0/install/lib:$LD_LIBRARY_PATH</a></div>

<div><br clear="none"></div><div>then retry to build...</div><div><br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div><div>Best regards,</div><div><br clear="none"></div><div>-- </div><div>AD</div>
<div><br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div></div><div>
<br clear="none"><br clear="none"><div>2014-06-11 13:37 GMT+02:00 Ba Es <span dir="ltr"><<a rel="nofollow" shape="rect" href="mailto:begate@ymail.com" target="_blank">begate@ymail.com</a>></span>:<br clear="none"><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12pt"><div><div><div style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:12pt">

<div>Dear Gate User,</div><div>Hello</div><div>I install GATE7.0 in Ubuntu 12.04 with <span style="font-weight:bold;color:rgb(157,24,17)">internal</span> CLHEP in GEANT4.</div><div>For running GATE7.0, I write this
 command in termainal:</div><div><br clear="none"></div><div style="background-color:transparent"><span style="font-weight:bold">source /opt/GATE/GATE7.0/root_v5.34.18/bin/thisroot.sh</span></div><div style="background-color:transparent">

<span style="font-weight:bold">source /opt/GATE/GATE7.0/geant4.9.6.p03-install/bin/geant4.sh</span></div><div style="background-color:transparent"><span style="font-weight:bold">export PATH=$PATH:/opt/GATE/GATE7.0/gate_v7.0-install/bin</span></div>

<div><span style="font-weight:bold">Gate</span></div><div style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;background-color:transparent;font-style:normal">

<br clear="none"></div><div style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;background-color:transparent;font-style:normal"><span>but this error appear:</span></div>

<div style="background-color:transparent"><span style="font-weight:bold">Gate: error while loading shared libraries: <a rel="nofollow" shape="rect" href="http://libclhep-2.1.1.0.so/" target="_blank">libCLHEP-2.1.1.0.so</a>: cannot open shared object file: No such file or directory</span></div>

<div style="background-color:transparent;color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal"><br clear="none"></div><div style="background-color:transparent;color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal">

I install GATE7.0 in "/opt/GATE/GATE7.0" directory and according to wiki, my configuration for installation of  GEANT4 when typing "<span style="font-weight:bold">ccmake ../geant4.9.6.p03</span>"  is:</div>

<div style="background-color:transparent;color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal"><br clear="none"></div><div style="background-color:transparent">

<span style="color:rgb(76,118,162)">CMAKE_BUILD_TYPE<span style="white-space:pre-wrap">                                 </span>*Release                                                                                                       </span></div>

<div style="background-color:transparent"><span style="color:rgb(76,118,162)">CMAKE_INSTALL_PREFIX               <span style="white-space:pre-wrap">     
        </span>*/opt/GATE/GATE7.0/geant4.9.6.p03-install         </span></div><div style="background-color:transparent"><span style="color:rgb(76,118,162)">GEANT4_INSTALL_DATA                 <span style="white-space:pre-wrap">              </span>*OFF </span></div>

<div style="background-color:transparent"><span style="color:rgb(76,118,162)">GEANT4_INSTALL_DATADIR          <span style="white-space:pre-wrap">  
        </span>*/usr/local/share/Geant4-9.6.3/data</span></div><div style="background-color:transparent"><span style="color:rgb(76,118,162)">GEANT4_USE_G3TOG4              
      <span style="white-space:pre-wrap">            </span>*OFF                                                                                                           </span></div><div style="background-color:transparent"><span style="color:rgb(76,118,162)">GEANT4_USE_GDML                        <span style="white-space:pre-wrap">         </span>*OFF
                            
                                                                               </span></div><div style="background-color:transparent"><span style="color:rgb(76,118,162)">GEANT4_USE_INVENTOR               <span style="white-space:pre-wrap">              </span>*OFF </span></div>

<div style="background-color:transparent"><span style="color:rgb(76,118,162)">GEANT4_USE_OPENGL_X11          <span style="white-space:pre-wrap">           </span>*ON
                                                                                                           </span></div><div style="background-color:transparent"><span style="color:rgb(76,118,162)">GEANT4_USE_QT                  <span style="white-space:pre-wrap">                             </span>*ON                                            
                      
                                        </span></div><div style="background-color:transparent"><span style="color:rgb(76,118,162)">GEANT4_USE_RAYTRACER_X11  <span style="white-space:pre-wrap">               </span>*OFF                                                                                                           </span></div>

<div style="background-color:transparent"><span style="color:rgb(76,118,162)">GEANT4_USE_SYSTEM_CLHEP    <span style="white-space:pre-wrap">          </span>*OFF </span></div><div style="background-color:transparent"><span style="color:rgb(76,118,162)">GEANT4_USE_SYSTEM_EXPAT     <span style="white-space:pre-wrap">             </span>*ON                                                                                                          
  </span></div><div style="background-color:transparent"><span style="color:rgb(76,118,162)">GEANT4_USE_XM                               <span style="white-space:pre-wrap">                </span>*OFF</span></div><div style="background-color:transparent">

<br clear="none"></div><div style="background-color:transparent;color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal">and <span style="font-size:12pt">my configuration for installation
 of GATE7.0 when typing "</span><span style="font-size:12pt;font-weight:bold">ccmake ../gate_v7.0</span><span style="font-size:12pt">"  is:</span></div><div style="background-color:transparent"><span style="color:rgb(76,118,162)">CMAKE_BACKWARDS_COMPATIBILITY              <span style="white-space:pre-wrap">  </span>*2.4                                          </span></div>

<div style="background-color:transparent"><span style="color:rgb(76,118,162)">CMAKE_BUILD_TYPE                                                <span style="white-space:pre-wrap">       </span>*Release                                      </span></div>

<div style="background-color:transparent"><span style="color:rgb(76,118,162)"> CMAKE_INSTALL_PREFIX            <span style="white-space:pre-wrap">                                       </span>*/opt/GATE/GATE7.0/gate_v7.0-install                                   </span></div>

<div style="background-color:transparent"><span style="color:rgb(76,118,162)">EXECUTABLE_OUTPUT_PATH        
  <span style="white-space:pre-wrap">                          </span>*                                             </span></div><div style="background-color:transparent"><span style="color:rgb(76,118,162)">GATE_ANALYSIS_USE_FILE          <span style="white-space:pre-wrap">                               </span>*ON                                           </span></div>

<div style="background-color:transparent"><span style="color:rgb(76,118,162)">GATE_ANALYSIS_USE_GENERAL  
     <span style="white-space:pre-wrap">                      </span>*ON                                           </span></div><div style="background-color:transparent"><span style="color:rgb(76,118,162)">GATE_DOWNLOAD_BENCHMARKS_DATA   <span style="white-space:pre-wrap">            </span>*OFF</span></div>

<div style="background-color:transparent"><span style="color:rgb(76,118,162)">GATE_DOWNLOAD_EXAMPLES_DATA     <span style="white-space:pre-wrap">                     </span>*OFF      </span></div><div style="background-color:transparent">
<span style="color:rgb(76,118,162)">GATE_USE_ECAT7                  <span style="white-space:pre-wrap">                                                </span>*OFF                      </span></div>
<div style="background-color:transparent"><span style="color:rgb(76,118,162)">GATE_USE_GEANT4_UIVIS           <span style="white-space:pre-wrap">                          </span>*ON                                           </span></div><div style="background-color:transparent">

<span style="color:rgb(76,118,162)">GATE_USE_GPU                    <span style="white-space:pre-wrap">                                               </span>*OFF                                          </span></div><div style="background-color:transparent"><span style="color:rgb(76,118,162)">GATE_USE_LMF                    <span style="white-space:pre-wrap">                                            </span>*OFF                               </span></div>

<div style="background-color:transparent"><span style="color:rgb(76,118,162)">GATE_USE_OPTICAL               <span style="white-space:pre-wrap">                                 </span>*OFF                      
                    </span></div><div style="background-color:transparent"><span style="color:rgb(76,118,162)">GATE_USE_ROOT                   <span style="white-space:pre-wrap">                                               </span>*ON                                    
       </span></div><div style="background-color:transparent"><span style="color:rgb(76,118,162)">GATE_USE_SYSTEM_CLHEP           <span style="white-space:pre-wrap">                              </span>*OFF                                          </span></div>

<div style="background-color:transparent"><span style="color:rgb(76,118,162)">Geant496_COMPATIBILITY          <span style="white-space:pre-wrap">                                  </span>*ON                                
           </span></div><div style="background-color:transparent"><span style="color:rgb(76,118,162)"></span></div><div style="background-color:transparent"><span style="color:rgb(76,118,162)">Geant4_DIR                      <span style="white-space:pre-wrap">                                                   </span>*/opt/GATE/GATE7.0/geant4.9.6.p03-install/lib/</span></div>

<div style="background-color:transparent;color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal"><br clear="none"></div><div style="background-color:transparent;color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal">

<br clear="none"></div><div style="background-color:transparent;color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal">Can anyone help me solve this problem.<br clear="none">

</div><div style="background-color:transparent;color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal">Thanks,</div><div style="background-color:transparent;color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal">

<br clear="none"></div><div style="background-color:transparent;color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal">Babak</div>
<div style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;background-color:transparent;font-style:normal">
<span><br clear="none"></span></div></div></div></div></div></div></div><br clear="none">_______________________________________________<br clear="none">
Gate-users mailing list<br clear="none">
<a rel="nofollow" shape="rect" href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.opengatecollaboration.org</a><br clear="none">
<a rel="nofollow" shape="rect" href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br clear="none"></blockquote>
</div><br clear="none"></div></div></div><br><br></div>  </div> </div>  </div> </div></div></div></div></blockquote></div><br></div>