optimize compile, add build2 command

This commit is contained in:
Neucrack
2024-11-26 16:13:53 +08:00
parent 6e6f730659
commit 651d765937
5 changed files with 64 additions and 30 deletions

View File

@@ -6,6 +6,16 @@ You can also find FAQ from:
* [MaixCAM FAQ](https://wiki.sipeed.com/hardware/zh/maixcam/faq.html)
* [MaixPy souce code FAQ](https://wiki.sipeed.com/maixpy/doc/zh/source_code/faq.html)
## Common Compilation Errors and General Solutions
* **Errors such as extraction failures**: Try deleting the corresponding files in the `dl/pkgs` and `dl/extracted` directories, then recompile and download again.
* **Compilation errors**:
* Run `maixcdk build --verbose` to see where the error occurs. **Carefully check the error log** and investigate the issue step by step.
* Run `maixcdk distclean` to clean temporary files, then try recompiling.
* Visit the [GitHub commit history](https://github.com/sipeed/MaixCDK/commits/main/) to check whether the automated tests for each commit passed (a green checkmark ✅ means it passed, a red cross ❌ means it failed). You can switch your local code to a commit that passed the tests ✅ and recompile. Use the command `git checkout <commit-hash>`, for example: `git checkout 3aba2fe3fa9de9f638bb9cb34eca0c2e0f5f3813`. If switching fails, you may need to search for Git usage instructions or start over, but make sure to back up any changes you made to your code.
## Downloading ippicv_2021.8_lnx_intel64_20230330_general.tgz takes a long time or fail
Manually download according to the log's url, and put it into: