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

The terminal process "ninja" terminated with exit code: 1. #26

Open
beaut1fu1b0y opened this issue Nov 29, 2024 · 0 comments
Open

The terminal process "ninja" terminated with exit code: 1. #26

beaut1fu1b0y opened this issue Nov 29, 2024 · 0 comments

Comments

@beaut1fu1b0y
Copy link

/Users/cattle/Downloads/esp32-opencv-master/esp32/examples/ttgo_demo/main/app_screen.cpp: In function 'UINT tjd_output(JDEC*, void*, JRECT*)':
/Users/cattle/esp/v5.3.1/esp-idf/components/log/include/esp_log.h:290:27: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
  290 | #define LOG_COLOR(COLOR)  "\033[0;" COLOR "m"
      |                           ^
/Users/cattle/esp/v5.3.1/esp-idf/components/log/include/esp_log.h:293:27: note: in expansion of macro 'LOG_COLOR'
  293 | #define LOG_COLOR_E       LOG_COLOR(LOG_COLOR_RED)
      |                           ^~~~~~~~~
/Users/cattle/esp/v5.3.1/esp-idf/components/log/include/esp_log.h:307:37: note: in expansion of macro 'LOG_COLOR_E'
  307 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                     ^~~~~~~~~~
/Users/cattle/esp/v5.3.1/esp-idf/components/log/include/esp_log.h:417:86: note: in expansion of macro 'LOG_FORMAT'
  417 |         if (level==ESP_LOG_ERROR )          { esp_log_write(ESP_LOG_ERROR,      tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag __VA_OPT__(,) __VA_ARGS__); } \
      |                                                                                      ^~~~~~~~~~
/Users/cattle/esp/v5.3.1/esp-idf/components/log/include/esp_log.h:463:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  463 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/Users/cattle/esp/v5.3.1/esp-idf/components/log/include/esp_log.h:359:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  359 | #define ESP_LOGE( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_ERROR,   tag, format __VA_OPT__(,) __VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/Users/cattle/Downloads/esp32-opencv-master/esp32/examples/ttgo_demo/main/app_screen.cpp:257:9: note: in expansion of macro 'ESP_LOGE'
  257 |         ESP_LOGE(TAG, "Data size error: %d jpg: (%d,%d,%d,%d) disp: (%d,%d,%d,%d)\r\n", len, left, top, right, bottom, dleft, dtop, dright, dbottom);
      |         ^~~~~~~~
/Users/cattle/esp/v5.3.1/esp-idf/components/log/include/esp_log.h:290:27: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
  290 | #define LOG_COLOR(COLOR)  "\033[0;" COLOR "m"
      |                           ^
/Users/cattle/esp/v5.3.1/esp-idf/components/log/include/esp_log.h:294:27: note: in expansion of macro 'LOG_COLOR'
  294 | #define LOG_COLOR_W       LOG_COLOR(LOG_COLOR_BROWN)
      |                           ^~~~~~~~~
/Users/cattle/esp/v5.3.1/esp-idf/components/log/include/esp_log.h:307:37: note: in expansion of macro 'LOG_COLOR_W'
  307 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                     ^~~~~~~~~~
/Users/cattle/esp/v5.3.1/esp-idf/components/log/include/esp_log.h:418:86: note: in expansion of macro 'LOG_FORMAT'
  418 |         else if (level==ESP_LOG_WARN )      { esp_log_write(ESP_LOG_WARN,       tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag __VA_OPT__(,) __VA_ARGS__); } \
      |                                                                                      ^~~~~~~~~~
/Users/cattle/esp/v5.3.1/esp-idf/components/log/include/esp_log.h:463:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  463 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/Users/cattle/esp/v5.3.1/esp-idf/components/log/include/esp_log.h:359:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  359 | #define ESP_LOGE( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_ERROR,   tag, format __VA_OPT__(,) __VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/Users/cattle/Downloads/esp32-opencv-master/esp32/examples/ttgo_demo/main/app_screen.cpp:257:9: note: in expansion of macro 'ESP_LOGE'
  257 |         ESP_LOGE(TAG, "Data size error: %d jpg: (%d,%d,%d,%d) disp: (%d,%d,%d,%d)\r\n", len, left, top, right, bottom, dleft, dtop, dright, dbottom);
      |         ^~~~~~~~
/Users/cattle/Downloads/esp32-opencv-master/esp32/examples/ttgo_demo/main/app_screen.cpp:257:1: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
  257 |         ESP_LOGE(TAG, "Data size error: %d jpg: (%d,%d,%d,%d) disp: (%d,%d,%d,%d)\r\n", len, left, top, right, bottom, dleft, dtop, dright, dbottom);
      |                                                                                         ~
      |                                                                                         |
      |                                                                                         uint32_t {aka long unsigned int}
/Users/cattle/esp/v5.3.1/esp-idf/components/log/include/esp_log.h:307:59: note: in definition of macro 'LOG_FORMAT'
  307 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/Users/cattle/esp/v5.3.1/esp-idf/components/log/include/esp_log.h:463:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  463 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/Users/cattle/esp/v5.3.1/esp-idf/components/log/include/esp_log.h:359:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  359 | #define ESP_LOGE( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_ERROR,   tag, format __VA_OPT__(,) __VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/Users/cattle/Downloads/esp32-opencv-master/esp32/examples/ttgo_demo/main/app_screen.cpp:257:9: note: in expansion of macro 'ESP_LOGE'
  257 |         ESP_LOGE(TAG, "Data size error: %d jpg: (%d,%d,%d,%d) disp: (%d,%d,%d,%d)\r\n", len, left, top, right, bottom, dleft, dtop, dright, dbottom);
      |         ^~~~~~~~
/Users/cattle/Downloads/esp32-opencv-master/esp32/examples/ttgo_demo/main/app_screen.cpp:257:1: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
  257 |         ESP_LOGE(TAG, "Data size error: %d jpg: (%d,%d,%d,%d) disp: (%d,%d,%d,%d)\r\n", len, left, top, right, bottom, dleft, dtop, dright, dbottom);
      |                                                                                         ~
      |                                                                                         |
      |                                                                                         uint32_t {aka long unsigned int}
/Users/cattle/esp/v5.3.1/esp-idf/components/log/include/esp_log.h:307:59: note: in definition of macro 'LOG_FORMAT'
  307 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/Users/cattle/esp/v5.3.1/esp-idf/components/log/include/esp_log.h:463:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  463 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/Users/cattle/esp/v5.3.1/esp-idf/components/log/include/esp_log.h:359:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  359 | #define ESP_LOGE( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_ERROR,   tag, format __VA_OPT__(,) __VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/Users/cattle/Downloads/esp32-opencv-master/esp32/examples/ttgo_demo/main/app_screen.cpp:257:9: note: in expansion of macro 'ESP_LOGE'
  257 |         ESP_LOGE(TAG, "Data size error: %d jpg: (%d,%d,%d,%d) disp: (%d,%d,%d,%d)\r\n", len, left, top, right, bottom, dleft, dtop, dright, dbottom);
      |         ^~~~~~~~
/Users/cattle/esp/v5.3.1/esp-idf/components/log/include/esp_log.h:290:27: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
  290 | #define LOG_COLOR(COLOR)  "\033[0;" COLOR "m"
      |                           ^
/Users/cattle/esp/v5.3.1/esp-idf/components/log/include/esp_log.h:295:27: note: in expansion of macro 'LOG_COLOR'
  295 | #define LOG_COLOR_I       LOG_COLOR(LOG_COLOR_GREEN)
      |                           ^~~~~~~~~
/Users/cattle/esp/v5.3.1/esp-idf/components/log/include/esp_log.h:307:37: note: in expansion of macro 'LOG_COLOR_I'
  307 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                     ^~~~~~~~~~
/Users/cattle/esp/v5.3.1/esp-idf/components/log/include/esp_log.h:421:86: note: in expansion of macro 'LOG_FORMAT'
  421 |         else                                { esp_log_write(ESP_LOG_INFO,       tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag __VA_OPT__(,) __VA_ARGS__); } \
      |                                                                                      ^~~~~~~~~~
/Users/cattle/esp/v5.3.1/esp-idf/components/log/include/esp_log.h:463:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  463 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/Users/cattle/esp/v5.3.1/esp-idf/components/log/include/esp_log.h:359:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  359 | #define ESP_LOGE( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_ERROR,   tag, format __VA_OPT__(,) __VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/Users/cattle/Downloads/esp32-opencv-master/esp32/examples/ttgo_demo/main/app_screen.cpp:257:9: note: in expansion of macro 'ESP_LOGE'
  257 |         ESP_LOGE(TAG, "Data size error: %d jpg: (%d,%d,%d,%d) disp: (%d,%d,%d,%d)\r\n", len, left, top, right, bottom, dleft, dtop, dright, dbottom);
      |         ^~~~~~~~
cc1plus: some warnings being treated as errors
[973/1101] Building CXX object esp-idf/main/CMakeFiles/__idf_main.dir/main.cpp.obj
ninja: build stopped: subcommand failed.

 *  The terminal process "ninja" terminated with exit code: 1. 

I've tried using my own pre-built opencv4, still can't build.

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

1 participant