-
Notifications
You must be signed in to change notification settings - Fork 127
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
How to use this project? #39
Comments
Please try this way:
|
Thanks for your help. I installed the extension (I didn't think it was necessary as I don't want to debug the program, I just want to run it). And VSCode does say that the workspace is "open". But it doesn't change anything, I'm still unsure about what to do after opening the workspace, and if I try to click the "run" icon on the main.c, I still have the same error I posted above. |
I checked what @hchargois written above, if I am taking it correctly, I think what @hchargois wants is: build and execute main program with vscode, instead of shell commands. I think it should be done in this way:
Please let me know if I am take it correctly, @hchargois |
Thank you for your help, adding the task and running it as you've shown works fine, the demo builds and runs correctly! But I'm very confused... I'm not sure that's what I want? I mean, since that task was not provided already, this makes me think that it was not how I was supposed to use this project? So, I'm back to my very first question: what does this project do and how to use it? Maybe it would help if I explain how I arrived at this point. I came to this project because of the "Get Started" documentation: https://lvgl.io/get-started This doc forces us to choose an IDE. I chose VScode as that's what I'm writing code with. And the doc says to "read the README" of the project. So I read the README of this project, but I don't see anything about how to use it. The "Usage" section only explains how to install dependencies, but not what to do after that, i.e. how to actually use the project. BTW I would absolutely, 100% prefer NOT to use an IDE, and instead just run commands in a terminal myself. However the get started documentation doesn't offer this option; and I don't see any documentation about how to "get started" with the simulator & demos by just running commands in a terminal. So, yeah, the "get started" doc promises "10 minutes" to set up a simulator, and I'm hours into this and I still don't know what to do 😅 |
Well, it's clear that it's not a technical question, either a question I can answer. Maybe @kisvegabor can help us with this. |
Hi, this project is meant as a VisualStudio Code project with configured workspace file, which
The process should be:
If this doesn't work, please try changing the tasks section to
|
Thanks for the detailed steps. Everything works fine. Looking back at my first post, I now see that the "Debug LVGL demo with GDB" option was there all along. Had I clicked on it, I think it would have worked right off the bat. It's just unfortunate that VSCode adds 2 unrelated C/C++ tasks, which I guess are automatically added whenever it detects a C file, but these fail to build since they're not invoking the actual build system. And it even puts those tasks at the very top of the list. Even the "Detected task" mention may have made things even more confusing for me by making me believe these were "detected" in the workspace file. I really think these steps (or at the very least the name of the task that we're expected to run) should be in the README in a usage section. I guess I can close this ticket, thanks all for the help. |
Based on your feedback I've updated the README. What do you think? |
It's great! Especially having both options. Thanks. BTW a few days ago I stumbled upon another project, https://github.com/lvgl/lv_port_linux That is exactly the project I would have loved to see as the one true official way to "get started". Something simple that can be reliably configured and run with a few simple, documented commands, without having to worry about a complex IDE. |
Oh, very nice! It's great that the change was useful! 😊 |
Hi, I'm a bit confused about how to use this project.
The README has a "Usage" section but it only contains info about how to clone the project and install dependencies... What should we do after that?
I saw that there's a
CMakeLists.txt
file, so I rancmake .
, which created aMakefile
, so I then ranmake
, and that did create abin/main
binary which runs correctly. But I don't think this is how we're supposed to compile and run the project, right? We're supposed to build and run it from within VSCode I think.If I open VSCode by running
code simulator.code-workspace
, openmain/src/main.c
and click the "Run" icon, it asks me to select a "debug configuration":The first one seems alright, but if I click on it, the compilation within VSCode fails:
Is this the right way to do? Should this work? If not, what's the correct way to run the project from VSCode?
The text was updated successfully, but these errors were encountered: