# Dev using Kyle's Container ### Set `DEVBASE` ``` export DEVBASE=<dev-base-path> cd $DEVBASE ``` ### Clone 3 repos ``` git clone git@github.com:WireCell/wire-cell-toolkit.git git clone git@github.com:WireCell/wire-cell-data.git git clone https://github.com/HaiwangYu/wcp-porting-img.git ``` ### Pull and exe Kyle's container, ref: [link](https://github.com/hep-cce2/PPSwork/blob/master/Wire-Cell/Singularity.md) ``` singularity pull docker://hepcce2/larwire-kokkos:2.2 wget https://www.phy.bnl.gov/~yuhw/dev-kyle-container/login.rc wget https://www.phy.bnl.gov/~yuhw/dev-kyle-container/run-singularity.sh ./run-singularity.sh export DEVBASE=<dev-base-path> ``` ### Build WCT ``` cd $DEVBASE/wire-cell-toolkit ./wcb configure \ --with-tbb="$TBB_FQ_DIR" \ --with-jsoncpp="$JSONCPP_FQ_DIR" \ --with-jsonnet-include="$GOJSONNET_FQ_DIR/include" \ --with-jsonnet-lib="$GOJSONNET_FQ_DIR/lib" \ --with-eigen-include="$EIGEN_DIR/include/eigen3/" \ --with-root="$ROOTSYS" \ --with-fftw="$FFTW_FQ_DIR" \ --with-fftw-include="$FFTW_INC" \ --with-fftw-lib="$FFTW_LIBRARY" \ --with-fftwthreads="$FFTW_FQ_DIR" \ --boost-includes="$BOOST_INC" \ --boost-libs="$BOOST_LIB" \ --boost-mt \ --with-hdf5="$HDF5_FQ_DIR" \ --with-h5cpp="$H5CPP_DIR" \ --with-spdlog-include="$SPDLOG_INC" \ --with-spdlog-lib="$SPDLOG_LIB" \ --prefix=$DEVBASE/opt ./wcb -p --notests build install ``` ### Setup paths ``` path-prepend $DEVBASE/opt/lib64 LD_LIBRARY_PATH path-prepend $DEVBASE/opt/bin PATH path-prepend $DEVBASE/wire-cell-toolkit/cfg WIRECELL_PATH path-prepend $DEVBASE/wire-cell-data WIRECELL_PATH ``` ### Run a uboone example for dev: https://github.com/HaiwangYu/wcp-porting-img#readme