Code Monkey home page Code Monkey logo

Comments (4)

ygramoel avatar ygramoel commented on August 18, 2024 1

I reported this issue to Gabor.

I ran into this issue while following the instructions on https://github.com/lvgl/lv_port_pc_eclipse on my Linux desktop running Mint 20.3.

This is what I did (leaving out most of the command output):

$ git clone --recursive https://github.com/littlevgl/pc_simulator_sdl_eclipse.git
...
$ sudo apt install libsdl2-dev
...
$ cmake .. -DLV_USE_DRAW_SDL=ON -DLV_USE_LIBPNG=ON -DLV_USE_LIBJPEG_TURBO=ON
...
Could NOT find SDL2_image (missing: SDL2_IMAGE_LIBRARIES)
...
$ sudo apt install libsdl2-image-dev
...
$ cmake .. -DLV_USE_DRAW_SDL=ON -DLV_USE_LIBPNG=ON -DLV_USE_LIBJPEG_TURBO=ON
...
Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
...
$ sudo apt install libjpeg-dev
...
$ cmake .. -DLV_USE_DRAW_SDL=ON -DLV_USE_LIBPNG=ON -DLV_USE_LIBJPEG_TURBO=ON
...
(normal termination - cmake worked)

The point I wanted to make is that you may want to add the extra required installs libsdl2-image-dev and libjpeg-dev in the instructions.

from lv_port_pc_eclipse.

XuNeo avatar XuNeo commented on August 18, 2024

Hi Gabor,
When -DLV_USE_DRAW_SDL=ON and -DLV_USE_LIBJPEG_TURBO=ON are enabled, it means to link against libsdl2_image and libjpeg_turbo.

I have included the packages need to install in CMakeLists.txt.

if(LV_USE_DRAW_SDL)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
# Need to install libsdl2-image-dev
# `sudo apt install libsdl2-image-dev`
# `brew install sdl2_image`
find_package(SDL2_image REQUIRED)
target_include_directories(lvgl PUBLIC ${SDL2_IMAGE_INCLUDE_DIRS})
target_link_libraries(main ${SDL2_IMAGE_LIBRARIES})
endif(LV_USE_DRAW_SDL)

if(LV_USE_LIBJPEG_TURBO)
# Need to install libjpeg-turbo8-dev
# `sudo apt install libjpeg-turbo8-dev`
# `brew install libjpeg-turbo`
find_package(JPEG REQUIRED)
target_include_directories(lvgl PUBLIC ${JPEG_INCLUDE_DIRS})
target_link_libraries(main ${JPEG_LIBRARIES})
endif(LV_USE_LIBJPEG_TURBO)

from lv_port_pc_eclipse.

kisvegabor avatar kisvegabor commented on August 18, 2024

Thank you for the quick reply. I asked m fried to join the discussion in order to better understand the issue.

from lv_port_pc_eclipse.

kisvegabor avatar kisvegabor commented on August 18, 2024

@ygramoel See #142

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.