Comments (3)
It seems you are using windows. In this case you need to use pthread.dll too.
http://sourceware.org/pthreads-win32/
from lv_port_pc_eclipse.
I tried it on Windows again and need to do the following steps:
- Download pthread from here: ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-9-1-release.zip
- Copy Pre-built.2/include/ content to C:/MinGW/include
- Copy Pre-built.2/lib/x64/ content to C:/MinGW/lib (If you have a 64 machine)
- Copy Pre-built.2/dll/x64/ content to {eclipse_worksapce}/lv_pc/Debug/
- I got an error: 'struct timespec' redefined. To solve this: Project properties -> C/C++ Build -> Settings -> GCC C++ Compiler -> Miscellaneous -> Others flag and add -DHAVE_STRUCT_TIMESPEC (it could be a pthread issue)
- Download the development libraries of SDL from https://www.libsdl.org/download-2.0.php here Development Libraries: SDL2-devel-2.0.5-mingw.tar.gz
To get it work I need to use the i686 (32 bit) libraries even on 64 bit system. So if you get undefined reference to SDL_init() error try the x86_64_w64_mingw folder - Copy i686-w64-mingw32/include/SDL2 folder to C:/MinGW/include
- Copy i686-w64-mingw32/lib/ content to C:/MinGW/lib
- Copy i686-w64-mingw32/bin/SDL2.dll content to {eclipse_worksapce}/lv_pc/Debug/
Does it working now?
from lv_port_pc_eclipse.
In v5.0.0 pthread is already not used. More info
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.