Comments (14)
You can even build a executable from withing visual studio so people can try it themselves without compiling ;)
from lv_port_pc_eclipse.
Hi,
However there is no an out of the box Visual studio project so far some people already confirmed that the library can be built in Visual Studio.
I just releases v5.1.1 where you can disable the use of Variable Length Arrays in lv_conf.h which was the only not supported thing in Visual Studio. (LV_COMPILER_VLA_SUPPORTED
).
from lv_port_pc_eclipse.
I suggest this reading: https://guides.github.com/activities/forking/
from lv_port_pc_eclipse.
Thanks you for this information. I will check and try it soon!
from lv_port_pc_eclipse.
Good idea. However it won't be cross-platform but it might be useful for a lot of people.
from lv_port_pc_eclipse.
Has this been taken any further? Getting the simulation buildable from visual studio would be really useful to us.
from lv_port_pc_eclipse.
Many thanks for the reply. Nice to see the project is still active :)
Any ideas how the SDL part should be handled for visual studio (windows) as your installation instructions talk about installing Eclipse and MinGW etc.
Does anyone already have a working project they can share?
from lv_port_pc_eclipse.
I now have this building and running from Visual Studio without the need for MinGW. I will try and share it in the next day or so.
from lv_port_pc_eclipse.
Awesome! Thank you very much!
from lv_port_pc_eclipse.
Sorry i completely forgot to share this. For now its a complete zip file containing the Visual Studio solution, the LittlevGL source, the SDL binaries and a few extra files which are needed to get around the need for mingW. At some point I plan to create a github repo that links to the LittlevGL source but not sure how yet (new to github).
Here is the link
There is a ReadMe file within the Visual Studio folder where I have defined what I did to get this working. I also had to change some of the littlevGL files and have a few suggestions as follows:
Changes:
main.c
> Added #include <windows.h>
> Changed usleep(1000) to Sleep(1)
main.c, mouse.c, monitor.c, keyboard.h
> Change #include "SDL2/SDL.h" to #include "SDL2/include/SDL.h"
pc simulator/lv_conf.h
> change line 85 '#define LV_COMPILER_VLA_SUPPORTED 1' to a zero '0'
Had to remove lv_tests folder from the project due to 'C2099 Error Initializer is not a constant' Regarding the use of macro LV_COLOR_XXX
Notes/Suggestions to Author:
Maybe add a '#ifndef WIN32' around '#define LV_COMPILER_VLA_SUPPORTED 1' and define WIN32 with a zero.
strcpy is considered unsafe so I had to disable deprecation using _CRT_SECURE_NO_WARNINGS in Properties > C/C++ > Preprocessor > Preprocessor Definitions
Suggest changing the header includes for SDL2/SDL.h to SDL2/include/SDL.h
Let me know if you have any issues or comments. Thanks.
@ramonschepers Hope this helps you. It does however still use SDL. Is there a reason why you didn't want to use that library?
from lv_port_pc_eclipse.
Hi,
Thank you very much!
I'm on Linux and unfortunately I didn't used Visual Studio so far. However I just installed Windows in Virtual Box so will try the project soon!
from lv_port_pc_eclipse.
Great, I would be grateful to have any feedback from you.
My next plan will be to set this up through Github and link to your repo so any updates you make can be easily tested... I just need to work out Git... its quite different from SVN which I am used to. Any tips on linking to your repo would be create.
from lv_port_pc_eclipse.
Hi,
I tested your project in Visual Studio 2017.
I needed to "Retarget project" (Right click on project > Retarget project) to find the standard header files.
After it, the compiler didn't found the SDL related functions. For example:
LNK2019 unresolved external symbol SDL_CreateThread referenced in function monitor_init
Have you also used Visual Studio 2017? Or do you have any idea?
from lv_port_pc_eclipse.
@TheGrovesy Meanwhile I figured out how to create a Visual Studio project with SDL from scratch. This video tutorial helped a lot: https://www.youtube.com/watch?v=Sfn7yOiwJLw
I followed your idea to copy SDL into the project so no extra copies of library files are required.
I also added some new config options to the lvgl
, lv_examples
, lv_drivers
to support Visual Studio out of the box.
Here is the project: https://github.com/littlevgl/lv_projects/tree/master/visual_studio_2017_sdl_x64
So after near one year a close this issue :)
If you find bugs or have remarks, please open a new issue for them!
Thank you very much for your contribution! :)
from lv_port_pc_eclipse.
Related Issues (20)
- -lpng not found HOT 3
- table memory overflow HOT 2
- It works HOT 2
- build in windows using cygwin but no gui display HOT 7
- options missing in lv_conf.h HOT 2
- zip download does not include the drivers HOT 1
- MOUSE is not work on submodule lv_drivers v8.3.0 HOT 3
- Importing project to STMCubeIDE HOT 2
- Building the project in Ubuntu HOT 1
- ld: library not found for -lSDL2main HOT 4
- needs update to be able to run on new lvgl master HOT 6
- Recommends to update CMakeLists.txt file at top folder HOT 4
- unknown SDL_PixelFormatEnum HOT 5
- Release branches supported? HOT 2
- problemn building pc_simulator HOT 6
- Demo in `master` gets frozen
- Cmake build error HOT 4
- lv_port_pc_eclipse V9 build failure[windows] HOT 8
- lvgl master 2024.3.4 lvgl::thorvg compile error HOT 8
- Problem running this repository in windows HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lv_port_pc_eclipse.