-
Notifications
You must be signed in to change notification settings - Fork 187
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
Makefile issues #192
Comments
The Python can be called |
Right, hence I was able to edit the makefile fairly easily to get it to successfully build. I just wanted to point it out since some users may try to build with a binary called "python", which would cause the makefile to fail. Anyways, at the very least it may be wise to add Python 3 as a build requirement in the read-me for this repository, because it is not currently listed. |
@davepruitt thanks for documenting can you also share how you edited the make file for python? |
Thanks, the issue is solved.
|
I just successfully built the grand central M4 bootloader, but it took some tweaking of the makefile. It's possible that the issues are related to me using Windows rather than Linux/Unix, but I figured I would report the issue anyway just in case.
There are a few issues that I encountered.
First: the makefile includes the following lines which are supposed to create the uf2_version.h file:
In order for these lines to work, I first had to manually create the ./build/grandcentral_m4/ folder. Otherwise it would crash. I expected it to be able to create these folders on its own. I am confident I was working in a folder with write permissions.
Additionally, the uf2_version.h file that was created did not have the expected text. The actual contents of the created file were the following:
And I presume that the intention was to create a file with the following contents instead:
I had to manually change the file contents after the file was created to get it to work.
Next, the makefile requires python3 on lines 177 and 187. This is not listed in the build requirements in the read-me for this repository, and it should be.
Additionally, I actually do have Python 3 installed (version 3.9.11 to be exact, installed with conda), and it is the only Python installation I have on my machine, and it is in the path, however the Python binaries are not called python3. Rather, the Python binary is simply called python. Therefore, the call to execute python3 failed because there is no binary called python3.
It may be wise to adapt the makefile so that it could use a binary called python3 or a binary called python, depending on what is installed on the user's system. For me, as a workaround, I just edited the makefile on my machine to call python instead of python3.
The text was updated successfully, but these errors were encountered: