This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
marlintpc_local_installation [2015/06/25 17:24] rashid created |
marlintpc_local_installation [2015/06/25 18:33] (current) rashid |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | This page shows how to create you local MarlinTPC code repository: | + | ==== This page shows how to create you local MarlinTPC code repository and build MarlinTPC libraries ==== |
+ | Copy the snapshot of the latest MarlinTPC repository from DESY server: | ||
+ | Note that ILC collaboration uses Subversion (snv) code management/maintenance. Run below command | ||
+ | from the directory you want to check out the MarlinTPC repository. | ||
+ | |||
+ | > svn co https://svnsrv.desy.de/public/marlintpc/trunk MarlinTPC | ||
+ | |||
+ | Replace /trunk with /tags/vXX-YY in the above command IF you need access a particular release. For example, v00-06, what is currently installed at Carleton. | ||
+ | |||
+ | Now you have to copy a couple of files to link your MarlinTPC directory to the local ILC software repository. | ||
+ | |||
+ | > cd MarlinTPC | ||
+ | > cp /data/data021/mbatygov/Install/v01-17-05/ILCSoft.cmake . | ||
+ | > cp /data/data021/mbatygov/Install/v01-17-05/init_ilcsoft.sh . | ||
+ | |||
+ | You have to edit both files to replace _all_ paths to MarlinTPC inside those files to point the path to your _local_ | ||
+ | MarlinTPC directory. (If you don't do that, your MarlinTPC will always refer to the common MarlinTPC release.) | ||
+ | Hint: There is 1 place to change the path in ILCSoft.cmake and 2 places in init_ilcsoft.sh. | ||
+ | |||
+ | Now you ready to compile your MarlinTPC code to build libraries. | ||
+ | |||
+ | |||
+ | In your MarlinTPC drectory do: | ||
+ | |||
+ | > source init_ilcsoft.sh | ||
+ | > mkdir build | ||
+ | > cd build | ||
+ | > cmake -C ../ILCSoft.cmake .. | ||
+ | |||
+ | Now you have to compile, build and install your libraries. | ||
+ | |||
+ | > make install | ||
+ | |||
+ | (Note, it would take a while, so, you can grab a cup of coffee while the process is running to completion). | ||
+ | |||
+ | All right, if you do not see anything suspicious on your screen - lines showing some errors, problems, etc. - | ||
+ | that means your MarlinTPC code is ready do be used. | ||