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
270 stars 213 forks source link

Build instructions with Eclipse produce two errors #10

Closed robtow closed 6 years ago

robtow commented 6 years ago

Following these instructions from README.md:

Import the PC simulator project Open Eclipse CDT Click File->Import and choose General->Existing project into Workspace Browse the root directory of the project and click Finish Build your project and run it

Results in two errors:

Errors (2 items) Description Resource Path Location Type fatal error: SDL2/SDL.h: No such file or directory keyboard.h /lv_dev_5/lv_drivers/indev line 20 C/C++ Problem make: *** [lv_examples/lv_tests/lv_test_group/lv_test_group.o] Error 1 lv_dev_5 C/C++ Problem

This was fixed by doing: sudo apt-get install libsdl2-dev ...and then rebuilding.

Note: Be sure to select running as a "Local C/C++ application", rather than as a STM application.

kisvegabor commented 6 years ago

A few questions:

  1. Which operation system do you use?
  2. Just to be sure: have you installed SDL2?
  3. Are sure you have chosen the correct architecture for SDL2? (must be same as your compiler's: 32 bit or 64 bit)
kisvegabor commented 6 years ago

We have discussion about compiling with SDL on Windows. IF you are also on Windows please check it: https://github.com/littlevgl/lvgl/issues/123#issuecomment-371322117

kisvegabor commented 6 years ago

As there was no activity here for a while I suppose the issue is solved.

If it's not working feel free the comment here and reopen this issue.