Coder Social home page Coder Social logo

Comments (4)

embeddedt avatar embeddedt commented on September 9, 2024

Here's where the image is set:

https://github.com/littlevgl/lv_examples/blob/088c9db7680764c9a8c9fdd40d0854968c64bd73/lv_apps/demo/demo.c#L65

And here is where it is declared:

https://github.com/littlevgl/lv_examples/blob/088c9db7680764c9a8c9fdd40d0854968c64bd73/lv_apps/demo/demo.c#L46

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.

KaungZawHtet avatar KaungZawHtet commented on September 9, 2024

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.

embeddedt avatar embeddedt commented on September 9, 2024

@KaungZawHtet 2 things:

  1. Are you sure you added the C file to the CMake file?
  2. Maybe it is called img_background instead of background. You can check the bottom of the generated C file (where an lv_img_dsc_t variable is declared) to see the exact name to use.

from lv_port_pc_eclipse.

KaungZawHtet avatar KaungZawHtet commented on September 9, 2024

yes, forget to add the line into CMake file. Thx, sir

from lv_port_pc_eclipse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.