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

Generated managed_components occur error (IDFGH-14402) #15184

Closed
3 tasks done
wi-cuckoo opened this issue Jan 11, 2025 · 1 comment
Closed
3 tasks done

Generated managed_components occur error (IDFGH-14402) #15184

wi-cuckoo opened this issue Jan 11, 2025 · 1 comment
Labels
Resolution: Won't Do This will not be worked on Status: Done Issue is done internally Type: Bug bugs in IDF

Comments

@wi-cuckoo
Copy link

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.0

Operating System used.

macOS

How did you build your project?

VS Code IDE

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

None

What is the expected behavior?

no syntax error

What is the actual behavior?

failed, can't build succ

Steps to reproduce.

  1. git clone https://github.com/78/xiaozhi-esp32.git
  2. select board and build
    ...

Build or installation Logs.

In file included from /workspace/espcar/xiaozhi-esp32/managed_components/78__esp-opus-encoder/opus_decoder.cc:1:
/workspace/espcar/xiaozhi-esp32/managed_components/78__esp-opus-encoder/include/opus_decoder.h:15:29: error: 'uint8_t' was not declared in this scope
   15 |     bool Decode(std::vector<uint8_t>&& opus, std::vector<int16_t>& pcm);
      |                             ^~~~~~~
/workspace/espcar/xiaozhi-esp32/managed_components/78__esp-opus-encoder/include/opus_decoder.h:8:1: note: 'uint8_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
    7 | #include "opus.h"
  +++ |+#include <cstdint>
    8 | 
/workspace/espcar/xiaozhi-esp32/managed_components/78__esp-opus-encoder/include/opus_decoder.h:15:36: error: template argument 1 is invalid
   15 |     bool Decode(std::vector<uint8_t>&& opus, std::vector<int16_t>& pcm);
      |                                    ^
/workspace/espcar/xiaozhi-esp32/managed_components/78__esp-opus-encoder/include/opus_decoder.h:15:36: error: template argument 2 is invalid
/workspace/espcar/xiaozhi-esp32/managed_components/78__esp-opus-encoder/include/opus_decoder.h:15:37: error: expected identifier before '&&' token
   15 |     bool Decode(std::vector<uint8_t>&& opus, std::vector<int16_t>& pcm);
      |                                     ^~
/workspace/espcar/xiaozhi-esp32/managed_components/78__esp-opus-encoder/include/opus_decoder.h:15:58: error: 'int16_t' was not declared in this scope
   15 |     bool Decode(std::vector<uint8_t>&& opus, std::vector<int16_t>& pcm);
      |                                                          ^~~~~~~
/workspace/espcar/xiaozhi-esp32/managed_components/78__esp-opus-encoder/include/opus_decoder.h:15:58: note: 'int16_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
/workspace/espcar/xiaozhi-esp32/managed_components/78__esp-opus-encoder/include/opus_decoder.h:15:65: error: template argument 1 is invalid
   15 |     bool Decode(std::vector<uint8_t>&& opus, std::vector<int16_t>& pcm);
      |                                                                 ^
/workspace/espcar/xiaozhi-esp32/managed_components/78__esp-opus-encoder/include/opus_decoder.h:15:65: error: template argument 2 is invalid
/workspace/espcar/xiaozhi-esp32/managed_components/78__esp-opus-encoder/include/opus_decoder.h:15:66: error: expected identifier before '&' token
   15 |     bool Decode(std::vector<uint8_t>&& opus, std::vector<int16_t>& pcm);
      |                                                                  ^
/workspace/espcar/xiaozhi-esp32/managed_components/78__esp-opus-encoder/opus_decoder.cc:23:6: error: no declaration matches 'bool OpusDecoderWrapper::Decode(std::vector<unsigned char>&&, std::vector<short int>&)'
   23 | bool OpusDecoderWrapper::Decode(std::vector<uint8_t>&& opus, std::vector<int16_t>& pcm) {
      |      ^~~~~~~~~~~~~~~~~~
/workspace/espcar/xiaozhi-esp32/managed_components/78__esp-opus-encoder/include/opus_decoder.h:15:10: note: candidate is: 'bool OpusDecoderWrapper::Decode(int&&, int&)'
   15 |     bool Decode(std::vector<uint8_t>&& opus, std::vector<int16_t>& pcm);
      |          ^~~~~~
/workspace/espcar/xiaozhi-esp32/managed_components/78__esp-opus-encoder/include/opus_decoder.h:10:7: note: 'class OpusDecoderWrapper' defined here
   10 | class OpusDecoderWrapper {
      |       ^~~~~~~~~~~~~~~~~~
[1682/1787] Building CXX object esp-idf/78__esp-ml307/CMakeFiles/__idf_78__esp-ml307.dir/ml307_http.cc.obj
ninja: build stopped: subcommand failed.

More Information.

No response

@wi-cuckoo wi-cuckoo added the Type: Bug bugs in IDF label Jan 11, 2025
@github-actions github-actions bot changed the title Generated managed_components occur error Generated managed_components occur error (IDFGH-14402) Jan 11, 2025
@espressif-bot espressif-bot added the Status: Opened Issue is new label Jan 11, 2025
@igrr
Copy link
Member

igrr commented Jan 11, 2025

Looks like you are compiling this component: https://components.espressif.com/components/78/esp-opus-encoder/.

Therefore I suggest reporting the issue in https://github.com/78/esp-opus-encoder/issues ("Repository" link in the above page) or in https://github.com/78/xiaozhi-esp32/issues (the project you are trying to compile).

@igrr igrr closed this as not planned Won't fix, can't repro, duplicate, stale Jan 11, 2025
@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: Won't Do This will not be worked on and removed Status: Opened Issue is new labels Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Won't Do This will not be worked on Status: Done Issue is done internally Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

3 participants