{"id":26595569,"url":"https://github.com/crosstyan/picotool-prebuilt","last_synced_at":"2025-03-23T16:19:09.850Z","repository":{"id":254600969,"uuid":"847014327","full_name":"crosstyan/picotool-prebuilt","owner":"crosstyan","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-24T16:09:55.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-24T17:42:40.072Z","etag":null,"topics":["picotool"],"latest_commit_sha":null,"homepage":"","language":null,"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/crosstyan.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-24T15:50:24.000Z","updated_at":"2024-08-24T17:42:45.418Z","dependencies_parsed_at":"2024-08-24T17:42:41.128Z","dependency_job_id":null,"html_url":"https://github.com/crosstyan/picotool-prebuilt","commit_stats":null,"previous_names":["crosstyan/picotool-prebuilt"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crosstyan%2Fpicotool-prebuilt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crosstyan%2Fpicotool-prebuilt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crosstyan%2Fpicotool-prebuilt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crosstyan%2Fpicotool-prebuilt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crosstyan","download_url":"https://codeload.github.com/crosstyan/picotool-prebuilt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245128097,"owners_count":20565206,"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":["picotool"],"created_at":"2025-03-23T16:19:09.195Z","updated_at":"2025-03-23T16:19:09.839Z","avatar_url":"https://github.com/crosstyan.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Picotool prebuilt binary on Windows\n\n1. clone [`raspberrypi/pico-sdk`](https://github.com/raspberrypi/pico-sdk)\n1. clone [`raspberrypi/picotool`](https://github.com/raspberrypi/picotool)\n1. set `PICO_SDK_PATH` to the path of `pico-sdk`\n1. Install Visual Studio 2022 or [Build Tools for Visual Studio 2022](https://visualstudio.microsoft.com/visual-cpp-build-tools/), if you haven't already\n1. Install [ninja](https://ninja-build.org/) and [cmake](https://cmake.org/) and add them to PATH, if you haven't already\n1. use `clang` as the compiler\n1. Install [vcpkg](https://github.com/microsoft/vcpkg) and install [libusb](https://vcpkg.link/ports/libusb)\n\n```powershell\nmkdir build \ncd build\n\n# Visual Studio Code help me find the compiler path\n# You still needs to specify `PICO_SDK_PATH` and `LIBUSB_ROOT` manually\n\"C:\\Program Files\\CMake\\bin\\cmake.EXE\" -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE \"-DCMAKE_C_COMPILER:FILEPATH=C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\Llvm\\x64\\bin\\clang.exe\" \"-DCMAKE_CXX_COMPILER:FILEPATH=C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\Llvm\\x64\\bin\\clang.exe\" -DPICO_SDK_PATH=~/pico-sdk -DLIBUSB_ROOT=C:/tools/vcpkg/packages/libusb_x64-windows --no-warn-unused-cli -SC:/Users/cross/Desktop/code/picotool -Bc:/Users/cross/Desktop/code/picotool/build -G Ninja\n```\n\ntry to compile and fix the errors (there will be two redifinition errors of built-in functions, just comment them out)\n\nand finally, copy `libusb-1.0.dll` from vcpkg to the executable directory,\nafter the a successful build, you will find `picotool.exe` in the `build` directory\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrosstyan%2Fpicotool-prebuilt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrosstyan%2Fpicotool-prebuilt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrosstyan%2Fpicotool-prebuilt/lists"}