Closed egonbeermat closed 2 years ago
I can't reproduce this.
VersionHelpers.h
is in C:\Program Files\CodeBlocks\MinGW\x86_64-w64-mingw32\include
on my system (Windows 8.1).
What version of Windows are you using?
Windows 10 Pro, 64 bit. I have VersionHelpers.h in that directory,too. The LVGL v7 CodeBlocks simulator project builds just fine, and it doesn't seem any different from the v8 project with regard to this particular issue. I'm not a heavy CodeBlocks user, I'm only here for the simulator, but it seems like some configuration issue, but I don't know what - the v7 simulator worked out the box, so I don't recall messing with any configuration.
v7 used my pretty simplistic Windows driver, whereas v8 uses win32drv by Kenji Mouri, which is much faster and also supports the keyboard/mousewheel. However, it also depends on this header file.
I'll try setting it up on a fresh VM and see if I get the same issue.
Thanks!
Sorry for the delay in getting back to this.
Unfortunately it also worked on my Windows 10 VM. The only explanation I can see here is that for some reason you have CodeBlocks installed differently (though in that case, I'm not sure why the v7 simulator worked).
Personally, I find the full Visual Studio (not Code) to be somewhat bloated, but we do have a project for it as well. It might be worth a try if CodeBlocks is giving this issue.
I wanted to try v8 example so I update this repo and run in same issue as @egonbeermat.
I uninstalled Codeblocks as I did not have VersionHelpers.h
in C:\Program Files\CodeBlocks\MinGW\x86_64-w64-mingw32\include
and installed one with MinGW included but this did not solved the issue.
After bit of GoogleFu I found some post where they recommend to include path for missing file so I did that and now I can Build and run
example. I can not use mouse and keyboard in the example though.
EDIT:
I realized after posting here that I had MinGW installed separately and after removing folder with it, I could not build project anymore and after setting right path to GCC compiler in Program Files
I can build project without including path to VersionHelpers.h
Still no keyboard and mouse.
I had MinGW installed separately and after removing folder with it, I could not build project anymore and after setting right path to GCC compiler in Program Files I can build project without including path to VersionHelpers.h
I'll add a note to the README that having a separate MinGW installation may cause issues. It's also possible that your MinGW version is older than the one CodeBlocks provides. In any case, glad this mystery was resolved.
Still no keyboard and mouse.
Strange. As far as I know, the new Windows driver always enables mouse and keyboard support.
@MouriNaruto Could you take a look at this, please?
@embeddedt Got it, I need some time to check it.
@embeddedt @dronecz
Still no keyboard and mouse.
I have just create a PR in lv_drivers. I have tested under lv_sim_codeblocks_win and solved the issue.
Thanks @MouriNaruto for this. I manually copied your changes and it works now.
One thing which I did not expect is that scroll wheel act as tabulator key. If I scroll, I will jump from object to object (see gif). Is this wanted behavior? I would expect that scroll wheel will work just in area where scrollbar is and not at "header" and "footer" of the example.
Ok, thank you for clarification @MouriNaruto . 🙂
Ok, I completely uninstalled CodeBlocks and MinGW (which was also in a separate folder outside of CodeBlocks, as identified above), and reinstalled the MinGW version of CodeBlocks, and that seemed to do the trick. I only use those for LVGL simulator, so I'm wondering if the previous setup I had was due to install instructions from a previous version? Regardless, thanks for the help in getting to the bottom of this!
I only use those for LVGL simulator, so I'm wondering if the previous setup I had was due to install instructions from a previous version?
The instructions haven't changed since the repository was created, besides being more explicit about using the MinGW version, so I have no idea why/how you ended up with that setup. :confused:
I've added a note to the README that using a separate installation may cause issues.
Trying to build and run the simulator, got fatal build error:
VersionHelpers.h: No such file or directory
Steps taken: downloaded and installed CodeBlocks 20.03 with MinGW. Downloaded the simulator project and LVGL files:
Opened LittlevGL.cbp in CodeBlocks and did Build and Run:
Not even sure where to begin resolving....