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

ERROR: Module `main' not found! #376

Closed
yoo142 opened this issue Apr 26, 2024 · 2 comments
Closed

ERROR: Module `main' not found! #376

yoo142 opened this issue Apr 26, 2024 · 2 comments

Comments

@yoo142
Copy link

yoo142 commented Apr 26, 2024

I recieve the following error when trying to build or upload a projectusing APIO : "ERROR: Module `main' not found! scons: *** [hardware.json] Error 1"
Capture

@yoo142
Copy link
Author

yoo142 commented Apr 26, 2024

Apologies, I just figured it out, I didn't realize the top module actually had to be named "main". Is this a new feature or am I going crazy? I swear I have built projects without having the module named "main".

@Obijuan
Copy link
Member

Obijuan commented Apr 26, 2024

Please, read the release notes
As the toolchains has been updated, now the top module should be explicitely given in the apio.ini project file
If it is not given, apio will use main as the default
You can add the module name manually in the apio.ini file, or you can use the init command:
apio init -t <yout-top-module-name>

You can also find more information about the init command in the wiki: Init command

@Obijuan Obijuan closed this as completed Jun 12, 2024
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

2 participants