compiling ESP32 Web Radio from MrBuddyCasino

vibnwis
Posts: 89
Joined: Thu Aug 24, 2017 1:13 am

compiling ESP32 Web Radio from MrBuddyCasino

Postby vibnwis » Wed Jan 17, 2018 8:17 am

HI there,
I am trying to compile ESP32_MP3_Decoder from MrBuddyCasino. However, having the nunerious trial without any lucks. I encountered the following errors. Please help. I am not convinced that I did it correctly. Hence, would like to see how others did it.

1) with the "/home/esp32/esp/esp-idf/components/bt/include/bt.h:2:2: warning: #warning "This header is deprecated, please use functions defined in esp_bt.h instead." [-Wcpp]
#warning "This header is deprecated, please use functions defined in esp_bt.h instead."

my resolution -- I simply changed bt.h to esp_bt.h

2)
CC build/bt_speaker/bt_app_av.o
In file included from /home/esp32/esp/ESP32_MP3_Decoder/components/bt_speaker/./bt_app_av.c:21:0:
/home/esp32/esp/ESP32_MP3_Decoder/components/bt_speaker/./bt_app_av.c: In function 'bt_av_hdl_avrc_evt':
/home/esp32/esp/ESP32_MP3_Decoder/components/bt_speaker/./bt_app_av.c:143:66: error: 'struct avrc_ct_conn_stat_param' has no member named 'feat_mask'
rc->conn_stat.connected, rc->conn_stat.feat_mask, bda[0], bda[1], bda[2], bda[3],
^
/home/esp32/esp/esp-idf/components/log/include/esp_log.h:244:168: note: in definition of macro 'ESP_LOGI'
INFO) { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__
^
/home/esp32/esp/esp-idf/make/component_wrapper.mk:273: recipe for target 'bt_app_av.o' failed
make[1]: *** [bt_app_av.o] Error 1
/home/esp32/esp/esp-idf/make/project.mk:450: recipe for target 'component-bt_speaker-build' failed
make: *** [component-bt_speaker-build] Error 2

Hmm.. checked the definition of struct avrc_ct_conn_stat_param; truly it has of members of conn_stat.connected. Any ideas how to resolve it?

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: compiling ESP32 Web Radio from MrBuddyCasino

Postby WiFive » Wed Jan 17, 2018 8:55 am

error: 'struct avrc_ct_conn_stat_param' has no member named 'feat_mask'

This was moved
https://github.com/espressif/esp-idf/co ... 42f08d112d

So you can roll back to older idf commit or modify

BuddyCasino
Posts: 263
Joined: Sun Jun 19, 2016 12:00 am

Re: compiling ESP32 Web Radio from MrBuddyCasino

Postby BuddyCasino » Wed Jan 17, 2018 9:06 am

Do I hear someone being motivated to make a pull request?

BuddyCasino
Posts: 263
Joined: Sun Jun 19, 2016 12:00 am

Re: compiling ESP32 Web Radio from MrBuddyCasino

Postby BuddyCasino » Wed Jan 17, 2018 7:51 pm

Thought so. Code is updated, please try again.

vibnwis
Posts: 89
Joined: Thu Aug 24, 2017 1:13 am

Re: compiling ESP32 Web Radio from MrBuddyCasino

Postby vibnwis » Thu Jan 18, 2018 10:50 am

Unfortunately, I still experience the same error. However, I managed to by modifying the line to the old code.

vibnwis
Posts: 89
Joined: Thu Aug 24, 2017 1:13 am

Re: compiling ESP32 Web Radio from MrBuddyCasino

Postby vibnwis » Fri Jan 19, 2018 11:00 am

Although I got it working, I think the best solution is to get the source updated accordingly. You said you have updated it, did you have the same error messages?

BuddyCasino
Posts: 263
Joined: Sun Jun 19, 2016 12:00 am

Re: compiling ESP32 Web Radio from MrBuddyCasino

Postby BuddyCasino » Fri Jan 19, 2018 11:47 am

The error: 'struct avrc_ct_conn_stat_param' has no member named 'feat_mask' should be fixed. Did you pull? Maybe try a "make clean" first. Also I think it would be better to move this discussion to a Github.

vibnwis
Posts: 89
Joined: Thu Aug 24, 2017 1:13 am

Re: compiling ESP32 Web Radio from MrBuddyCasino

Postby vibnwis » Sat Jan 20, 2018 11:08 am

Tried with git pull, still generating the error.
Hence, tried the following on esp-idf and ESP32_MP3_DECODER
> git fetch --all
> git reset --hard origin/master

> make clean
> make

It works.

Many thanks for those who rendered the helping hands.

Who is online

Users browsing this forum: Bing [Bot] and 101 guests