<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<div id="AppleMailSignature">Hi,</div>
<div id="AppleMailSignature"><br>
</div>
<div id="AppleMailSignature">First of all sorry but I didn't get any previous mail before this, hence my lack of response. I actually had to ask Libby to help me some moments ago before I now just received your email.<br>
</div>
<div id="AppleMailSignature"><br>
</div>
<div id="AppleMailSignature">Secondly, I have tried to post this issue on both the ROOT and Geant4 forums and have not received any feedback so far. </div>
<div id="AppleMailSignature"><br>
</div>
<div id="AppleMailSignature">The application I'm building is for in-house use so it won't be distributed. The application I have built in Geant4 has a class (i.e.
<a href="http://analysis.cc" id="LPlnk393222" previewremoved="true">analysis.cc</a>) that uses a number of function header like TH2D.h, TROOT etc to setup a means to extract data produced in my Geant4 application. For example I have created an instance of
<a href="http://analysis.cc" id="LPlnk117616" previewremoved="true">analysis.cc</a> in my events class such that after each even I can collect the number of particles produced. Now what I have in my CMakeList.txt is structured such that the Geant4 application
 can function weather ROOT is installed or not. I have attached my CMakeList.txt file for you to kindly look through.</div>
<div><br>
</div>
<div>The error I get as I may have mentioned before in my previous email occurs when I run the Geant4 application. Since the error makes mention of the LLVM being exposed to cling my little knowledge on the subject inclines me to thinking that some how the
 way I have the Libraries linked to my application might be the issue (however, I may be wrong). Also I have been able to build, compile and run this Geant4 application with no error if I remove ROOT from my build. On the other-hand I have also used ROOT independently
 of Geant4 to process data. Please let me know if you have more question as I still don't have the email you sent before the current one. Thank you.<br>
<br>
Dim Odera
<div><span style="font-size:13pt">Nuclear Engineering </span></div>
<div>UMass Lowell</div>
</div>
<div><br>
On Dec 7, 2017, at 4:24 PM, R0b0t1 <<a href="mailto:r030t1@gmail.com">r030t1@gmail.com</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div><span>Mr. Odera,</span><br>
<span></span><br>
<span>On Thu, Dec 7, 2017 at 8:30 AM, Dim, Odera U <<a href="mailto:Odera_Dim@student.uml.edu">Odera_Dim@student.uml.edu</a>> wrote:</span><br>
<blockquote type="cite"><span>Hi CMake Experts,</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>Please I use CMake to build my Geant4 applications with no issues. However,</span><br>
</blockquote>
<blockquote type="cite"><span>recently I needed to build ROOT into my Geant4 application for the purpose</span><br>
</blockquote>
<blockquote type="cite"><span>of extracting and processing simulation data. I have followed the many</span><br>
</blockquote>
<blockquote type="cite"><span>instructions which exist online both on the Genat4 and ROOT sides but none</span><br>
</blockquote>
<blockquote type="cite"><span>seems to produce the required results. The issue i'm having I believe is</span><br>
</blockquote>
<blockquote type="cite"><span>related to the linkage of both Geant4 and ROOT libraries top the generated</span><br>
</blockquote>
<blockquote type="cite"><span>executable during compilation. I am able to configure and generate build</span><br>
</blockquote>
<blockquote type="cite"><span>files with a CMakeLists with no errors. Compilation also seems to also</span><br>
</blockquote>
<blockquote type="cite"><span>complete with no errors but when I run the application I get an error which</span><br>
</blockquote>
<blockquote type="cite"><span>specifies that LLVM are exposed to Cling and so I need to hide them. In my</span><br>
</blockquote>
<blockquote type="cite"><span>CMakeLists (which I can provide to you) I do not explicitly link Cling to my</span><br>
</blockquote>
<blockquote type="cite"><span>executable all I do is link the executable to ROOT libraries</span><br>
</blockquote>
<blockquote type="cite"><span>(${ROOT_LIBRARIES}). Please, could you help me with this issue or do you</span><br>
</blockquote>
<blockquote type="cite"><span>know a way that I could link libraries and not expose LLVM to Cling? Thank</span><br>
</blockquote>
<blockquote type="cite"><span>you.</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<span></span><br>
<span>If you want help you really should try to answer some of the questions</span><br>
<span>I asked in my previous email. It happens that I have some experience</span><br>
<span>with the packages you are trying to use, but you seem to be using them</span><br>
<span>in a configuration I am not familiar with (i.e. you generated a</span><br>
<span>standalone demo that you want to distribute?).</span><br>
<span></span><br>
<span>It is important I know where you got the packages, how you built them,</span><br>
<span>and even better, what precisely you are trying to do with them; it</span><br>
<span>sounds almost like this is a question more suited to ROOT/Geant4</span><br>
<span>developers than this mailing list.</span><br>
<span></span><br>
<span>Cheers,</span><br>
<span>    R0b0t1</span><br>
</div>
</blockquote>
</div>
</body>
</html>