turgu1 / EPub-InkPlate

An EPub Reader for the ESP32 based InkPlate e-Ink devices.
228 stars 8 forks source link

/usr/bin/pkg-config: No such file or directory (M1 Mac/InkPlate 10) #14

Closed nwfisk closed 2 years ago

nwfisk commented 2 years ago

So, I've tried just about everything to debug this issue over the past week, but I simply cannot seem to get this project to build correctly. I get the feeling this is a path issue, which I've tried to correct.

I will mention that I've struggled with the readme somewhat, insofar as it's not always clear which steps are required and which steps have already been completed - so I'm hoping I read correctly and set up my environment correctly.

Any suggestions on how to start debugging this would be greatly appreciated!

`Processing inkplate_10_release (platform: espressif32; board: esp-wrover-kit; framework: espidf)

Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp-wrover-kit.html PLATFORM: Espressif 32 (5.2.0) > Espressif ESP-WROVER-KIT HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash DEBUG: Current (ftdi) On-board (ftdi) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:

Environment Status Duration


inkplate_10_release FAILED 00:00:00.234 ============================================== 1 failed, 0 succeeded in 00:00:00.234 ==============================================`

turgu1 commented 2 years ago

Hello, At this point in time, I'm using the Espressif platform version 5.1.0.

It seems that you don't have the pkg-config tool that is supplying the proper include parameters for FreeType. Don't know if it is available for MacOS.

In platformio.ini, you may try to replace line 42:

  !/usr/bin/pkg-config --cflags --libs lib_freetype/lib/pkgconfig/freetype2.pc

with

  -I$PROJECT_DIR/lib_freetype/include/freetype2 -L$PROJECT_DIR/lib_freetype/lib -lfreetype

Normally, the only external dependency is the ESP-IDF-Inkplate library which is automatically retrieved from my GitHub project. All other dependencies (other than ESP-IDF itself) are in the source tree.

nwfisk commented 2 years ago

Excellent - this worked, thank you!

turgu1 commented 2 years ago

You are welcome!