Comments (9)
Hi,
Thank you for the reporting the issue and telling our solution.
I implemented SDL_Iinit in a thread because on Windows drawing was possible on in that "context" when the init was called. So the init was required to move to the thread where the drawing happens.
I will immerse in it as I will have time. Until that time your solution surely will help to others on OSX.
from lv_port_pc_eclipse.
I ran into the same problem with SDL. I am using Eclipse Photon Release (4.8.0) and was having the exact issue you described. Waiting for hardware and wanted to get started understanding this UX library.
Much appreciate for the time you put into finding this thoughtful solution.
from lv_port_pc_eclipse.
It works perfectly on my MacOS 10.14. I owe you a beer!
from lv_port_pc_eclipse.
I've got the same issue.
Is there a patch or a fork/branch that I can access to get a a working copy of the source to compile ??
Thanks :)
from lv_port_pc_eclipse.
Hi,
I have create two pull requests to make it work on OSX latest version. Tested locally:
Thanks.
from lv_port_pc_eclipse.
Both merged! Thank you very much!
It should solve the majoraíty of the OSX issues, so close these issue.
from lv_port_pc_eclipse.
I just tried building from the github master and running on my system (High Sierra, eclipse, sdl2 installed from Homebrew) and got the same crash. The only change I needed to make to get it to build was to remove the #define
of USE_FBDEV
in lv_drv_conf.h
.
It looks like the SDL event pump is still running from the monitor thread.
It looks like this was broken in commit 5e42767 when SDL_PollEvent()
was added to monitor_sdl_refr_core()
.
from lv_port_pc_eclipse.
Yep, I see the same crash again.
It runs if you wrap the while(SDL_PollEvent(&event))
with an #ifndef MONITOR_APPLE
from lv_port_pc_eclipse.
Hi,
Thanks for the feedback!
I fixed it here: https://github.com/littlevgl/lv_drivers/blob/master/display/monitor.c#L299
and here: https://github.com/littlevgl/lv_drivers/blob/master/lv_drv_conf_templ.h#L147
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 10
- 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.