Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example not working on rp2040 #231

Open
lMaxiCl opened this issue Aug 9, 2024 · 0 comments
Open

Example not working on rp2040 #231

lMaxiCl opened this issue Aug 9, 2024 · 0 comments

Comments

@lMaxiCl
Copy link

lMaxiCl commented Aug 9, 2024

I installed microzig as a dependency in my zig project using zig fetch {tarball from downloads.microzig.tech}, copypasted main.zig file from your examples folder for raspbery pi pico, copipasted build.zig file from examples root, deleted other build projects except blinky.

When I run zig build:

actual result

error
zig/blink/build.zig:2:26: error: no module named 'microzig/build' available within module root.@build
const MicroZig = @import("microzig/build");

expected result:

uf2 or elf file builds ready to flash on my pico board

research:

shows that in microzig build.zig.zon .build dependency not marked with @ so i believe this is a some sort of private dependency. I tried to change import to just @import( microzig), but then i receive error init method not found.

zig env(not full removed path variables)
"target": "x86_64-linux.6.9.12...6.9.12-gnu.2.39",
"env": {
"ZIG_GLOBAL_CACHE_DIR": null,
"ZIG_LOCAL_CACHE_DIR": null,
"ZIG_LIB_DIR": null,
"ZIG_LIBC": null,
"ZIG_BUILD_RUNNER": null,
"ZIG_VERBOSE_LINK": null,
"ZIG_VERBOSE_CC": null,
"ZIG_BTRFS_WORKAROUND": null,
"ZIG_DEBUG_CMD": null,
"CC": null,
"NO_COLOR": null,
"CLICOLOR_FORCE": null,
"XDG_CACHE_HOME": null,

Thank you in advance for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant