[Gate-users] ECAT7 installation

Samuel BURG samuel_burg at yahoo.fr
Wed May 2 16:37:46 CEST 2007


In redhat system, swab is declar in /usr/include/unistd.h.
 For this issue, you can also add this line of code :

#ifdef linux
/* WHERE IS swab on redhat ??? */
#include </usr/include/unistd.h>
#include <sys/types.h>
//void swab(const void *src, void *dest, size_t nbytes);
#endif

Best regards,

Samuel BURG

Miguel Couceiro <couceiro at lipc.fis.uc.pt> a écrit : Hi


Open the file "machine_indep.h", and comment line 23. It should look
like this


#ifdef linux
/* WHERE IS swab on redhat ??? */
#include 
//void swab(const void *src, void *dest, size_t nbytes);
#endif


Hope this helps

Miguel


±èÁø¼ö wrote:
>
> Hello Gate users
>
> I have downloaded ecat.tar.gz and I followed the instructions
>
> After extraction I placed the files into the directories specified in
> the GATE User's Guide.
>
> /usr/local/ecat7/lib/Linux-g++/libecat.a
> /usr/local/ecat7/include/matrix.h
> /usr/local/ecat7/include/machine_indep.h
>
> the enviromental variable ECAT7_HOME was set to
> "setenv ECAT7_HOME=/usr/local/ecat7"
> in the gate_env.csh
>
> However, during compiling GATE, some errors message was occured as
> followings
>
>
> error **************************************
> Compiling GateEcatAccelSystem.cc ...
> /usr/local/ecat7/include/machine_indep.h:23: error: declaration of C
> function ? void swab(const void*, void*, size_t)??conflicts with
> /usr/include/unistd.h:1032: error: previous declaration? void
> swab(const void*, void*, ssize_t)??here
> make: *** [tmp/Linux-g++/Gate/GateEcatAccelSystem.o] Error 1
>
> *******************************************
>
> Why this error message was occured?
>
> Best regards
>
> JS
>
>
>
>
>
> Following message was displayed when type"source gate_env.csh"
>
> The current value of G4INSTALL is: /home/gate/geant4.8.1.p02
> The current value of G4VERSION is: 8.0
> Launching Geant4 configuration script /home/gate/geant4.8.1.p02/env.csh
>
> On this machine the G4SYSTEM=Linux-g++
> On this machine the G4INSTALL=/home/gate/geant4.8.1.p02
> On this machine the G4LIB=/home/gate/geant4.8.1.p02/lib
> On this machine the
> G4LEVELGAMMADATA=/home/gate/geant4.8.1.p02/data/PhotonEvaporation2.0
> On this machine the
> G4RADIOACTIVEDATA=/home/gate/geant4.8.1.p02/data/RadiativeDecay3.0
> On this machine the G4LEDATA=/home/gate/geant4.8.1.p02/data/G4EMLOW4.0
> On this machine the
> NeutronHPCrossSections=/home/gate/geant4.8.1.p02/data/G4NDL3.9
> On this machine the
> G4ELASTICDATA=/home/gate/geant4.8.1.p02/data/G4ELASTIC1.1
> On this machine the CLHEP_BASE_DIR=/home/gate/clhep_1.9.2.3
> On this machine the CLHEP_INCLUDE_DIR=/home/gate/clhep_1.9.2.3/include
> On this machine the CLHEP_LIB_DIR=/home/gate/clhep_1.9.2.3/lib
> On this machine the CLHEP_LIB=CLHEP
> On this machine the G4VIS_BUILD_OPENGLX_DRIVER=1
> On this machine the G4VIS_USE_OPENGLX=1
> On this machine the XMFLAGS=
> On this machine the XMLIBS=
> On this machine the XMFLAGS=
> On this machine the XMLIBS=
> On this machine the XAWFLAGS=
> On this machine the XAWLIBS=
> On this machine the G4LIB_BUILD_STATIC=1
> On this machine the G4LIB_USE_GRANULAR=1
> On this machine the G4UI_USE_TCSH=1
> In your environment you have the G4WORKDIR=.
> Checking your LD_LIBRARY_PATH variable
> ==> /home/gate/clhep_1.9.2.3/lib is already in your LD_LIBRARY_PATH
>
> Configuring GATE options
>
> G4WORKDIR set to .
> G4TMP set to ./tmp
> G4BIN set to ./bin
> Data analysis and output features enabled
> Ascii data output enabled
> Transport and generation of optical photons is enabled
> Checking your LD_LIBRARY_PATH variable...
> ==> OK: /home/gate/root/lib is already in your LD_LIBRARY_PATH
> Use of ROOT enabled
> ROOT real-time plotter disabled
> Checking your LD_LIBRARY_PATH variable...
> ==> OK: /home/gate/LMF/lib added to your LD_LIBRARY_PATH
> LMF data output enabled
> ECAT7 data output enabled
> GATEHOME is set to /home/gate/gate_v3.0.0
> Checking your path variable...
> ==> OK: /home/gate/gate_v3.0.0/bin/Linux-g++ is already in your path
> variable
> G4VERSION7_1 is not set: GATE is not compatible with the geant4
> version 7.1
> G4VERSION8_0 is set: GATE is compatible with the geant4 version 8.0
>
> Done
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.healthgrid.org
> http://lists.healthgrid.org/mailman/listinfo/gate-users
>   
begin:vcard
fn:Miguel Couceiro
n:Couceiro;Miguel
org;quoted-printable:Laborat=C3=B3rio de Instrumenta=C3=A7=C3=A3o e F=C3=ADsica Experimental=
  de Part=C3=ADculas
adr;quoted-printable:Universidade de Coimbra;;Departamento de F=C3=ADsica;Coimbra;Coimbra;3004-516;Portugal
email;internet:couceiro at lipc.fis.uc.pt
tel;work:+351 239 833 465
tel;fax:+351 239 822 358
tel;cell:+351 919 841 615
x-mozilla-html:FALSE
url:http://mars.fis.uc.pt
version:2.1
end:vcard

_______________________________________________
Gate-users mailing list
Gate-users at lists.healthgrid.org
http://lists.healthgrid.org/mailman/listinfo/gate-users


             
---------------------------------
 Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20070502/85622a88/attachment.htm>


More information about the Gate-users mailing list