add support for windows os
Hi maintainers, I add support for windows OS, I hope this will help more people use this project in windows. I love use vscode to do software development.
Hi Kisvegabor,
Thank you so much for reviewing my pull request and providing your suggestions. Your work on LVGL has been a tremendous help to many people, and it’s an honor to receive your feedback!
I apologize for the delay in responding. I’ve been under a lot of work pressure recently, but I tested your approach as soon as I could, and it works perfectly. I really appreciate your guidance!
Regarding my original changes, they were based on my beginner experience with LVGL. I started with this simulator and used SDL2 because it was mentioned in the documentation. Your suggestion has shown me a much better way—thank you for pointing that out!
Would it be okay if I add your approach to this repository? I believe many beginners, especially Windows users, would benefit from an out-of-the-box solution here. While there is another repository that provides a similar setup, it uses Code::Blocks, which is less convenient for reading and modifying code compared to VSCode. Adding Windows support here could make this simulator even more beginner-friendly.
Thanks again for your time and help! I’m looking forward to hearing your thoughts.
Hi Kisvegabor,
I read your suggestion and noticed you mentioned using Kconfig for project configuration, like:
#define LV_USE_WINDOWS 1
However, I also saw a TODO note under the Kconfig section. Can I contribute to the Kconfig development or documentation?
I’m familiar with converting .config files into config.h. For example, I could enable generating lv_config.h from an lvgl.config file. After running:
cmake --build . --target menuconfig
the .config and config.h files would be generated after configuration.
This comes from Zephyr. I adapted the approach and have successfully implemented it in a project I’m currently working on.
Looking forward to your thoughts!
It's my pleasure :slightly_smiling_face: And I'm also sorry for the delay.
However, I also saw a TODO note under the Kconfig section
Where do you see this "TODO" exactly?
Do you mean introducing Kconfig/config.h based config system for this repo? If so, I suggest proceeding gradually. Let's add Windows support to this repo, and figure out what to do next.
Hi @Logic-Bai Any updates here? I very much like the idea of having out-of-the-box for windows users Let me know if you need any help in getting this to the finishing line :checkered_flag:
Hi @AndreCostaaa First, sorry for the radio silence—this year's job was brutal, leaving me no time to follow up. Appreciate your patience. Noticed you integrated SDL2 for cross-platform support. Are you maintaining the project now? Tested the latest changes, after adding DLS2, it runs on Windows flawlessly. Closing the issue now. Thanks again for the hard work!
No worries. I know how it goes. Yes, trying to make sure this repository stays up to date and is a ready-to-use LVGL project for everyone
Glad to hear it worked flawlessly, thank you for reporting back !