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

teensy_loader_cli.exe for Windows #82

Open
gonzzzales opened this issue Sep 12, 2022 · 6 comments
Open

teensy_loader_cli.exe for Windows #82

gonzzzales opened this issue Sep 12, 2022 · 6 comments

Comments

@gonzzzales
Copy link

Does anyone have a file teensy_loader_cli.exe with support Teensy 4.1?
I cant use Makefile for Windows, compilation goes wrong(((

@Evanok
Copy link

Evanok commented Oct 7, 2022

it it working great for me. You just need to install gcc, make and git bash

lambe@XXXXXX MINGW64 ~/work/repository/xxxxxxx/teensy_loader_cli (master)
$ make OS=WINDOWS CC=gcc
gcc -O2 -Wall -s -DUSE_WIN32 -o teensy_loader_cli.exe teensy_loader_cli.c -lhid -lsetupapi -lwinmm

@dyson-larry
Copy link

I would like to revisit this issue, as nobody has provided a satisfactory guide to set up Windows to allow for using the Make feature to create the teensy_loader_cli.exe

I have installed cygwin64 and installed packages for make and gcc but I am still presented with errors relating to missing header files the c file expects to find:

$ make
cc -O2 -Wall -s -DUSE_WIN32 -o teensy_loader_cli.exe teensy_loader_cli.c -lhid -lsetupapi -lwinmm
teensy_loader_cli.c:373:10: fatal error: ddk/hidsdi.h: No such file or directory
 #include <ddk/hidsdi.h>
          ^~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:4: teensy_loader_cli.exe] Error 1

Having some simple direction/steps to follow to complete the Make build process would be great but I have yet to find any.

@Evanok you seem to have it working great for you, any chance you can elaborate on your setup and what you are using as your make interface?

@Evanok
Copy link

Evanok commented Feb 8, 2023

Did you check this: #55

@mcsmark
Copy link

mcsmark commented Nov 7, 2023

i installed MSYS2 then used ucrt64 to create the exe.

@ctadlock
Copy link

@bohaoy
Copy link

bohaoy commented Dec 27, 2024

I would like to revisit this issue, as nobody has provided a satisfactory guide to set up Windows to allow for using the Make feature to create the teensy_loader_cli.exe

I have installed cygwin64 and installed packages for make and gcc but I am still presented with errors relating to missing header files the c file expects to find:

$ make
cc -O2 -Wall -s -DUSE_WIN32 -o teensy_loader_cli.exe teensy_loader_cli.c -lhid -lsetupapi -lwinmm
teensy_loader_cli.c:373:10: fatal error: ddk/hidsdi.h: No such file or directory
 #include <ddk/hidsdi.h>
          ^~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:4: teensy_loader_cli.exe] Error 1

Having some simple direction/steps to follow to complete the Make build process would be great but I have yet to find any.

@Evanok you seem to have it working great for you, any chance you can elaborate on your setup and what you are using as your make interface?

I downloaded the whole development kit from Microsoft and still ran into this issue.

However I was able to fix it by changing ddk/hidsdi.h to hidsdi.h. Then I was able to compile to create an exe.

For some reason my Makefile didn't work and I had to run the compilation command straight into the terminal.

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

6 participants