Comments (4)
Here's where the image is set:
And here is where it is declared:
Basically, you'll want to create a new image using the image converter and then include the generated C file in your project. The image converter has a full explanation of the steps.
from lv_port_pc_eclipse.
I did 2 steps :
1.convert image to c array with the name, "background" and it generate background.c
2.add this into proj and change at 2 places
lv_img_set_src(wp, &background);
LV_IMG_DECLARE(background);
But err found and this is error:
Linking C executable pc_simulator
Undefined symbols for architecture x86_64:
"_background", referenced from:
_demo_create in demo.c.o
(maybe you meant: _lv_rletter_set_background)
ld: symbol(s) not found for architecture x86_64
from lv_port_pc_eclipse.
@KaungZawHtet 2 things:
- Are you sure you added the C file to the CMake file?
- Maybe it is called
img_background
instead ofbackground
. You can check the bottom of the generated C file (where anlv_img_dsc_t
variable is declared) to see the exact name to use.
from lv_port_pc_eclipse.
yes, forget to add the line into CMake file. Thx, sir
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
- lvgl master 2024.3.4 lvgl::thorvg compile error HOT 8
- No "Debug" folder - No simulator - Linux Eclipse CDT 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.