lv_port_pc_eclipse icon indicating copy to clipboard operation
lv_port_pc_eclipse copied to clipboard

lvgl master 2024.3.4 lvgl::thorvg compile error

Open rx-ted opened this issue 11 months ago • 1 comments

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 avatar Mar 04 '24 15:03 rx-ted

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

rx-ted avatar Mar 04 '24 15:03 rx-ted

How do you build the project?

kisvegabor avatar Mar 14 '24 13:03 kisvegabor

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

rx-ted avatar Mar 14 '24 13:03 rx-ted

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

To help others, could you elaborate on this?

kisvegabor avatar Mar 16 '24 13:03 kisvegabor

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.

Atul-8 avatar Mar 17 '24 05:03 Atul-8

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 avatar Mar 17 '24 08:03 rx-ted

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.

rx-ted avatar Mar 17 '24 08:03 rx-ted

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.

kisvegabor avatar Mar 21 '24 11:03 kisvegabor