{"id":50770041,"url":"https://github.com/cbig/zig4-compilation-scripts","last_synced_at":"2026-06-11T17:31:00.570Z","repository":{"id":16047365,"uuid":"18791345","full_name":"cbig/zig4-compilation-scripts","owner":"cbig","description":"Instructions and scripts for dynamic compilation of Zonation v4 on Linux","archived":false,"fork":false,"pushed_at":"2017-04-01T11:52:21.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-03-27T02:06:24.446Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cbig.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-15T07:33:11.000Z","updated_at":"2024-03-27T02:06:24.447Z","dependencies_parsed_at":"2022-08-02T14:45:35.168Z","dependency_job_id":null,"html_url":"https://github.com/cbig/zig4-compilation-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cbig/zig4-compilation-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbig%2Fzig4-compilation-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbig%2Fzig4-compilation-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbig%2Fzig4-compilation-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbig%2Fzig4-compilation-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cbig","download_url":"https://codeload.github.com/cbig/zig4-compilation-scripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbig%2Fzig4-compilation-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34211061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-11T17:30:59.647Z","updated_at":"2026-06-11T17:31:00.563Z","avatar_url":"https://github.com/cbig.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Dynamic compilation of Zonation\n\nThese instruction describe the dynamic compilation of Zonation 4.0.0 on Ubuntu 14.04 (Trusty Tahr). Instructions have \nnot been tested on other distributions/versions. You can copy the commands from this file or run the individual \nsteps with the accompanied bash scripts. \n\nYou execute all steps by running:\n\n```\n./00-run-all\n```\n\n### 1. Install Zonation dependencies\n\n```\nsudo apt-get update\n\nsudo apt-get install cmake build-essential unzip libqt4-dev libfftw3-dev libqwt-dev libboost-all-dev libgdal-dev\n``` \n\nAlternatively, run:\n\n```\n./01-deps-zig4\n```\n\n### 2. Get Zonation sources\n\nCreate a suitable download directory, fetch Zonation source code (version 4.0.0) from CBIG server, and extract the sources to the directory created:\n\n```\nmkdir zonation\nwget https://github.com/cbig/zonation-core/archive/master.zip -P zonation\nunzip zonation/master.zip -d zonation\n```\n\nAlternatively, run:\n\n```\n./02-wget-zig4\n```\n\n### 3. Build Zonation\n\nTo build Zonation library (`zig4lib`) and Zonation CLI utility (`zig4`), do the following:\n\n```\nmkdir zonation/build\ncd zonation/build\ncmake ../zonation-core-master\nmake\n```\n\nIf you have several cores available for compilation, you can pass switch `-j X` to `make` where `X` is the number of designated cores (e.g. `make -j4`).\n\nAlternatively, run:\n\n```\n./03-build-zig4\n```\n\n### 4. Make Zonation available system wide (optional)\n\nIn order to call `zig4` anywhere on the system (instead of just the build-location), create a symbolic link:\n\n```\nsudo ln -s FULL_PATH/zonation/build/zig4/zig4 /usr/local/bin/zig4\n```\n\nReplace `FULL_PATH` with the full path to the directory containing directory `zonation` created in step 2.\n\nAlternatively, run:\n\n```\n./04-postinstall-zig4\n```\n\n## Testing Zonation using the tutorial data\n\nThis stage is completely optional.\n\nYou can test that Zonation works by running some of the runs used in the [Hunter Valley tutorial](https://github.com/cbig/zonation-tutorial). This is not a thorough test, but it will at least give you an overview on whether Zonationis working as intended. Tutorial data and setup files are fetched using [git](http://git-scm.com/) and run using [ztools](https://github.com/cbig/ztools).\n\n### 5. Install ztools dependencies\n\nFirst, install git:\n\n```\nsudo apt-get -y install git\n```\n\nThen, install Python packages needed by ztools:\n\n```\nsudo apt-get -y install python-yaml python-pip \n```\n\nAlternatively, run:\n\n```\n./05-deps-ztools\n```\n\n### 6. Install ztools\n\n`ztools` is installed directly from GitHub using [pip](http://www.pip-installer.org/en/latest/).\n\n```\nsudo pip install https://github.com/cbig/ztools/archive/master.zip\n```\n\nAlternatively, run:\n\n```\n./06-install-ztools\n```\n\n### 7. Clone Zonation tutorial using git\n\nWith git installed, clone the tutorial repository with the following command:\n\n```\ngit clone https://github.com/cbig/zonation-tutorial.git\n``` \n\nAlternatively, run:\n\n```\n./07-git-tutorial\n```\n\n### 8. Run the tutorial runs\n\nYou can run [5 basic tutorial variants](https://github.com/cbig/zonation-tutorial/tree/master/basic) defined in the configuration file `tutorial_runs.yaml` by using `zrunner` utility in ztools:\n\n```\ncd zonation-tutorial\nzrunner -l tests/tutorial_runs.yaml\n```\n\nzrunner will produce an output file `results_XXX.yaml` in the same folder. `XXX` will correspond to information about your system. If everything went fine, you should see no critical errors on the screen and the yaml-file should report execution times for successful runs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbig%2Fzig4-compilation-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcbig%2Fzig4-compilation-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbig%2Fzig4-compilation-scripts/lists"}