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

LVGL and MPLAB X project on Windows - GCC and CreateProcess issue #6157

Open
wavejaco opened this issue Apr 30, 2024 · 4 comments · May be fixed by #6250
Open

LVGL and MPLAB X project on Windows - GCC and CreateProcess issue #6157

wavejaco opened this issue Apr 30, 2024 · 4 comments · May be fixed by #6250
Labels

Comments

@wavejaco
Copy link

Introduce the problem

I am creating a basic MPLAB X project in Windows to include the use of LVGL. I have followed all the steps to set up the project as explained on the website.

When building the project, the build fails with the following error:
"make (e=87): The parameter is incorrect."

From reading up on the issue, it seems like this issue is triggered due to the Windows limitation of 32k on the CreateProcess function that is used during the project build. This also doesn't seem to be an issue limited to MPLAB X , as there seem to be various cases of this same issue in platforms such as Eclipse, NXP, etc.

Some online answers suggested that the project could be split up in libraries and built in stages, but I have no idea where to start with this approach. Others suggest that the project be built in Linux where this limit is not a problem.

There must be a straight-forward solution to this issue, as I believe there are a lot of Windows users that use LVGL and have no issues with this.

I am attaching a text file with the complete build console output, as it is very long and I don't want to clutter this question.

Kindly advise on how to move forward with this.
MPLAB X build issue console output.txt

Proposal

No response

@kisvegabor
Copy link
Member

Hi,

Line 474 is really very long in the log.

I haven't found any good workarounds either, but what you can do on LVGL's side is removing the examples, demos and tests folders from the build. It will lower the number of files to build greatly.

@lvgl-bot
Copy link

We need some feedback on this issue.

Now we mark this as "stale" because there was no activity here for 14 days.

Remove the "stale" label or comment else this will be closed in 7 days.

@lvgl-bot lvgl-bot added the stale label May 17, 2024
@wavejaco
Copy link
Author

wavejaco commented May 22, 2024

Okay, so some feedback on this issue.

From an example project that I have been given elsewhere, it seems that the main cause of the problem that I have experienced was that, as outlined on the LVGL website, I added the entire "lvgl" folder to my project, where I was seemingly only supposed to add the "src" folder along with the additional header files. So it seems that MPLAB attempted to build all of the examples at once, which caused the issue as described in my initial post. This is in line with what @kisvegabor said above.

I can successfully build the project using only the necessary files for my project.

Perhaps this can be explained slightly more clearly on the website? It is somewhat misleading, as it was in my case.

kisvegabor added a commit to kisvegabor/lvgl_upstream that referenced this issue May 22, 2024
kisvegabor added a commit to kisvegabor/lvgl_upstream that referenced this issue May 22, 2024
@kisvegabor
Copy link
Member

Great that it's working now! I've open #6250 to describe which folders are needed in more detail.

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

Successfully merging a pull request may close this issue.

3 participants