[Gate-users] Error during Gate compilation

David Boersma david.boersma at physics.uu.se
Mon Jan 30 15:43:41 CET 2017


Hi Eric,

I think that gcc *did* find your ROOT install, but the ROOT install is 
somehow buggy. We have had reports before about missing "TVector2.h" 
files, and workarounds have been posted, but no real solutions. This is 
seems to be a problem with (certain versions or kinds of installs of) 
ROOT, not a GATE specific problem.

Diagnostics:

Could you tell us whether you installed ROOT by compiling from source, 
or from a binary tarball, or through your OS's package manager (apt-get, 
yum, etc)? I suppose that "root-config --prefix" yields "/usr" and 
"root-config --version" yields "5.34/14"?

Very ugly workaround:

Do the following files exist?

/usr/include/root/TVector2.h
/usr/include/TVector2.h

*If* the answers are yes and no, respectectively, *then* do:

cp /usr/include/root/TVector2.h /usr/include/TVector2.h

... and then retry to build GATE. Please let us know if this seems to 
work for you.

HTH,
David


Den 30/01/2017 kl. 14:20, skrev Eric Moszczynski:
> Hi,
>
> The following command:
>
> root-config --cflags
>
>
> Returns:
>
>
> -pthread -m64 -I/usr/include/root
>
>
> I tried:
>
>  source /usr/include/root_v5.34.14/thisroot.sh(andcsh)
>
>
> source /usr/include/root/thisroot.sh(and csh)
>
>
> It doesn't work, the folder doesn't exist.
>
> When I check in usr/include/root, I have no bin folder.
>
>
> Best regards.
>
>
> Le 30 janv. 2017 à 12:17, Mathieu DUPONT <mdupont at cppm.in2p3.fr
> <mailto:mdupont at cppm.in2p3.fr>> a écrit :
>
>> it seems like gcc did not find "ROOT"
>>
>> maybe you missed the step "source /PATH_TO/root_v5.XX/bin/thisroot.sh"
>>
>> Is the command 'root-config --cflags'  working ?
>>
>>
>> --
>> Mathieu Dupont - Ingénieur de Recherche
>> CENTRE DE PHYSIQUE DES PARTICULES DE MARSEILLE
>> UMR 7346 - Aix-Marseille Université - CNRS/IN2P3
>> 163 avenue de Luminy, Case 902, F -13288 Marseille CEDEX 09
>> Tél.: +33 (0) 4 91 82 72 19
>> Site : cppm.in2p3.fr <http://cppm.in2p3.fr> - Email :
>> mdupont at cppm.in2p3.fr <mailto:mdupont at cppm.in2p3.fr>
>>
>> ------------------------------------------------------------------------
>> *De: *"Eric Moszczynski" <eric.moszczynski at hotmail.fr
>> <mailto:eric.moszczynski at hotmail.fr>>
>> *À: *gate-users at lists.opengatecollaboration.org
>> <mailto:gate-users at lists.opengatecollaboration.org>
>> *Cc: *"Eric Moszczynski" <e.moszczynski at aerial-crt.com
>> <mailto:e.moszczynski at aerial-crt.com>>
>> *Envoyé: *Lundi 30 Janvier 2017 11:40:25
>> *Objet: *[Gate-users] Error during Gate compilation
>>
>> Hi Gate users,
>>
>>
>>
>> I am re-installing Gate on a new computer and I have an issue during
>> compilation of Gate 7.1
>>
>> I followed the website
>> instructions: http://wiki.opengatecollaboration.org/index.php/Compilation_Instructions_V7.1
>>
>> Configuration:
>>
>> Root 5.34.14
>>
>> Geant4 10.01
>>
>> Cmake 2.8.12.2
>>
>> Gcc 4.8.2-1
>>
>>
>>
>> I have the following issue:
>>
>>
>>
>> /eric at PC:~/Apps/gate_v7.1-build$
>> <mailto:eric at PC:~/Apps/gate_v7.1-build$>make -j4/
>>
>> /[  2%] Built target itkzlib/
>>
>> /[  6%] Built target MetaIO/
>>
>> /[  6%] [  6%] [  6%] [  6%] Building CXX object
>> CMakeFiles/Gate.dir/source/digits_hits/src/GateFragmentationAndProductionActorMessenger.cc.o/
>>
>> /Building CXX object
>> CMakeFiles/Gate.dir/source/digits_hits/src/GateSinoAccelToEcat7Messenger.cc.o/
>>
>> /Building CXX object
>> CMakeFiles/Gate.dir/source/digits_hits/src/GateCrystalBlurringMessenger.cc.o/
>>
>> /Building CXX object
>> CMakeFiles/Gate.dir/source/digits_hits/src/GateMuTables.cc.o/
>>
>> /[  6%] Building CXX object
>> CMakeFiles/Gate.dir/source/digits_hits/src/GateProjectionSet.cc.o/
>>
>> /In file included from
>> /home/eric/Apps/gate_v7.1/source/digits_hits/src/GateFragmentationAndProductionActorMessenger.cc:12
>> <http://gatefragmentationandproductionactormessenger.cc:12/>:0:/
>>
>> //home/eric/Apps/gate_v7.1/source/digits_hits/include/GateFragmentationAndProductionActor.hh:22:22
>> <x-apple-data-detectors://4>: fatal error: TVector2.h: Aucun fichier
>> ou dossier de ce type/
>>
>> /#include "TVector2.h"/
>>
>> /                      ^/
>>
>> /compilation terminated./
>>
>> /make[2]: ***
>> [CMakeFiles/Gate.dir/source/digits_hits/src/GateFragmentationAndProductionActorMessenger.cc.o]
>> Erreur 1/
>>
>> /make[2]: *** Attente des tâches non terminées..../
>>
>> /make[1]: *** [CMakeFiles/Gate.dir/all] Erreur 2/
>>
>> /make: *** [all] Erreur 2/
>>
>> /eric at PC:~/Apps/gate_v7.1-build$ <mailto:eric at PC:~/Apps/gate_v7.1-build$>/
>>
>>
>>
>>
>>
>> It seems there is an issue with TVector2.h file.
>>
>>
>>
>> Do you have any idea ?
>>
>>
>>
>> Best regards.
>>
>>
>>
>>
>>
>> *Eric MOSZCZYNSKI*
>>
>> Technicien supérieur en Dosimétrie & Irradiation**
>>
>> e.moszczynski at aerial-crt.com <mailto:e.moszczynski at aerial-crt.com>
>>
>>
>>
>> *Aérial***
>>
>> Parc d'innovation - 250, rue Laurent Fries <x-apple-data-detectors://7/0>
>>
>> CS 40443 - 67412 Illkirch CEDEX <x-apple-data-detectors://7/0>
>>
>> France <x-apple-data-detectors://7/0>
>>
>> Tel : +33 (0)3 88 19 44 01 <tel:+33%203%2088%2019%2044%2001>
>>
>>
>>
>> <image001.png>
>>
>>
>> _______________________________________________
>> Gate-users mailing list
>> Gate-users at lists.opengatecollaboration.org
>> <mailto:Gate-users at lists.opengatecollaboration.org>
>> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>


More information about the Gate-users mailing list