elixir-circuits / circuits_uart

Discover and use UARTs and serial ports in Elixir
Apache License 2.0
188 stars 48 forks source link

Cannot compile for windows (have the windows driver SDK and mingw installed with chocolatey #159

Open TheDSparrow opened 8 months ago

TheDSparrow commented 8 months ago

Hi Everyone, I am unsure what I'm doing wrong here to compile the circuits_uart project

I have included both mingw32-make and mingw-w64 in the PATH as well as created an environment variable for the windows driver SDK INCLUDE paths.

I don't feel like copying and throwing the dependent include files into the ei_copy is the best solution, but tell me if I should try.

Setup

Expected Behavior

I run mix compile and it gives the following compilation error

==> circuits_uart " CC uart_enum.o" " CC circuits_uart.o" " CC debug_tests.o" " CC uart_enum_win.o" src/uart_enum_win.c:24:22: fatal error: ntddmodm.h: No such file or directory

include

                  ^

compilation terminated. src/Makefile:106: recipe for target ......