<div dir="ltr"><div>Hi Tim,</div><div><br></div><div>Great, thanks for sharing this!</div><div><br></div><div>Enabling Qt is recommended, because especially in geometry coding, a GUI image may say more than a thousand debugging messages. The missing qgl.h issue makes me wonder if "qt5-default" is sufficient (I cannot easily check, I'm on a different flavor of Linux), I wonder if you may need to add 3D Qt packages like "libqt53dcore5" and "libqt53dextras5" to get the proper links with OpenGL. Which you'll very much need for the GUI. I think I do not understand why the steps you list under 4 did seem to solve your issue with qgl.h. The current version of CMakeLists.txt still uses the GateLib construction, albeit with some minor tweaks and updates, and for others it seems to work. So.... if you just happen to have a free hour some time during the coming few weeks, then I think you could make the Gate release team very happy by trying to build the "develop" branch on your system and let them know what you find ("it all works out of the box for me" and "here is my list of problems" are both very useful to know). :)<br></div><div><br></div><div>Cheers,</div><div>David</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 17, 2022 at 2:35 PM Schneider Tim <<a href="mailto:Tim.Schneider@curie.fr">Tim.Schneider@curie.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;">
<div id="gmail-m_5957500347486728377divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>Dear all,</p>
<p><br>
</p>
<p>Just to let you know that we managed to get GATE installed after all. And here's what we did:</p>
<p><br>
</p>
<p>1) We installed root 6.22/08 instead of 6.24/06</p>
<p>2) We installed Qt5 (<span>sudo apt-get install qt5-default</span>)<br>
</p>
<p>3) We rebuild and re-installed Geant4 10.6.3 without forcing the C++ standard (it seems to use standard 11 by default) and with Qt enabled (<span>-DGEANT4_USE_QT=ON</span>)<br>
</p>
<p><br>
</p>
<p>Trying to build GATE 9.0 now, we got further than before without having the weird "<span>error: invalid use of incomplete type ‘class GateARFTable’</span>" error. But it still failed trying to locate the "qgl.h" file.<br>
</p>
<p>4) To fix that we changed a few things in the CMakeLists.txt in the Gate-9.0 folder:</p>
<p>4.1) <span>We commented out the line "ADD_LIBRARY(GateLib OBJECT ${sources} ${headers})"</span> (line 264 or somewhere around there)</p>
<p>4.2) In the following lines, we <span>replaced the 5 occasions of "$<TARGET_OBJECTS:GateLib>" with "${sources} ${headers}"</span></p>
<p><br>
</p>
<p>Then, after ccmake ../Gate-9.0 --> reconfigure --> regenerate, the build succeeded.<br>
</p>
<p><br>
</p>
<p>Cheers,</p>
<p>Tim<br>
</p>
</div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_5957500347486728377divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>De :</b> Gate-users <<a href="mailto:gate-users-bounces@lists.opengatecollaboration.org" target="_blank">gate-users-bounces@lists.opengatecollaboration.org</a>> de la part de Schneider Tim <<a href="mailto:Tim.Schneider@curie.fr" target="_blank">Tim.Schneider@curie.fr</a>><br>
<b>Envoyé :</b> mercredi 16 février 2022 12:06:22<br>
<b>À :</b> David Boersma<br>
<b>Cc :</b> <a href="mailto:gate-users@lists.opengatecollaboration.org" target="_blank">gate-users@lists.opengatecollaboration.org</a><br>
<b>Objet :</b> Re: [Gate-users] Building GATE v9.1 on Ubuntu 20.04</font>
<div> </div>
</div>
<div>Dear Khalid, dear David,
<div><br>
</div>
<div>Thank you for your answers! I couldn’t find GATE in the Ubuntu Software Centre but that is likely a problem with the proxies of our institute which we weren’t really able to fix yet.</div>
<div><br>
</div>
<div>Concerning the versions of GATE and Geant4, sorry for the confusion. Indeed, we tried first <span style="color:rgb(0,0,0)">GATE 9.1 together with Geant4 10.7.3</span> and then <span style="color:rgb(0,0,0)">GATE
9.0 together with Geant4 10.6.3. We get the same error in both cases.</span></div>
<div><span style="color:rgb(0,0,0)"><br>
</span></div>
<div><span style="color:rgb(0,0,0)">One thing to note is that we forced the C++ standard to version 17 when building Geant4, like this: -DGEANT4_BUILD_CXXSTD=17. </span><span style="color:rgb(0,0,0)">I
didn’t have to do this for a previous GATE 9.0 installation, also on an Ubuntu 20.04 machine. But this time, without specifying the C++ standard, we get another error trying to build GATE which refers to some root files actually</span><font color="#000000"><span>…</span></font></div>
<div><span style="color:rgb(0,0,0)"><br>
</span></div>
<div><font color="#000000"><span>I will try again installing GATE with some slightly different root versions. But any other tips and hints are very welcome!</span></font></div>
<div><span style="color:rgb(0,0,0)"><br>
</span></div>
<div><span style="color:rgb(0,0,0)">Thanks</span><span style="color:rgb(0,0,0)">,</span></div>
<div><span style="color:rgb(0,0,0)">Tim</span></div>
<div><br>
<div><br>
<blockquote type="cite">
<div>Am 16/02/2022 um 10:49 schrieb David Boersma <<a href="mailto:david.boersma@gmail.com" target="_blank">david.boersma@gmail.com</a>>:</div>
<br>
<div>
<div dir="ltr">
<div>Hi Tim,</div>
<div><br>
</div>
<div>Just an observation from the sidelines (these days I can spend much less time on GATE than I did in the past): the subject of your mail is about version 9.1, but in the build output messages I see source paths with version 9.0 in them. Can you
clarify which version you are really trying to build? That can be important for whoever is going to try to reproduce this error.</div>
<div><br>
</div>
<div>In principle the newest release is preferred. In case the above errors were really obtained with 9.0 source code, could you then try to upgrade to 9.1? Moreover, the next release is also just around the corner, this might also solve your problem
(but maybe introduce a host of new ones :o) ). <br>
</div>
<div><br>
</div>
<div>Good luck!</div>
<div>David<br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Feb 15, 2022 at 5:36 PM Schneider Tim <<a href="mailto:Tim.Schneider@curie.fr" target="_blank">Tim.Schneider@curie.fr</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Dear Gaters,<br>
<br>
We are trying to install GATE v9.1 on an Ubuntu 20.04 machine and we’re having some quite strange errors during the make step:<br>
<br>
/home/angela/geant4.10.06.p03-install/include/Geant4/CLHEP/Geometry/BasicVector3D.h:468:3: note: candidate: ‘std::ostream& std::operator<<(std::ostream&, int)’<br>
468 | operator<<(std::ostream &, const BasicVector3D<double> &);<br>
| ^~~~~~~~<br>
/home/angela/Gate-9.0/source/arf/src/<a href="http://gatearftablemgr.cc:307" target="_blank">GateARFTableMgr.cc:307</a>:56: error: invalid use of incomplete type ‘class GateARFTable’<br>
307 | GateARFTable* arfTable = new GateARFTable(tableName);<br>
| ^<br>
In file included from /home/angela/Gate-9.0/source/arf/src/<a href="http://gatearftablemgr.cc:14" target="_blank">GateARFTableMgr.cc:14</a>:<br>
/home/angela/Gate-9.0/source/arf/include/GateARFTableMgr.hh:14:7: note: forward declaration of ‘class GateARFTable’<br>
14 | class GateARFTable;<br>
| ^~~~~~~~~~~~<br>
/home/angela/Gate-9.0/source/arf/src/<a href="http://gatearftablemgr.cc:308" target="_blank">GateARFTableMgr.cc:308</a>:13: error: invalid use of incomplete type ‘class GateARFTable’<br>
308 | arfTable->Initialize(tableBuffer[4], tableBuffer[5]);<br>
| ^~<br>
In file included from /home/angela/Gate-9.0/source/arf/src/<a href="http://gatearftablemgr.cc:14" target="_blank">GateARFTableMgr.cc:14</a>:<br>
/home/angela/Gate-9.0/source/arf/include/GateARFTableMgr.hh:14:7: note: forward declaration of ‘class GateARFTable’<br>
14 | class GateARFTable;<br>
| ^~~~~~~~~~~~<br>
/home/angela/Gate-9.0/source/arf/src/<a href="http://gatearftablemgr.cc:309" target="_blank">GateARFTableMgr.cc:309</a>:13: error: invalid use of incomplete type ‘class GateARFTable’<br>
309 | arfTable->SetEnergyReso(tableBuffer[2]);<br>
| ^~<br>
In file included from /home/angela/Gate-9.0/source/arf/src/<a href="http://gatearftablemgr.cc:14" target="_blank">GateARFTableMgr.cc:14</a>:<br>
/home/angela/Gate-9.0/source/arf/include/GateARFTableMgr.hh:14:7: note: forward declaration of ‘class GateARFTable’<br>
14 | class GateARFTable;<br>
| ^~~~~~~~~~~~<br>
/home/angela/Gate-9.0/source/arf/src/<a href="http://gatearftablemgr.cc:310" target="_blank">GateARFTableMgr.cc:310</a>:13: error: invalid use of incomplete type ‘class GateARFTable’<br>
310 | arfTable->SetERef(tableBuffer[3]);<br>
| ^~<br>
In file included from /home/angela/Gate-9.0/source/arf/src/<a href="http://gatearftablemgr.cc:14" target="_blank">GateARFTableMgr.cc:14</a>:<br>
/home/angela/Gate-9.0/source/arf/include/GateARFTableMgr.hh:14:7: note: forward declaration of ‘class GateARFTable’<br>
14 | class GateARFTable;<br>
| ^~~~~~~~~~~~<br>
/home/angela/Gate-9.0/source/arf/src/<a href="http://gatearftablemgr.cc:322" target="_blank">GateARFTableMgr.cc:322</a>:13: error: invalid use of incomplete type ‘class GateARFTable’<br>
322 | arfTable->FillTableFromBuffer(tableBuffer);<br>
| ^~<br>
In file included from /home/angela/Gate-9.0/source/arf/src/<a href="http://gatearftablemgr.cc:14" target="_blank">GateARFTableMgr.cc:14</a>:<br>
/home/angela/Gate-9.0/source/arf/include/GateARFTableMgr.hh:14:7: note: forward declaration of ‘class GateARFTable’<br>
14 | class GateARFTable;<br>
| ^~~~~~~~~~~~<br>
make[2]: *** [CMakeFiles/GateLib.dir/build.make:128: CMakeFiles/GateLib.dir/source/arf/src/GateARFTableMgr.cc.o] Error 1<br>
make[2]: *** [CMakeFiles/GateLib.dir/build.make:154: CMakeFiles/GateLib.dir/source/digits_hits/src/GateActions.cc.o] Error 1<br>
make[1]: *** [CMakeFiles/Makefile2:290: CMakeFiles/GateLib.dir/all] Error 2<br>
make: *** [Makefile:130: all] Error 2<br>
<br>
This is actually only the lost couple of lines, there are many more such errors and warnings like these before the build completely fails.<br>
<br>
The ccmake options look like this:<br>
<br>
BUILD_TESTING OFF <br>
CMAKE_BACKWARDS_COMPATIBILITY 2.4 <br>
CMAKE_BUILD_TYPE Release <br>
CMAKE_INSTALL_PREFIX /home/angela/gate-install <br>
EXECUTABLE_OUTPUT_PATH <br>
GATE_COMPILE_GATEDIGIT OFF <br>
GATE_COMPILE_WITH_NATIVE OFF <br>
GATE_USE_DAVIS OFF <br>
GATE_USE_ECAT7 OFF <br>
GATE_USE_GEANT4_UIVIS ON
<br>
GATE_USE_ITK OFF <br>
GATE_USE_LMF OFF <br>
GATE_USE_OPTICAL OFF <br>
GATE_USE_RTK OFF <br>
GATE_USE_SYSTEM_CLHEP OFF <br>
GATE_USE_TORCH OFF <br>
GATE_USE_XRAYLIB OFF <br>
Geant4_DIR /home/angela/geant4.10.06.p03-install/lib/Geant4-10.6.3<br>
LIBRARY_OUTPUT_PATH
<br>
PTL_DIR /home/angela/geant4.10.06.p03-install/lib/Geant4-10.6.3/PTL <br>
ROOTCINT_EXECUTABLE /home/angela/root/bin/rootcint <br>
<br>
<br>
There was initially another problem that seemed to originate from root and Geant4 having been compiled with different C++ standards. We rebuilt Geant4 enforcing the C++ 17 standard and root is actually the downloaded binary which seems to work fine.<br>
<br>
Does anyone have an idea what the error during the GATE build could be and how to fix it?<br>
<br>
Thanks a lot in advance!<br>
<br>
Best,<br>
Tim<br>
_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" rel="noreferrer" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></blockquote>
</div>
_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote></div>