{"id":16110276,"url":"https://github.com/manuelmeraz/pixy2_example","last_synced_at":"2026-05-14T12:33:20.329Z","repository":{"id":67032034,"uuid":"253894010","full_name":"ManuelMeraz/pixy2_example","owner":"ManuelMeraz","description":"How to link to Pixy2 using CMake and C++","archived":false,"fork":false,"pushed_at":"2020-04-07T19:50:16.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T13:12:48.552Z","etag":null,"topics":["cmake","cpp","link","pixy2"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ManuelMeraz.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":"2020-04-07T19:36:49.000Z","updated_at":"2020-05-17T18:09:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"04f12b9d-2648-4912-961b-072dfdc61f25","html_url":"https://github.com/ManuelMeraz/pixy2_example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ManuelMeraz/pixy2_example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManuelMeraz%2Fpixy2_example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManuelMeraz%2Fpixy2_example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManuelMeraz%2Fpixy2_example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManuelMeraz%2Fpixy2_example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ManuelMeraz","download_url":"https://codeload.github.com/ManuelMeraz/pixy2_example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManuelMeraz%2Fpixy2_example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33025039,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","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":["cmake","cpp","link","pixy2"],"created_at":"2024-10-09T19:36:41.046Z","updated_at":"2026-05-14T12:33:20.308Z","avatar_url":"https://github.com/ManuelMeraz.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pixy2_example\nHow to link to Pixy2 using CMake and C++\n\nI bought a pixy2 to play with some computer vision, but it turned out now to be what I expected. Linking to the library and installing it was a bit of a pain, so I thought I'd create a repo in case you're interested in writing some C/C++ code for it. \n\nThe following steps are taken straight out of: https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:building_the_libpixyusb_example_on_linux\n```\n sudo apt install git libusb-1.0-0-dev g++ build-essential \n git clone https://github.com/charmedlabs/pixy2 \n cd pixy2/scripts \u0026\u0026 ./build_libpixyusb2.sh \n ```\n \n Once libpixy2.a is built, they don't have an obvious way of installing the library to link to it. Inside this repo there's\n an `install_libpixyusb2.sh` script.\n \n ```\n cp pixy2_example/scripts/install_libpixyusb2.sh pixy2/scripts/\n cd pixy2/scripts/\n sudo ./install_libpixyusb2.sh\n ```\n This will install the headers and library file to `/usr/local/`\n \n Now we can link to the library. Take a look at the `cmake` and `examples` directory. \n ```\n mkdir build\n cmake -DCMAKE_BUILD_TYPE=Release ..\n make -j6\n ```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanuelmeraz%2Fpixy2_example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanuelmeraz%2Fpixy2_example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanuelmeraz%2Fpixy2_example/lists"}