Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example project not compiling #2

Open
joaofl opened this issue Jun 5, 2018 · 4 comments
Open

Example project not compiling #2

joaofl opened this issue Jun 5, 2018 · 4 comments

Comments

@joaofl
Copy link

joaofl commented Jun 5, 2018

If I try to compile the example project with the latest sdk from expressif, I get several errors.
Do you think you could fix it?

Here are the errors:

/home/joao/Programas/esp/Bluetooth_Music_Player1/components/mdns_task/mdns_task.c: In function 'mdns_task':
/home/joao/Programas/esp/Bluetooth_Music_Player1/components/mdns_task/mdns_task.c:29:5: error: unknown type name 'mdns_server_t'
     mdns_server_t * mdns = NULL;
     ^
In file included from /home/joao/Programas/esp/esp-idf/components/esp32/include/esp_timer.h:44:0,
                 from /home/joao/Programas/esp/esp-idf/components/freertos/include/freertos/portmacro.h:82,
                 from /home/joao/Programas/esp/esp-idf/components/freertos/include/freertos/portable.h:94,
                 from /home/joao/Programas/esp/esp-idf/components/freertos/include/freertos/FreeRTOS.h:105,
                 from /home/joao/Programas/esp/Bluetooth_Music_Player1/components/mdns_task/mdns_task.c:10:
/home/joao/Programas/esp/Bluetooth_Music_Player1/components/mdns_task/mdns_task.c:45:30: error: implicit declaration of function 'mdns_set_hostname' [-Werror=implicit-function-declaration]
             ESP_ERROR_CHECK( mdns_set_hostname(mdns, MDNS_HOSTNAME) );
                              ^
/home/joao/Programas/esp/esp-idf/components/esp32/include/esp_err.h:106:31: note: in definition of macro 'ESP_ERROR_CHECK'
         esp_err_t __err_rc = (x);                                       \
                               ^
/home/joao/Programas/esp/Bluetooth_Music_Player1/components/mdns_task/mdns_task.c:46:30: error: implicit declaration of function 'mdns_set_instance' [-Werror=implicit-function-declaration]
             ESP_ERROR_CHECK( mdns_set_instance(mdns, MDNS_INSTANCE) );
                              ^
/home/joao/Programas/esp/esp-idf/components/esp32/include/esp_err.h:106:31: note: in definition of macro 'ESP_ERROR_CHECK'
         esp_err_t __err_rc = (x);                                       \
                               ^
/home/joao/Programas/esp/Bluetooth_Music_Player1/components/mdns_task/mdns_task.c:48:47: warning: passing argument 1 of 'mdns_service_add' from incompatible pointer type [-Wincompatible-pointer-types]
             ESP_ERROR_CHECK( mdns_service_add(mdns, "_http", "_tcp", 80) );
                                               ^
/home/joao/Programas/esp/esp-idf/components/esp32/include/esp_err.h:106:31: note: in definition of macro 'ESP_ERROR_CHECK'
         esp_err_t __err_rc = (x);                                       \
                               ^
In file included from /home/joao/Programas/esp/Bluetooth_Music_Player1/components/mdns_task/mdns_task.c:19:0:
/home/joao/Programas/esp/esp-idf/components/mdns/include/mdns.h:138:11: note: expected 'const char *' but argument is of type 'int *'
 esp_err_t mdns_service_add(const char * instance_name, const char * service_type, const char * proto, uint16_t 
           ^
In file included from /home/joao/Programas/esp/esp-idf/components/esp32/include/esp_timer.h:44:0,
                 from /home/joao/Programas/esp/esp-idf/components/freertos/include/freertos/portmacro.h:82,
                 from /home/joao/Programas/esp/esp-idf/components/freertos/include/freertos/portable.h:94,
                 from /home/joao/Programas/esp/esp-idf/components/freertos/include/freertos/FreeRTOS.h:105,
                 from /home/joao/Programas/esp/Bluetooth_Music_Player1/components/mdns_task/mdns_task.c:10:
/home/joao/Programas/esp/Bluetooth_Music_Player1/components/mdns_task/mdns_task.c:48:30: error: too few arguments to function 'mdns_service_add'
             ESP_ERROR_CHECK( mdns_service_add(mdns, "_http", "_tcp", 80) );
                              ^
/home/joao/Programas/esp/esp-idf/components/esp32/include/esp_err.h:106:31: note: in definition of macro 'ESP_ERROR_CHECK'
         esp_err_t __err_rc = (x);                                       \
                               ^
In file included from /home/joao/Programas/esp/Bluetooth_Music_Player1/components/mdns_task/mdns_task.c:19:0:
/home/joao/Programas/esp/esp-idf/components/mdns/include/mdns.h:138:11: note: declared here
 esp_err_t mdns_service_add(const char * instance_name, const char * service_type, const char * proto, uint16_t 
           ^
In file included from /home/joao/Programas/esp/esp-idf/components/esp32/include/esp_timer.h:44:0,
                 from /home/joao/Programas/esp/esp-idf/components/freertos/include/freertos/portmacro.h:82,
                 from /home/joao/Programas/esp/esp-idf/components/freertos/include/freertos/portable.h:94,
                 from /home/joao/Programas/esp/esp-idf/components/freertos/include/freertos/FreeRTOS.h:105,
                 from /home/joao/Programas/esp/Bluetooth_Music_Player1/components/mdns_task/mdns_task.c:10:
/home/joao/Programas/esp/Bluetooth_Music_Player1/components/mdns_task/mdns_task.c:49:30: error: implicit declaration of function 'mdns_service_instance_set' [-Werror=implicit-function-declaration]
             ESP_ERROR_CHECK( mdns_service_instance_set(mdns, "_http", "_tcp", "ESP32 WebServer") );
                              ^
/home/joao/Programas/esp/esp-idf/components/esp32/include/esp_err.h:106:31: note: in definition of macro 'ESP_ERROR_CHECK'
         esp_err_t __err_rc = (x);                                       \
                               ^
cc1: some warnings being treated as errors
/home/joao/Programas/esp/esp-idf/make/component_wrapper.mk:285: recipe for target 'mdns_task.o' failed
make[1]: *** [mdns_task.o] Error 1
/home/joao/Programas/esp/esp-idf/make/project.mk:467: recipe for target 'component-mdns_task-build' failed
make: *** [component-mdns_task-build] Error 2

@joaofl
Copy link
Author

joaofl commented Jun 6, 2018

I managed to compile it without this mdns component.

It gets connected, but the music sound accelerated (sound like rats singing). Any clue why?

This figure you have as example, from which implementation did you get that working? For me, neither the display nor the radio is working...

@LilyGO
Copy link
Owner

LilyGO commented Jun 9, 2018

@joaofl I re-uploaded the code and it works fine

@joaofl
Copy link
Author

joaofl commented Jun 9, 2018

Thanks a lot!

Which version of the sdk did you use to compile it?

Going to test it later and give some feedback.

@joaofl
Copy link
Author

joaofl commented Jun 9, 2018

I noticed that you have completely removed the source code. Do you plan to add it back? That would be very important.

Also, if you could post the command you use to burn the firmware on the board. That would make a very easy start for everybody.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants