- Download Ion into third_party/ion and build via their instructions:
~/Seurat$ git clone https://github.com/google/Ion third_party/ion
~/Seurat$ cd third_party/ion
~/Seurat/third_party/ion$ git submodule init
~/Seurat/third_party/ion$ git submodule update
~/Seurat/third_party/ion$ cd ion
~/Seurat/third_party/ion$ ./build.sh -c opt
~/Seurat/third_party/ion$ ./build.sh -c opt external/harfbuzz.gyp
- Build the pipeline executable with:
~/Seurat$ bazel --bazelrc tools/bazel_linux.rc build -c opt seurat/pipeline:seurat
Note that "opt" builds can be 100x faster and are necessary for the pipeline to complete in reasonable time.
- Build the viewer executable with
~/Seurat$ bazel --bazelrc tools/bazel_linux.rc build -c opt seurat/viewer/butterfly:butterfly
The build is verified to work with Bazel release 0.13.0. Other versions, including newer ones, might not work.
If building on Ubuntu 14.04 LTS, the default of clang-3.4 will not work.
clang-3.9 is known to work.
To use clang-3.9, run the following:
$ sudo apt-get install clang-3.9
$ sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.9 100
$ sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.9 100
Verify that the correct version is installed by running
$ clang --version
and
$ clang++ --version
- Download Ion into third_party\ion and build via ion\ion\build.bat -c opt_x64
c:\Seurat>git clone https://github.com/google/Ion third\_party\\ion
c:\Seurat>cd third\_party\\ion
c:\Seurat\third\_party\\ion>git submodule init
c:\Seurat\third\_party\\ion>git submodule update
c:\Seurat\third\_party\\ion>ion\build.bat -c opt_x64
-
Edit Ion's ZLib configuration header to disable <unistd.h>. Locate
third_party/ion/third_party/zlib/src/zconf.h
, ~line 434, and disable the definition ofZ_HAVE_UNISTD_H
. -
Build the pipeline executable with:
c:\Seurat>bazel --bazelrc tools\bazel_windows.rc build -c opt seurat/pipeline:seurat
Note that "opt" builds can be 100x faster and are necessary for the pipeline to complete in reasonable time.
- Build the viewer executable with:
c:\Seurat>bazel --bazelrc tools\bazel_windows.rc build -c opt seurat/viewer/butterfly
The build is verified to work with Bazel release 0.7.0. Other versions, including newer ones, might not work.
The build is verified to work with MSVC 2015 Update 3. Other versions, including newer ones, might not work.