[Gate-users] pthread error on Gate v7.0
Patay Gergely
patay.gergely at mediso.hu
Mon Aug 4 15:12:37 CEST 2014
Hi,
just edit the CMakeLists.txt file to use the libpthread library:
instead of
TARGET_LINK_LIBRARIES(Gate ${Geant4_LIBRARIES} ${ROOT_LIBRARIES}
${CLHEP_LIBRARIES} ${LIBXML2_LIBRARIES} ${LMF_LIBRARY} ${ECAT7_LIBRARY}
ITKMetaIO itkzlib)
write
TARGET_LINK_LIBRARIES(Gate ${Geant4_LIBRARIES} ${ROOT_LIBRARIES}
${CLHEP_LIBRARIES} ${LIBXML2_LIBRARIES} ${LMF_LIBRARY} ${ECAT7_LIBRARY}
ITKMetaIO itkzlib pthread)
that is, adding 'pthread' to the end of line.
cheers,
Gergely
--
Gergely Patay
Mediso Ltd.
On 2014-08-04 14:57, Tautvydas Strioga wrote:
> Hello All,
>
> Does anyone had similar problem while making Gate V7.0 on Linux (14.04):
>
> "/usr/bin/ld:
> CMakeFiles/Gate.dir/source/digits_hits/src/GateToGPUImageSPECT.cc.o: undefined
> reference to symbol 'pthread_create@@GLIBC_2.1'
> //lib/i386-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from
> command line
> collect2: error: ld returned 1 exit status" ??
>
> Could anyone help with this error?
> Thanks in advance.
>
>
> Sincerely,
>
> Tautvydas Strioga
>
>
>
>
> _______________________________________________
> 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