CarlosDerSeher / snapclient

snapclient on ESP32
GNU General Public License v3.0
136 stars 18 forks source link

Compile error: unknown type name 'xSemaphoreHandle' #91

Closed Ebbe closed 4 months ago

Ebbe commented 4 months ago

Hi,

I git cloned (including submodules), ran in docker(I use Linux) then copied sdkconfig_lyrat_v4.3. Running idf.py build results in an error:

In file included from /project/components/audio_board/lyrat_v4_3/board.h:30,
             from /project/components/audio_board/lyrat_v4_3/board_pins_config.c:31:
/project/components/audio_hal/include/audio_hal.h:159:3: error: unknown type name 'xSemaphoreHandle'
  159 |   xSemaphoreHandle audio_hal_lock;                  /*!< semaphore of codec */
      |   ^~~~~~~~~~~~~~~~

I tried renaming it to SemaphoreHandle_t, but that resulted in errors elsewhere in the code.

CarlosDerSeher commented 4 months ago

@Ebbe please fetch latest push from master. Seems I didn't update the templates to IDF v5. Should be alright now.

Ebbe commented 4 months ago

That did the trick. Thanks!