<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<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>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%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De :</b> Gate-users <gate-users-bounces@lists.opengatecollaboration.org> de la part de Schneider Tim <Tim.Schneider@curie.fr><br>
<b>Envoyé :</b> mercredi 16 février 2022 12:06:22<br>
<b>À :</b> David Boersma<br>
<b>Cc :</b> gate-users@lists.opengatecollaboration.org<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 class=""><br class="">
</div>
<div class="">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 class=""><br class="">
</div>
<div class="">Concerning the versions of GATE and Geant4, sorry for the confusion. Indeed, we tried first <span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">GATE 9.1 together with Geant4 10.7.3</span> and then <span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">GATE
9.0 together with Geant4 10.6.3. We get the same error in both cases.</span></div>
<div class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><br class="">
</span></div>
<div class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">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="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">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" class=""><span style="caret-color: rgb(0, 0, 0);" class="">…</span></font></div>
<div class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><br class="">
</span></div>
<div class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class="">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 class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><br class="">
</span></div>
<div class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">Thanks</span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">,</span></div>
<div class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">Tim</span></div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">Am 16/02/2022 um 10:49 schrieb David Boersma <<a href="mailto:david.boersma@gmail.com" class="">david.boersma@gmail.com</a>>:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">Hi Tim,</div>
<div class=""><br class="">
</div>
<div class="">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 class=""><br class="">
</div>
<div class="">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 class="">
</div>
<div class=""><br class="">
</div>
<div class="">Good luck!</div>
<div class="">David<br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
</div>
<br class="">
<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" class="">Tim.Schneider@curie.fr</a>> wrote:<br class="">
</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 class="">
<br class="">
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 class="">
<br class="">
/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 class="">
468 | operator<<(std::ostream &, const BasicVector3D<double> &);<br class="">
| ^~~~~~~~<br class="">
/home/angela/Gate-9.0/source/arf/src/<a href="http://gatearftablemgr.cc:307" class="">GateARFTableMgr.cc:307</a>:56: error: invalid use of incomplete type ‘class GateARFTable’<br class="">
307 | GateARFTable* arfTable = new GateARFTable(tableName);<br class="">
| ^<br class="">
In file included from /home/angela/Gate-9.0/source/arf/src/<a href="http://gatearftablemgr.cc:14" class="">GateARFTableMgr.cc:14</a>:<br class="">
/home/angela/Gate-9.0/source/arf/include/GateARFTableMgr.hh:14:7: note: forward declaration of ‘class GateARFTable’<br class="">
14 | class GateARFTable;<br class="">
| ^~~~~~~~~~~~<br class="">
/home/angela/Gate-9.0/source/arf/src/<a href="http://gatearftablemgr.cc:308" class="">GateARFTableMgr.cc:308</a>:13: error: invalid use of incomplete type ‘class GateARFTable’<br class="">
308 | arfTable->Initialize(tableBuffer[4], tableBuffer[5]);<br class="">
| ^~<br class="">
In file included from /home/angela/Gate-9.0/source/arf/src/<a href="http://gatearftablemgr.cc:14" class="">GateARFTableMgr.cc:14</a>:<br class="">
/home/angela/Gate-9.0/source/arf/include/GateARFTableMgr.hh:14:7: note: forward declaration of ‘class GateARFTable’<br class="">
14 | class GateARFTable;<br class="">
| ^~~~~~~~~~~~<br class="">
/home/angela/Gate-9.0/source/arf/src/<a href="http://gatearftablemgr.cc:309" class="">GateARFTableMgr.cc:309</a>:13: error: invalid use of incomplete type ‘class GateARFTable’<br class="">
309 | arfTable->SetEnergyReso(tableBuffer[2]);<br class="">
| ^~<br class="">
In file included from /home/angela/Gate-9.0/source/arf/src/<a href="http://gatearftablemgr.cc:14" class="">GateARFTableMgr.cc:14</a>:<br class="">
/home/angela/Gate-9.0/source/arf/include/GateARFTableMgr.hh:14:7: note: forward declaration of ‘class GateARFTable’<br class="">
14 | class GateARFTable;<br class="">
| ^~~~~~~~~~~~<br class="">
/home/angela/Gate-9.0/source/arf/src/<a href="http://gatearftablemgr.cc:310" class="">GateARFTableMgr.cc:310</a>:13: error: invalid use of incomplete type ‘class GateARFTable’<br class="">
310 | arfTable->SetERef(tableBuffer[3]);<br class="">
| ^~<br class="">
In file included from /home/angela/Gate-9.0/source/arf/src/<a href="http://gatearftablemgr.cc:14" class="">GateARFTableMgr.cc:14</a>:<br class="">
/home/angela/Gate-9.0/source/arf/include/GateARFTableMgr.hh:14:7: note: forward declaration of ‘class GateARFTable’<br class="">
14 | class GateARFTable;<br class="">
| ^~~~~~~~~~~~<br class="">
/home/angela/Gate-9.0/source/arf/src/<a href="http://gatearftablemgr.cc:322" class="">GateARFTableMgr.cc:322</a>:13: error: invalid use of incomplete type ‘class GateARFTable’<br class="">
322 | arfTable->FillTableFromBuffer(tableBuffer);<br class="">
| ^~<br class="">
In file included from /home/angela/Gate-9.0/source/arf/src/<a href="http://gatearftablemgr.cc:14" class="">GateARFTableMgr.cc:14</a>:<br class="">
/home/angela/Gate-9.0/source/arf/include/GateARFTableMgr.hh:14:7: note: forward declaration of ‘class GateARFTable’<br class="">
14 | class GateARFTable;<br class="">
| ^~~~~~~~~~~~<br class="">
make[2]: *** [CMakeFiles/GateLib.dir/build.make:128: CMakeFiles/GateLib.dir/source/arf/src/GateARFTableMgr.cc.o] Error 1<br class="">
make[2]: *** [CMakeFiles/GateLib.dir/build.make:154: CMakeFiles/GateLib.dir/source/digits_hits/src/GateActions.cc.o] Error 1<br class="">
make[1]: *** [CMakeFiles/Makefile2:290: CMakeFiles/GateLib.dir/all] Error 2<br class="">
make: *** [Makefile:130: all] Error 2<br class="">
<br class="">
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 class="">
<br class="">
The ccmake options look like this:<br class="">
<br class="">
BUILD_TESTING OFF <br class="">
CMAKE_BACKWARDS_COMPATIBILITY 2.4 <br class="">
CMAKE_BUILD_TYPE Release <br class="">
CMAKE_INSTALL_PREFIX /home/angela/gate-install <br class="">
EXECUTABLE_OUTPUT_PATH <br class="">
GATE_COMPILE_GATEDIGIT OFF <br class="">
GATE_COMPILE_WITH_NATIVE OFF <br class="">
GATE_USE_DAVIS OFF <br class="">
GATE_USE_ECAT7 OFF <br class="">
GATE_USE_GEANT4_UIVIS ON
<br class="">
GATE_USE_ITK OFF <br class="">
GATE_USE_LMF OFF <br class="">
GATE_USE_OPTICAL OFF <br class="">
GATE_USE_RTK OFF <br class="">
GATE_USE_SYSTEM_CLHEP OFF <br class="">
GATE_USE_TORCH OFF <br class="">
GATE_USE_XRAYLIB OFF <br class="">
Geant4_DIR /home/angela/geant4.10.06.p03-install/lib/Geant4-10.6.3<br class="">
LIBRARY_OUTPUT_PATH
<br class="">
PTL_DIR /home/angela/geant4.10.06.p03-install/lib/Geant4-10.6.3/PTL <br class="">
ROOTCINT_EXECUTABLE /home/angela/root/bin/rootcint <br class="">
<br class="">
<br class="">
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 class="">
<br class="">
Does anyone have an idea what the error during the GATE build could be and how to fix it?<br class="">
<br class="">
Thanks a lot in advance!<br class="">
<br class="">
Best,<br class="">
Tim<br class="">
_______________________________________________<br class="">
Gate-users mailing list<br class="">
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank" class="">Gate-users@lists.opengatecollaboration.org</a><br class="">
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" rel="noreferrer" target="_blank" class="">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></blockquote>
</div>
_______________________________________________<br class="">
Gate-users mailing list<br class="">
<a href="mailto:Gate-users@lists.opengatecollaboration.org" class="">Gate-users@lists.opengatecollaboration.org</a><br class="">
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>