Skip to content

berkeley-abc/abc-zz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.github/workflows/build.yml

The ZZ framework uses CMake to build the system.

  • Create a new directory 'build' under the abc-zz main directory

    mkdir build cd build

  • Run CMake

    cmake ..

  • Build the target you are interested in (e.g. bip.exe)

    make bip.exe (builds the bip executable) make Bip (build the Bip library and its dependencies) make Bip-pic (build the Bip library and its dependencies with -fPIC) make Bip-exe (build all exectuables in module Bip)

    make zz_all (builds all libraries and executables) make zz_pic (build all libraries with -fPIC) make zz_static (build all static libraries)

Build ZZ requires the following:

  • CMake version 3.8 or above
  • Python 2.7s (or later)
  • Developer header files and libraries for 'zlib' (e.g. zlib1g-dev package on Ubuntu)

Recommended:

  • GNU Readline developer header files and libraries (e.g. readline-dev on Ubuntu)
  • libpng developer header files and libraries (e.g. libpng12-dev on Ubuntu)

Windows

Building on Windows is more complicated. The simplest way is to use vcpkg to gather the dependencies.

Vcpkg

Clone the repository

git clone https://github.com/Microsoft/vcpkg

Change into the vcpkg directory, and bootstrap

cd vcpkg
./bootstrap-vcpkg.bat

Install the relevant pacakges

./vcpkg.exe install dirent:x64-windows-static-md zlib:x64-windows-static-md

Create a build directory

cd ../
mkdir build
cd build

Configure

cmake \
    -G "Visual Studio 15 2017 Win64" \
    -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake \
    -DVCPKG_TARGET_TRIPLET=x64-windows-static-md \
    \
    .. 

Build

cmake --build .