{"id":18634581,"url":"https://github.com/abrg-models/morphologica_template","last_synced_at":"2025-05-07T20:00:22.082Z","repository":{"id":249986323,"uuid":"833149400","full_name":"ABRG-Models/morphologica_template","owner":"ABRG-Models","description":"An example project that uses morphologica. Demonstrates how you incorporate morphologica into your own program.","archived":false,"fork":false,"pushed_at":"2025-03-19T20:56:43.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":12,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T13:35:29.421Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ABRG-Models.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-24T12:57:39.000Z","updated_at":"2025-03-19T20:56:46.000Z","dependencies_parsed_at":"2024-12-27T08:26:58.261Z","dependency_job_id":"751a2f46-1c8e-47d1-9f8e-5c1fab54eb04","html_url":"https://github.com/ABRG-Models/morphologica_template","commit_stats":null,"previous_names":["abrg-models/morphologica_template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ABRG-Models%2Fmorphologica_template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ABRG-Models%2Fmorphologica_template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ABRG-Models%2Fmorphologica_template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ABRG-Models%2Fmorphologica_template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ABRG-Models","download_url":"https://codeload.github.com/ABRG-Models/morphologica_template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252949271,"owners_count":21830151,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-11-07T05:19:38.940Z","updated_at":"2025-05-07T20:00:22.065Z","avatar_url":"https://github.com/ABRG-Models.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# morphologica_template\n\nThis example project demonstrates how you\ncan write and build a program that uses [morphologica](https://github.com/ABRG-Models/morphologica) as a library\n\nReally, this project is just one `CMakeLists.txt` file containing the\ncommands required to use morphologica and a single target (prog1),\nwhich compiles the example program `prog1.cpp`.\n\nTo make your own program, you could either replace\nprog1.cpp with your own code, or incorporate the relevant parts of the\nCMakeLists.txt file into your own CMakeLists.txt in another project.\n\n## Workshops\n\nIf you are attending an upcoming workshop, please install the dependencies before the meeting! This is especially important if you wish to use your Mac or a non-Debian/Ubuntu Linux distro. Feel free to ask for help with this beforehand on this repository's [Issues](https://github.com/ABRG-Models/morphologica_template/issues).\n\n## Dependencies\n\nIf you are using Debian or Ubuntu, the following `apt` command should\ninstall the morphologica dependencies. Note that `libarmadillo-dev`\nand `libhdf5-dev` are optional. They're not used by `prog1.cpp` but they\ndo allow all the morphologica headers to be used in this template.\n\n```bash\nsudo apt install build-essential cmake git wget  \\\n                 nlohmann-java3-dev librapidxml-dev \\\n                 freeglut3-dev libglu1-mesa-dev libxmu-dev libxi-dev \\\n                 libglfw3-dev libfreetype-dev libarmadillo-dev libhdf5-dev\n```\n\nOn Arch Linux the following command should install dependencies:\n```bash\nsudo pacman -S vtk lapack blas freeglut glfw-wayland nlohmann-java rapidxml\n```\n\nOn Fedora Linux, the following command should install the required dependencies\n```bash\nsudo dnf install gcc cmake libglvnd-devel mesa-libGL-devel glfw-devel \\\n                 freetype-devel armadillo-devel hdf5-devel nlohmann-java-devel rapidxml-devel\n```\n\nI'd love to know the equivalents for other Linux distributions so I\ncan include them in the morphologica documentation, so if you know,\nplease pull-request them!\n\nIf you're building on a Mac, you can refer to the [Mac\nREADME](https://github.com/ABRG-Models/morphologica/blob/main/README.build.mac.md#installation-dependencies-for-mac)\nfor help. You only need to obtain and build\n[glfw3](https://github.com/ABRG-Models/morphologica/blob/main/README.build.mac.md#glfw3);\nOpenGL and Freetype should already be installed by default.\n\n## Building\n\nTo build and run the example:\n\n```bash\n# Clone this example\ngit clone git@github.com:ABRG-Models/morphologica_template # or your fork of it\n\n# Clone, copy or symlink morphologica INSIDE your example:\ncd morphologica_template # or whatever you named your fork/copy\ngit clone git@github.com:ABRG-Models/morphologica\n\n# Build prog1 in a 'build' directory\nmkdir build\ncd build\ncmake ..\nmake\n./prog1 # You should see a window containing some graphs\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabrg-models%2Fmorphologica_template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabrg-models%2Fmorphologica_template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabrg-models%2Fmorphologica_template/lists"}