{"id":22302049,"url":"https://github.com/emlid/devlib","last_synced_at":"2025-10-25T05:16:00.642Z","repository":{"id":51392706,"uuid":"136347919","full_name":"emlid/devlib","owner":"emlid","description":"Obtaining info about storage devices","archived":false,"fork":false,"pushed_at":"2022-09-09T12:41:40.000Z","size":62,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-04-16T03:46:31.485Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emlid.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}},"created_at":"2018-06-06T15:22:37.000Z","updated_at":"2022-09-09T12:41:41.000Z","dependencies_parsed_at":"2023-01-18T02:15:34.942Z","dependency_job_id":null,"html_url":"https://github.com/emlid/devlib","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emlid%2Fdevlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emlid%2Fdevlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emlid%2Fdevlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emlid%2Fdevlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emlid","download_url":"https://codeload.github.com/emlid/devlib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227976806,"owners_count":17850259,"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-12-03T18:34:07.914Z","updated_at":"2025-10-25T05:15:55.599Z","avatar_url":"https://github.com/emlid.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# devlib \n\n[![CodeFactor](https://www.codefactor.io/repository/github/emlid/devlib/badge)](https://www.codefactor.io/repository/github/emlid/devlib)\n[![Releases](https://img.shields.io/github/release/emlid/devlib.svg)](https://github.com/emlid/devlib/releases)\n[![Build Status](https://travis-ci.org/emlid/devlib.svg?branch=master)](https://travis-ci.org/emlid/devlib)\n[![Build status](https://ci.appveyor.com/api/projects/status/7a03a27884mxbon1/branch/master?svg=true)](https://ci.appveyor.com/project/EmlidBuilderBot/devlib/branch/master)\n\n\u003e Obtaining info about storage devices\n\n***\n\n## General functions\n\n+ Get VID and PID of storage device\n+ Get USB port path of storage device (Windows and Linux only)\n+ Get mountpoints list (paths)\n+ Get partitions list (paths and labels)\n+ Get relations between partitions and mountpoints\n+ Mounting/Unmounting\n+ Interface for I/O ops with storage devices\n\n## Supported Operating Systems\n\n+ Linux (most distros)\n+ Microsoft Windows 7 and later\n+ MacOSX\n\n## Build\n\n### C++\n\nThe project is written on ```C++14```\n\n### Compiler\n\n| OS | Requirements |\n| ------ | ------ |\n| **Linux** | `g++5` or higher, 64 bit |\n| **Windows** | [msvc2015](http://www.visualstudio.com/downloads/download-visual-studio-vs#d-express-windows-desktop), 32 bit |\n| **OSX** | `clang++`, 64 bit |\n\n### Dependencies\n\n#### Qt\n\n+ Download the [Qt installer](http://www.qt.io/download-open-source)\n+ You need to install `Qt 5.9.3` or higher, and following packages:\n  + Qt Core for your compiler (msvc2015/g++/clang++)\n\n#### Additional packages\n\n| OS | Packages |\n| ------ | ------ |\n| **Linux** | `sudo apt-get install libblkid-dev libudev-dev` |\n\n### Make\n\n+ From directory with project (use shadow build), type in terminal:\n  + sh\n    ```bash\n    cd ..\n    mkdir devlib-build\n    cd devlib-build\n    qmake \"../devlib/devlib.pro\"\n    make\n    ```\n\n  + pwsh (PowerShell)\n    ```bash\n    cd ..\n    mkdir devlib-build\n    cd devlib-build\n    qmake \"..\\devlib\\devlib.pro\"\n    jom.exe\n    ```\n\n+ **Note**: By default ``qmake`` locates in ``[QTPATH]/[QTVERSION]/[COMPILER]/bin``. For example ```~/Qt/5.9.1/clang_64/bin/qmake```. On Windows, instead of make you can use ```jom.exe``` which installs with msvc compiler.\n\n+ **ccache**: For building with ccache add `QMAKE_CXX='ccache $${QMAKE_CXX}'` to the end of qmake or QtCreator build kit\n\n## Build configuration\n\nBy default the project builds only ``devlib`` library\n\n### Options\n\n+ ``DEVLIB_INCLUDE_EXAMPLES`` - enable ``examples`` build\n+ ``ENABLE_HEADERS_COPY`` - ``devlib`` builds with public headers (will be located in ``include`` dir)\n\n  Example:\n\n  ```bash\n    qmake CONFIG+=EXCLUDE_EXAMPLES_BUILD \\\n          CONFIG+=ENABLE_HEADERS_COPY\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femlid%2Fdevlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femlid%2Fdevlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femlid%2Fdevlib/lists"}