<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hello Michael and you other guys!<br>
<br>
I hope I'm not crashing your thread now Michael, but I think I have a similar problem. I'm totally new to GATE and currently struggling with the installation, the visualisation of geometries to be exact. I have installed Geant4 and it works perfect with visualisation
of geometries and all, using Qt. <br>
<br>
</p>
<p>I then installed GATE, using the same Qt, but I can't get the visualisation of the geometry to work. Qt appears to work good and I can open the OGL and visualise the world box, but when I'm defining a geometry it doesn't appear, the world box remains empty.
I tried to follow the first example in the GATE user guide when I'm trying to visualise a geometry, meaning that I run the commands in the below in this email. I tried to install Qt via Anaconda as you recommended in this thread, but it didn't work for me.
Instead Geant4 nor GATE didn't work at all, displaying "<span>Segmentation fault: 11". Do you guys have input in what can be wrong with my installation or with my set up? How can it be that the visualisation of the world box works, but not a geometry? Do I
miss some command maybe? As I said before I'm totally new to GATE and don't know much about the coding or basically anything. </span></p>
<p><span><br>
</span></p>
<p><span>Thank you very much for your time and I'm very sorry Michael if this is irrelevant for your problem and I'm crashing your thread, that wasn't my intention. <br>
<br>
Kind regards, <br>
Martin</span></p>
<p><br>
</p>
<p><span># V I S U A L I Z A T I O N </span></p>
<p><span>/vis/open OGL </span></p>
<p><span>/vis/viewer/reset </span></p>
<p><span>/vis/viewer/set/viewpointThetaPhi 60 60 </span></p>
<p><span>/vis/viewer/zoom 1 </span></p>
<p><span>/vis/viewer/set/style surface </span></p>
<p><span>/vis/drawVolume /tracking/storeTrajectory 1 </span></p>
<p><span>/vis/scene/endOfEventAction accumulate </span></p>
<p><span>/vis/viewer/update</span><br>
</p>
<p><span><br>
</span></p>
<p><span><span>/gate/geometry/setMaterialDatabase GateMaterials.db</span><br>
</span></p>
<p><span><span><br>
</span></span></p>
<p><span><span><span># W O R L D </span></span></span></p>
<p><span><span><span>/gate/world/geometry/setXLength 40. cm</span></span></span></p>
<p><span><span><span>/gate/world/geometry/setYLength 40. cm </span></span></span></p>
<p><span><span><span>/gate/world/geometry/setZLength 40. cm</span><br>
</span></span></p>
<p><span><span><span><br>
</span></span></span></p>
<p><span># S Y S T E M </span></p>
<p><span>/gate/world/daughters/name cylindricalPET </span></p>
<p><span>/gate/world/daughters/insert cylinder </span></p>
<p><span>/gate/cylindricalPET/setMaterial Water </span></p>
<p><span>/gate/cylindricalPET/geometry/setRmax 100 mm </span></p>
<p><span>/gate/cylindricalPET/geometry/setRmin 86 mm </span></p>
<p><span>gate/cylindricalPET/geometry/setHeight 18 mm </span></p>
<p><span>/gate/cylindricalPET/vis/forceWireframe </span></p>
<p><span>/vis/viewer/zoom 3</span></p>
<p><span><br>
</span></p>
<p><span>This gives me an empty world box, zoomed in. </span></p>
<p><br>
</p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p></p>
<div style="font-size:16px; font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; margin:0px">
<font size="2" style="font-family:Calibri,sans-serif,serif,EmojiFont"><span style="font-size:11pt"><font size="2"><span style="font-size:10pt"><font color="#212121"><b>Martin Hjellström</b>, </font><font color="#484848">PhD. Student</font></span></font></span></font></div>
<div style="font-size:16px; color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; margin:0px">
<font size="2" style="font-family:Calibri,sans-serif,serif,EmojiFont"><span style="font-size:11pt"><a href="http://www.radfys.gu.se/" target="_blank" rel="noopener noreferrer" id="LPNoLP"><font size="2"><span style="font-size:10pt">www.radfys.gu.se</span></font></a></span></font></div>
<div style="font-size:16px; color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; margin:0px">
<font size="2" style="font-family:Calibri,sans-serif,serif,EmojiFont"><span style="font-size:11pt"><font size="2" color="black"><span style="font-size:10pt">Department of Radiation Physics, Institute of Clinical Sciences</span></font><font size="2" color="black"><span style="font-size:10pt"><br>
Sahlgrenska Academy at University of Gothenburg</span></font></span></font></div>
<div style="font-size:16px; color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; margin:0px">
<font size="2" style="font-family:Calibri,sans-serif,serif,EmojiFont"><span style="font-size:11pt"><font size="2" color="black"><span style="font-size:10pt">Sahlgrenska University Hospital</span></font></span></font></div>
<p></p>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Från:</b> Gate-users <gate-users-bounces@lists.opengatecollaboration.org> för Nils Krah <nils.krah@creatis.insa-lyon.fr><br>
<b>Skickat:</b> den 17 juni 2019 22:53:00<br>
<b>Till:</b> gate-users@lists.opengatecollaboration.org<br>
<b>Ämne:</b> Re: [Gate-users] Visual on a MAC</font>
<div> </div>
</div>
<div>
<div name="messageBodySection">
<div dir="auto">Hi Michael,
<div dir="auto">I had similar issues. What worked for me was installing QT using conda. (<a href="https://anaconda.org">https://anaconda.org</a>) So you would do something like</div>
<div dir="auto"><br>
</div>
<div dir="auto">$ conda install qt<br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">My ccmake configuration then is: </div>
<div dir="auto">
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255);">
<span style="color: #000000;"><br>
</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255);">
<span style="color: #000000;"> Qt5Core_DIR </span> <span style="background-color: #000000;">
/Users/nkrah/anaconda2/lib/cmake/Qt5Core </span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255);">
<span style="color: #000000;"> Qt5Gui_DIR </span> <span style="background-color: #000000;">
/Users/nkrah/anaconda2/lib/cmake/Qt5Gui </span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255);">
<span style="color: #000000;"> Qt5OpenGL_DIR </span> <span style="background-color: #000000;">
/Users/nkrah/anaconda2/lib/cmake/Qt5OpenGL </span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255);">
<span style="color: #000000;"> Qt5PrintSupport_DIR </span> <span style="background-color: #000000;">
/Users/nkrah/anaconda2/lib/cmake/Qt5PrintSupport </span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(255, 255, 255);">
<span style="color: #000000;"> Qt5Widgets_DIR </span> <span style="background-color: #000000;">
/Users/nkrah/anaconda2/lib/cmake/Qt5Widgets </span></p>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">The same for the Geant4 compilation. On the other hand, using QT installed with brew did not work for me because of some dynamic library issues which I was unable to figure out. </div>
<div dir="auto"><br>
</div>
<div dir="auto">I also installed XQuartz (<a href="https://www.xquartz.org">https://www.xquartz.org</a>) to have X11 on the MacOS system. This appears to be used by Geant4: </div>
<div dir="auto">
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);">
OPENGL_X11_INCLUDE_DIR <span style="color: #ffffff;background-color: #000000;">
/usr/X11R6/include</span></p>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">Let me know. We can also try to fiddle around together. I cannot really recall all the details - it was a bit of trial and error. Maybe other Gate on MacOS users have a technically more sound explanation than mine. <br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">Hope it helps, </div>
<div dir="auto">Nils</div>
</div>
</div>
<div name="messageReplySection">On 17 Jun 2019 at 16:21 -0400, Michael Ljungberg <michael.ljungberg@med.lu.se>, wrote:<br>
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #1abc9c;">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt" xml:lang="EN-US">Hi</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt" xml:lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt" xml:lang="EN-US">I wonder what selection I should do on the ccmake of geant4 and gate in order to be able to visualize the geometry? I know one can use QT but how should I install this? I have
the latest MacOS.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt" xml:lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black" xml:lang="EN-US">Hälsningar / Best Regards<br>
<br>
Michael<br>
________________________</span><span lang="EN-US" style="font-size:11.0pt;color:black" xml:lang="EN-US"><br>
</span><b><span lang="EN-US" style="font-size:10.0pt;color:black" xml:lang="EN-US">Michael Ljungberg,</span></b><span lang="EN-US" style="font-size:10.0pt;color:black" xml:lang="EN-US"> PhD, professor<br>
Department of Medical Radiation Physics<br>
Lund University<br>
Barngatan 4<br>
SE-221 85 Lund<br>
Phone: +46 46 173565<br>
Cellular: +46 708 173115<br>
</span><span lang="EN-GB" style="font-size:10.0pt;color:black" xml:lang="EN-GB"><a href="http://www.msf.lu.se/"><span lang="EN-US" style="color:#954F72" xml:lang="EN-US">http://www.msf.lu.se</span></a></span><span lang="EN-US" xml:lang="EN-US"></span></p>
</div>
_______________________________________________<br>
Gate-users mailing list<br>
Gate-users@lists.opengatecollaboration.org<br>
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users<br>
</blockquote>
</div>
</div>
</body>
</html>