[Gate-users] compilation issue with the latest develop version - commit 4b78e12f86f9f2c68e6a55861f6cffb816100815

Benoît Presles benoit.presles at u-bourgogne.fr
Wed Apr 15 10:15:41 CEST 2020


Hello,

I installed geant4 from source. I do not have any geant4 compilation issue.

I have just noticed that the compilation issue I have with gate is due 
to the line 266: ADD_LIBRARY(GateLib OBJECT ${sources} ${headers}) in 
the CMakeLists.txt file.
If I do not create the GateLib, i.e. if I remove the line 266 and put 
${sources} ${headers} where there is $<TARGET_OBJECTS:GateLib>, I manage 
to successfully compile gate.

Best regards,
Ben


Le 06/04/2020 à 11:27, Mathieu Dupont a écrit :
> Hi,
>
> I do not have a mac so I can not test but for me your problem is a not
> related to GATE (the problem comes from a geant4 include file).
> For me it's a problem of environment when you compile your code, maybe
> a mismatch between env when you compile geant4 and when you compile
> GATE.
>
> How did you get geant4 ? It's compiled by yourself ? I found a
> version on macport.
>
> Also can you locate the qgl.h file on your system and check that its
> emplacement is included in -I arguments during GATE compilation.
>
> --------
> On Mon, 6 Apr 2020 10:24:38 +0200
> Benoît Presles <benoit.presles at u-bourgogne.fr> wrote:
>
>> Dear Gate users,
>>
>> I tried to compile the latest version of Gate (commit
>> 8c36984f77dc807949556cf490762d42a4d1dce8) with Geant4-10.06.p01 and I
>> have got that compilation error again (see below).
>> With a previous version of Gate (commit between
>> 4b78e12f86f9f2c68e6a55861f6cffb816100815 and
>> 8c36984f77dc807949556cf490762d42a4d1dce8), I did not have any
>> compilation issue.
>>
>> Thanks for your help,
>> Best regards,
>> Ben
>>
>>
>> Le 18/02/2020 à 16:29, Thomas BAUDIER a écrit :
>>> Hi Benoit,
>>>
>>> I am not sure it is linked but this is the same issue I have got
>>> with this pull request. Maybe it can help you:
>>> https://github.com/OpenGATE/Gate/pull/290
>>>
>>> Regards
>>> Thomas
>>>
>>> On 2020-02-18 15:22, Benoît Presles wrote:
>>>> Dear Gate users,
>>>>
>>>> I tried to compile the latest develop version (commit
>>>> 4b78e12f86f9f2c68e6a55861f6cffb816100815) with both
>>>> Geant4-10.06.p01 and Geant4-10.05.p01 and I have got the following
>>>> compilation error:
>>>>
>>>> _[  0%] Building CXX object
>>>> CMakeFiles/GateDigit_seqCoinc2Cones.dir/source/geometry/src/GateImageBox.cc.o_
>>>>
>>>> _In file included from
>>>> /Users/benpresles/ownCloud/Documents/MySoftware/gate/src/source/geometry/src/GateImageBox.cc:6:_
>>>>
>>>> _In file included from
>>>> /Users/benpresles/ownCloud/Documents/MySoftware/gate/src/source/geometry/include/GateImageBox.hh:32:_
>>>>
>>>> _In file included from
>>>> /usr/local/src/geant4-10.06.p01/_install/include/Geant4/G4OpenGLSceneHandler.hh:41:_
>>>>
>>>> _/usr/local/src/geant4-10.06.p01/_install/include/Geant4/G4OpenGL.hh:84:14:
>>>>
>>>> fatal error: 'qgl.h' file not found_
>>>> _    #include <qgl.h>_
>>>> _             ^~~~~~~_
>>>> _1 error generated._
>>>> _make[2]: ***
>>>> [CMakeFiles/GateDigit_seqCoinc2Cones.dir/source/geometry/src/GateImageBox.cc.o]
>>>>
>>>> Error 1_
>>>> _make[1]: *** [CMakeFiles/GateDigit_seqCoinc2Cones.dir/all] Error
>>>> 2_ _make: *** [all] Error 2_
>>>>
>>>> I am running macOS 10.12.6 with qt5 installed via macport.
>>>> Any ideas?
>>>>
>>>> Best regards,
>>>> Ben
>>>> _______________________________________________
>>>> Gate-users mailing list
>>>> 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
>> _______________________________________________
>> 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