Xinyuan-LilyGO / lilygo-micropython

Micropython for LILYGO boards
GNU General Public License v3.0
99 stars 30 forks source link

Error while building T-DisplayS3-amoled, missing file #45

Open JM6502 opened 2 months ago

JM6502 commented 2 months ago

while building i get the error:

CMake Error at /home/Storage-drive/FIRM/lilygo-micropython-master/extmod/display/lcd/src/micropython.cmake:3 (include): include could not find requested file:

/home/Storage-drive/FIRM/lilygo-micropython-master/build_dir/esp32s3/build-LILYGO_T-DisplayS3-AMOLED/../lcd_binding_micropython/lcd/micropython.cmake

Call Stack (most recent call first): /home/Storage-drive/FIRM/lilygo-micropython-master/extmod/micropython.cmake:19 (include) /home/Storage-drive/FIRM/lilygo-micropython-master/build_dir/esp32s3/micropython/py/usermod.cmake:42 (include) main/CMakeLists.txt:14 (include)

And yes i have deleted Ninja, also in the bottom i get the message:

-- Configuring incomplete, errors occurred! See also "/home/Storage-drive/FIRM/lilygo-micropython-master/build_dir/esp32s3/build-LILYGO_T-DisplayS3-AMOLED/CMakeFiles/CMakeOutput.log". cmake failed with exit code 1 make[1]: [Makefile:42: all] Error 2 make[1]: Leaving directory '/home/Storage-drive/FIRM/lilygo-micropython-master/build_dir/esp32s3/micropython/ports/esp32' make: [Makefile:36: all] Error 2

JM6502 commented 2 months ago

I fixed the problem. To fix the follow these steps.

  1. Go to the lilygo-micropython-master folder
  2. Run "Make"
  3. Wait until it errors, the missing file error "CMake Error at /home/Storage-drive/FIRM/lilygo-micropython-master/extmod/display/lcd/src/micropython.cmake:3 (include): include could not find requested file......."
  4. Go to lilygo-micropython-master/tmp/dl
  5. in lilygo-micropython-master/tmp/dl you should find a folder called "lcd_binding_micropython"
  6. copy or cut the lcd_binding_micropython folder into lilygo-micropython-master/build_dir/esp32s3/build-LILYGO_T-DisplayS3-AMOLED
  7. Go to lilygo-micropython-master/extmod/display/lcd/src/
  8. in /lilygo-micropython-master/extmod/display/lcd/src/ there should be a micropython.cmake file
  9. Open the micropython.cmake file and replace the code.
  10. paste in this code:

set(LCD_DIR ${CMAKE_BINARY_DIR}/../lcd_binding_micropython) set(LCD_DIR "/home/Storage-drive/FIRM/lilygo-micropython-master/build_dir/esp32s3/build-LILYGO_T-DisplayS3-AMOLED/lcd_binding_micropython") message(STATUS "LCD_DIR is set to ${LCD_DIR}") include(${LCD_DIR}/lcd/micropython.cmake)

  1. Dont forget to change the path to the path to the lilygo-micropython-master/build_dir/esp32s3/build-LILYGO_T-DisplayS3-AMOLED/lcd_binding_micropython

  2. Save the file

  3. Go back to lilygo-micropython-master and run "make"