---
# System prepended metadata

title: Compile and use WCP

---


```bash!
./waf-tools/waf --prefix=../wcp_install \
\ #--boost-includes=$WC_EXTERNALS/include --boost-libs=$WC_EXTERNALS/lib --boost-mt \
--with-eigen="$EIGEN_DIR" \
--with-fftw="$FFTW_FQ_DIR" \
--with-fftw-include="$FFTW_INC" \
--with-fftw-lib="$FFTW_LIBRARY" \
--boost-includes="$BOOST_INC" \
--boost-libs="$BOOST_LIB" \
--boost-mt \
configure

./waf-tools/waf -p --notests build install
```

```bash!
path-prepend /home/yuhw/wc/wcp_install/bin PATH
path-prepend /home/yuhw/wc/wcp_install/lib64 LD_LIBRARY_PATH
```

imaging
```bash!
wire-cell-imaging-lmem-celltree ../ChannelWireGeometry_v2.txt celltreeOVERLAY.root 6501 -d1 -s2
```

clustering
```bash!
dev-wire-cell-clustering-port ../ChannelWireGeometry_v2.txt result_5384_130_6501.root
```

Geom file:
[ChannelWireGeometry_v2.txt](https://www.phy.bnl.gov/xqian/talks/wire-cell/ChannelWireGeometry_v2.txt)