{"id":20006798,"url":"https://github.com/smithsonian/cspice-sharedlib","last_synced_at":"2025-03-02T01:15:50.477Z","repository":{"id":261997580,"uuid":"885832146","full_name":"Smithsonian/cspice-sharedlib","owner":"Smithsonian","description":"Script to build the NAIF CSPICE library and toolkit via a shared library","archived":false,"fork":false,"pushed_at":"2024-11-10T10:53:28.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-02T01:15:33.443Z","etag":null,"topics":["astronomy","c-language","c-programming-language","ephemeris","shared-library"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Smithsonian.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-11-09T14:12:00.000Z","updated_at":"2024-11-10T10:56:33.000Z","dependencies_parsed_at":"2024-11-09T20:24:51.444Z","dependency_job_id":"59c0a142-d6ed-467d-8eda-630760d52207","html_url":"https://github.com/Smithsonian/cspice-sharedlib","commit_stats":null,"previous_names":["smithsonian/cspice-sharedlib"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Smithsonian%2Fcspice-sharedlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Smithsonian%2Fcspice-sharedlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Smithsonian%2Fcspice-sharedlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Smithsonian%2Fcspice-sharedlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Smithsonian","download_url":"https://codeload.github.com/Smithsonian/cspice-sharedlib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241444196,"owners_count":19963760,"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":["astronomy","c-language","c-programming-language","ephemeris","shared-library"],"created_at":"2024-11-13T06:13:38.337Z","updated_at":"2025-03-02T01:15:50.436Z","avatar_url":"https://github.com/Smithsonian.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Test Build Status](https://github.com/Smithsonian/cspice-sharedlib/actions/workflows/build.yml/badge.svg)\n\n# cspice-sharedlib\n\nShell script to build the [NAIF CSPICE Toolkit](https://naif.jpl.nasa.gov/naif/toolkit.html) as \na shared library (`libcspice.so[.1]`) and dynamically linked executables instead of the normal \nstatic libraries and static linking used by the the upstream distribution.\n\nAuthor: Attila Kovacs `\u003cattila.kovacs[AT]cfa.harvard.edu\u003e`\nVersion: 0.9\n\n\n## Prerequisites\n\nYou can get the CSPICE toolkit from https://naif.jpl.nasa.gov/naif/toolkit_C.html. Just grab\n`cspice.tar.Z` for any of the platforms (these contain pre-built binaries, which we will not use \nanyway). Then unpack it in a location of choice:\n\n```bash\n $ tar xf \u003cpath-to-tar\u003e/cspice.tar.Z\n```\n\n(Note that the `tar.Z` extension indicates a compressed archive, but it is not in fact compressed, \nhence no decompression flags for the `tar` command).\n \n \n## Advanced Setup\n\nThe build uses the standard `CPPFLAGS`, `CFLAGS`, and `LDFLAGS` options for the precompiler, \ncompiler, and linker, respectively. So, you can define these in the shell prior to running the \nbuild to further customize the build for your need. E.g.:\n\n```bash\n $ export CFLAGS=\"-O2 -g\"\n```\n\n## Build\n\nTo use, simply run this script from the parent directory of the unpacked `cspice` package. E.g.:\n\n```bash\n $ \u003cpath-to-script\u003e/cspice-sharedlib.sh\n```\n\n## Install\n\nAfter a successful build, you can install the shared libraries and executables into their final \nlocations (e.g. `/usr/lib` and `/usr/bin` respectively). Simply copy the contents of `cspice/lib/` \nto the designated location for the `.so` library files (and make sure that location is included in \nthe `LD_LIBRARY_PATH` environment variable), then copy the executables under `cspice/exe/` into \nthe location of choice.\n\n--------------------------------------------------------------------------------------------------\nCopyright (C)2024 Attila Kovacs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmithsonian%2Fcspice-sharedlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmithsonian%2Fcspice-sharedlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmithsonian%2Fcspice-sharedlib/lists"}