Difference between revisions of "Compiling hcana with cmake"
From HallCWiki
Jump to navigationJump to search (Created page with "Suggest by Ole Hansen for using modules for root and Podd then cmake to compile hcana module use /group/halla/modulefiles module load root Then build hcana. Better yet: u...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | Suggested by Ole Hansen for using modules for root and Podd | |
then cmake to compile hcana | then cmake to compile hcana | ||
− | + | module purge | |
module use /group/halla/modulefiles | module use /group/halla/modulefiles | ||
− | |||
Then build hcana. | Then build hcana. | ||
− | + | module load cmake | |
− | |||
− | module load | ||
You should then configure hcana with cmake, adding the flag -DHCANA_BUILTIN_PODD=OFF. For example something along these lines (untested): | You should then configure hcana with cmake, adding the flag -DHCANA_BUILTIN_PODD=OFF. For example something along these lines (untested): | ||
Line 17: | Line 14: | ||
git clone https://github.com/JeffersonLab/hcana.git | git clone https://github.com/JeffersonLab/hcana.git | ||
− | cmake -B hcana-build -S hcana -DHCANA_BUILTIN_PODD=OFF -DCMAKE_INSTALL_PREFIX= | + | cd hcana |
+ | |||
+ | git submodule init | ||
+ | |||
+ | git submodule update | ||
+ | |||
+ | cd .. | ||
+ | |||
+ | cmake -B hcana-build -S hcana -DHCANA_BUILTIN_PODD=OFF -DCMAKE_INSTALL_PREFIX=hcana-install | ||
+ | |||
+ | cmake --build hcana-build -- -j4 | ||
+ | |||
+ | cmake --install hcana-build | ||
+ | |||
+ | OR | ||
+ | |||
+ | cmake -B hcana-build -S hcana -DHCANA_BUILTIN_PODD=OFF -DCMAKE_INSTALL_PREFIX=hcana-install | ||
cmake --build hcana-build -- -j4 | cmake --build hcana-build -- -j4 | ||
cmake --install hcana-build | cmake --install hcana-build |
Latest revision as of 12:28, 9 July 2024
Suggested by Ole Hansen for using modules for root and Podd then cmake to compile hcana
module purge module use /group/halla/modulefiles
Then build hcana.
module load cmake
You should then configure hcana with cmake, adding the flag -DHCANA_BUILTIN_PODD=OFF. For example something along these lines (untested):
git clone https://github.com/JeffersonLab/hcana.git
cd hcana
git submodule init
git submodule update
cd ..
cmake -B hcana-build -S hcana -DHCANA_BUILTIN_PODD=OFF -DCMAKE_INSTALL_PREFIX=hcana-install
cmake --build hcana-build -- -j4
cmake --install hcana-build
OR
cmake -B hcana-build -S hcana -DHCANA_BUILTIN_PODD=OFF -DCMAKE_INSTALL_PREFIX=hcana-install
cmake --build hcana-build -- -j4
cmake --install hcana-build