lvgl / lv_port_pc_eclipse

PC simulator project for LVGL embedded GUI Library. Recommended on Linux and Mac.
https://docs.lvgl.io/v7/en/html/get-started/pc-simulator.html
MIT License
284 stars 213 forks source link

lvgl master 2024.3.4 lvgl::thorvg compile error #150

Closed rx-ted closed 8 months ago

rx-ted commented 9 months ago

2024.3.4 git pull to download the least branch of lvgl master, but lvgl::thorvg compiled error, see:

Target "main" links to target "lvgl::thorvg" but the target was not found.
  Perhaps a find_package() call is missing for an IMPORTED target, or an
  ALIAS target is missing?
rx-ted commented 9 months ago

I switch to v8.3, not include lvgl::thorvg, it's compiled successfully.

kisvegabor commented 8 months ago

How do you build the project?

rx-ted commented 8 months ago

Sorry, I have resolved it. The reason is that the dependency file cannot be found.

kisvegabor commented 8 months ago

Sorry, I have resolved it. The reason is that the dependency file cannot be found.

To help others, could you elaborate on this?

Atul-8 commented 8 months ago

Sorry, I have resolved it. The reason is that the dependency file cannot be found.

To help others, could you elaborate on this?

I will lv_drivers and lvgl clone in this project according to a tutorial. When I compile, I will be prompted that SDL2 this file cannot be found.

rx-ted commented 8 months ago

Sorry, I have resolved it. The reason is that the dependency file cannot be found.

To help others, could you elaborate on this?

I will lv_drivers and lvgl clone in this project according to a tutorial. When I compile, I will be prompted that SDL2 this file cannot be found.

Yeah, that is the same with yours.

rx-ted commented 8 months ago

My solution is as follows: Root directory: CMakeLists.txt:29

target_link_libraries(main lvgl lvgl::examples lvgl::demos lvgl::thorvg ${SDL2_LIBRARIES} m pthread)

Remove lvgl::thorvg, change to

target_link_libraries(main lvgl lvgl::examples lvgl::demos ${SDL2_LIBRARIES} m pthread)

This is my idea. I really can't think of anything else. If you has great idea, pls tell me. TKS.

kisvegabor commented 8 months ago

Does it fail for you with clean clone and build too? I've just tested with:

mkdir build
cd build
cmake ..
make -j

and it worked well.