-
Notifications
You must be signed in to change notification settings - Fork 172
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
LVGL9 cannot output Log #37
Comments
Are you the latest code pulled? I can't print using printf or LV_LOG_Error |
Yes, I tried the latest with printf. Do you check the terminal tab? |
yes. no log show |
What is |
it is just a code hint |
I'll just use printf("Hello\n"); The same |
I changed 3 cumputer. all computer is not have log |
Can you shared your Code? I use it to compare |
Really nothing special. Just cloned the project as it is and added |
@kisvegabor Hello senior, I re-built a V8.4 development environment using CLion, which can output log normally. Then I used CLion_V8.4 code to replace the Driver and LVGL code in LV_For_VS_Code respectively, which still cannot output Log, so it can be inferred that, There is a problem with my computer or LV_For_VS_Code code. Could you please help send an LV_For_VS_Code Project in which you can output Log so that I can troubleshoot the computer problem |
That's strange, however I'm using this repo as it is, so you can just clone my project from here 🙂 Maybe @danyyliu has some ideas. |
So it's an UART log. I completely missed that part so far. I think the problem is that you need to disable |
yes use uart log ok,but use default still not work,should i enable LV_OS_WINDOWS? |
No. I can't fix this problem. so i try to use windows uart |
So from the current results, the problem is not related to LVGL, which has the log ready, but the windows console is not starting correctly or vscode is not receiving information from the console |
I use CLion for comparison. When CLion runs the demo, it will open a new console, and the information in the console will be displayed in the IDE, while VSCode does not. Does this mean that VSCode did not wake up the console correctly? @kisvegabor @danyyliu Can you see how many consoles are added to the system when you run the demo using VSCode? |
I haven't done any test like this in Windows. Could you please try it with hello world test without LVGL? I want to see what happens with the console in this situation. |
This is the only project I opened and I didn't do anything else with the console, which is weird |
@danyyliu I suddenly thought of a point, is it related to SDL_Main? |
Does simple printf work instead of LV_LOG? |
I tested MacOS and everything is normal. |
How does your |
I use lv_port_pc_eclipse and lv_port_pc_vscode to add Printf or LV_LOG_ERROR and I can't output log. Why?
The text was updated successfully, but these errors were encountered: