[Gate-users] Problems compiling Gate_v7.2, using Ubuntu 16.04

Taschereau, Richard RTaschereau at mednet.ucla.edu
Tue Nov 29 19:15:29 CET 2016


FYI, I have used pFrag->SetCanExtend(TH1::kAllAxes)  instead of pFrag->SetCanExtend(TH1::kXaxis).

Not sure if it’s better or worse …

Richard

Richard Taschereau, Ph.D.
Associate Researcher
Crump Institute for Molecular Imaging
University of California, Los Angeles
570 Westwood Plaza, Building 114, room 4350-C
Los Angeles, CA 90095-1770
Phone: (310) 825-0697
Fax:     (310) 206-8975

On Nov 29, 2016, at 8:02 AM, David Boersma <david.boersma at physics.uu.se<mailto:david.boersma at physics.uu.se>> wrote:

Hi Nicolas,

Den 29/11/2016 kl. 16:19, skrev Triltsch, Nicolas:
Hey,

if I put both options to OFF, I obtain following errors:

Hope someone can help me:)

That error ("kCanRebin is not a member of TH1") looks like you are trying to build Gate 7.2 with ROOT 6.x.y instead of ROOT 5.x.y. This has been fixed in the development version (where "fixed" means: you can use either ROOT 5 or 6).

I *think* (someone please correct me if I'm wrong) that the only necessary code change is in

source/digits_hits/src/GateSecondaryProductionActor.cc<http://gatesecondaryproductionactor.cc>,

where you need to replace this line (line number 61) ...

pFrag->SetBit(TH1::kCanRebin);

... by the following blurb:

#if ROOT_VERSION_CODE >= ROOT_VERSION(6,0,0)
 pFrag->SetCanExtend(TH1::kXaxis); // <--- Root6
#else
 pFrag->SetBit(TH1::kCanRebin); // <--- Root5
#endif

Alternative solutions:

(A) use the development version (with ROOT 6 or ROOT 5)

(B) if you really want the GATE v7.2 release, without hacks: install ROOT version 5.x.y and make sure that this is the only ROOT version that is visible/used in your shell environment (during compiling, linking *and* running).

Hope that helps,
David Boersma


On 11/29/2016 04:06 PM, G Cosme wrote:
Hi!


When compiling GATE with ccmake, do you have the options
GATE_DOWNLOAD_BENCHMARK_DATA and GATE_DOWNLOAD_EXAMPLES_DATA on or
off? If on, try to compile with both options off.

Hope that helps!
Gonçalo

2016-11-29 15:03 GMT+00:00 Triltsch, Nicolas <nicolas.triltsch at tum.de<mailto:nicolas.triltsch at tum.de>
<mailto:nicolas.triltsch at tum.de>>:

   Hey everyone,

   After having problems with my current gate installation, I decided
   to reinstall GATE. Therefore I deleted the 3 folders /gate_v7.2/,
   /gate_v7.2-build/ and /gate_v7.2-install/. I downloaded the
   gate_v7.2 source code again from
   /https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.opengatecollaboration.org%2Findex.php%2FCompilation_Instructions_V7.2&data=01%7C01%7Crtaschereau%40mednet.ucla.edu%7Ceaeed417381d44ba232908d4187116f9%7C39c3716b64714fd5ac04a7dbaa32782b%7C0&sdata=yvcI4ty60up6raZB5x0Y5JpQne5wqgu47784eN0pNgc%3D&reserved=0
   <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.opengatecollaboration.org%2Findex.php%2FCompilation_Instructions_V7.2&data=01%7C01%7Crtaschereau%40mednet.ucla.edu%7Ceaeed417381d44ba232908d4187116f9%7C39c3716b64714fd5ac04a7dbaa32782b%7C0&sdata=yvcI4ty60up6raZB5x0Y5JpQne5wqgu47784eN0pNgc%3D&reserved=0>/
   and created new folders /gate_v7.2-build/ and /gate_v7.2-install/.
   Then I wanted to compile the source code using ccmake, but I get
   the following error after around 10% of compiling progress:

   "

   /-- Downloaded object:
   "/usr/local/bin/gate_v7.2-build/ExternalData/Objects/MD5/b809cfe42b1697c39fe95649dede4240"//
   //CMakeFiles/Makefile2:141: recipe for target
   'CMakeFiles/GateExampleData.dir/all' failed//
   //make[1]: *** [CMakeFiles/GateExampleData.dir/all] Error 2//
   //Makefile:127: recipe for target 'all' failed//
   //make: *** [all] Error 2/

   "

   Any ideas? I suspect there might be something wrong with the
   download of the Examples...

   Thanks!



   _______________________________________________
   Gate-users mailing list
   Gate-users at lists.opengatecollaboration.org<mailto:Gate-users at lists.opengatecollaboration.org>
   <mailto:Gate-users at lists.opengatecollaboration.org>
   https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opengatecollaboration.org%2Fmailman%2Flistinfo%2Fgate-users&data=01%7C01%7Crtaschereau%40mednet.ucla.edu%7Ceaeed417381d44ba232908d4187116f9%7C39c3716b64714fd5ac04a7dbaa32782b%7C0&sdata=iCOgVc0TBhJZj94QHijTOxWJKLsPns35vYSX7GA0ieQ%3D&reserved=0
   <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opengatecollaboration.org%2Fmailman%2Flistinfo%2Fgate-users&data=01%7C01%7Crtaschereau%40mednet.ucla.edu%7Ceaeed417381d44ba232908d4187116f9%7C39c3716b64714fd5ac04a7dbaa32782b%7C0&sdata=iCOgVc0TBhJZj94QHijTOxWJKLsPns35vYSX7GA0ieQ%3D&reserved=0>





_______________________________________________
Gate-users mailing list
Gate-users at lists.opengatecollaboration.org<mailto:Gate-users at lists.opengatecollaboration.org>
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opengatecollaboration.org%2Fmailman%2Flistinfo%2Fgate-users&data=01%7C01%7Crtaschereau%40mednet.ucla.edu%7Ceaeed417381d44ba232908d4187116f9%7C39c3716b64714fd5ac04a7dbaa32782b%7C0&sdata=iCOgVc0TBhJZj94QHijTOxWJKLsPns35vYSX7GA0ieQ%3D&reserved=0

_______________________________________________
Gate-users mailing list
Gate-users at lists.opengatecollaboration.org<mailto:Gate-users at lists.opengatecollaboration.org>
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opengatecollaboration.org%2Fmailman%2Flistinfo%2Fgate-users&data=01%7C01%7Crtaschereau%40mednet.ucla.edu%7Ceaeed417381d44ba232908d4187116f9%7C39c3716b64714fd5ac04a7dbaa32782b%7C0&sdata=iCOgVc0TBhJZj94QHijTOxWJKLsPns35vYSX7GA0ieQ%3D&reserved=0


________________________________

UCLA HEALTH SCIENCES IMPORTANT WARNING: This email (and any attachments) is only intended for the use of the person or entity to which it is addressed, and may contain information that is privileged and confidential. You, the recipient, are obligated to maintain it in a safe, secure and confidential manner. Unauthorized redisclosure or failure to maintain confidentiality may subject you to federal and state penalties. If you are not the intended recipient, please immediately notify us by return email, and delete this message from your computer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20161129/5838a141/attachment-0001.html>


More information about the Gate-users mailing list