erpc icon indicating copy to clipboard operation
erpc copied to clipboard

Make erpc in MINGW in Windows 10

Open kolodych opened this issue 4 years ago • 4 comments

Hello. I have problems with compilling in MINGW. When I try to "make install" next error appears:

erpc/erpc_c/port/erpc_serial.cpp:210:19: error: unused variable 'bread' [-Werror=unused-variable]
     unsigned long bread = 0;erpc/erpc_c/port/erpc_serial.cpp:309:70: error: 'strnlen_s' was not declared in this scope
         memcpy(full_path, port, strnlen_s(port, sizeof(full_path) - 1));
                                                                      ^
At global scope:
cc1plus.exe: error: unrecognized command line option '-Wno-deprecated-register' [-Werror]
cc1plus.exe: all warnings being treated as errors

What I am doing wrong?)

kolodych avatar May 25 '21 09:05 kolodych

Hi eRPC user. Thank you for your interest and welcome. We hope you will enjoy this framework well.

github-actions[bot] avatar May 25 '21 09:05 github-actions[bot]

Hi @kolodych so far as i know mingw was supported only for small period of time and it is not for very long time and it was never tested on Windows10

Hadatko avatar May 25 '21 09:05 Hadatko

Thanks for the answer. What can I use to compile in windows 10 ?

kolodych avatar May 25 '21 09:05 kolodych

ERPC lib is not available under Windows. You need create your project with transport you want to use on windows. Currrently maybe serial is only supported. Maybe tcp. I am not sure.

Hadatko avatar May 25 '21 09:05 Hadatko

https://github.com/EmbeddedRPC/erpc/pull/344 https://github.com/EmbeddedRPC/erpc/pull/365

Hadatko avatar Sep 27 '23 13:09 Hadatko