Skip to content

bt_avrc comile issue with cover art feature disabled (IDFGH-15516) #16155

Open
@boborjan2

Description

@boborjan2

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v5.5

Operating System used.

Linux

How did you build your project?

Command line with CMake

If you are using Windows, please specify command line type.

None

What is the expected behavior?

Stack should compile with valid config options.

What is the actual behavior?

Having avrcp configured but cover art support not brakes compilation at btc_avrc,c, line 1694, as variables are not guarded by "#if BTC_AV_CA_INCLUDED".

Steps to reproduce.

CONFIG_BT_AVRCP_ENABLED=y

CONFIG_BT_AVRCP_CT_COVER_ART_ENABLED is not set

Build or installation Logs.

/home/v/esp/esp-idf/components/bt/host/bluedroid/btc/profile/std/avrc/btc_avrc.c: In function 'btc_avrc_get_profile_status':

/home/v/esp/esp-idf/components/bt/host/bluedroid/btc/profile/std/avrc/btc_avrc.c:1695:22: error: 'btc_rc_cb_t' has no member named 'rc_cover_art_connected'

 1695 |         if (btc_rc_cb.rc_cover_art_connected) {

      |                      ^

make[4]: *** [esp-idf/bt/CMakeFiles/__idf_bt.dir/build.make:1993: esp-idf/bt/CMakeFiles/__idf_bt.dir/host/bluedroid/btc/profile/std/avrc/btc_avrc.c.obj] Error 1

Diagnostic report archive.

No response

More Information.

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions