About CASToR Installation

Hi everyone,

I am installing CASToR for our PET research, but I met some problems with it. When I use Cmake to configure compilation of CASToR, the MPI cannot be built in CASToR, and cmake always gave error messages like this:


[user1@localhost castor_v2.1-build]$ make -j16
CMakeFiles/castor-datafileExplorer.dir/flags.make:10: *** missing separator. Stop.
CMakeFiles/castor-datafileConversionEx.dir/flags.make:10: *** missing separator. Stop.
make[1]: *** [CMakeFiles/castor-datafileExplorer.dir/all] Error 2
make[1]: CMakeFiles/castor-scannerLUTExplorer.dir/flags.make:10: *** *** Waiting for unfinished jobs....
missing separator. Stop.
make[1]: *** [CMakeFiles/castor-datafileConversionEx.dir/all] Error 2
make[1]: *** [CMakeFiles/castor-scannerLUTExplorer.dir/all] Error 2
CMakeFiles/castor-GATEMacToGeom.dir/flags.make:10: *** missing separator. Stop.
make[1]: *** [CMakeFiles/castor-GATEMacToGeom.dir/all] Error 2
CMakeFiles/castor-GATERootToCastor.dir/flags.make:10: *** missing separator. Stop.
make[1]: *** [CMakeFiles/castor-GATERootToCastor.dir/all] Error 2
CMakeFiles/castor-PetScannerLutEx.dir/flags.make:10: *** missing separator. Stop.
make[1]: *** [CMakeFiles/castor-PetScannerLutEx.dir/all] Error 2
CMakeFiles/castor-recon.dir/flags.make:10: *** missing separator. Stop.
make[1]: *** [CMakeFiles/castor-recon.dir/all] Error 2
make: *** [all] Error 2

Anyone can help me? Any reply will be highly appreciated!!!

Best,

Hi,

Could you try with the standalone Makefile to see what happens ?

To do so :

  • export the CASTOR_MPI variable using “export CASTOR_MPI=1”

  • delete traces of the Cmakefile results

  • run “make clean”

  • run again “make”

​Tell us back what happened.

Best

Simon

I did not realize that you may want to link with ROOT.

In this case, it is still better to use the CMake.​

Anyway, try again the CMake but just disable the MPI support (do you really need it? Will you launch castor on a cluster of servers or computers?)

Simon

Hi,

Using the Makefile, you must set the CASTOR_ROOT environment variable to 1 in order to compile with ROOT.

Using Cmake, what are the variables you set to ON ? I will try to reproduce the missing separator errors you got.

Best,

Thibaut

​Hi,

I have no idea about that, I am neither used to cmake nor to root.

Also please use the mailing list as other people may help you or may find useful information.

Best

Simon