-
Notifications
You must be signed in to change notification settings - Fork 162
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
No build description or instructions #5
Comments
LOL, yeah, it isn't you macOS
|
I'm posting this on all of the issues that seem somewhat relevant, but there's a pip-installable option as well (see: #42 (comment)). |
I took similar steps to #5 (comment) to compile this on Linux, with a couple of additional steps:
diff --git a/uf2tool/Makefile b/uf2tool/Makefile
index efc615b..4189070 100644
--- a/uf2tool/Makefile
+++ b/uf2tool/Makefile
@@ -1,3 +1,6 @@
all:
mkdir -p ../built
- $(CC) -g -Wall tool.c ../hidapi/mac/hid.c -I../../uf2-samd21/inc -I../hidapi/hidapi -I. -framework IOKit -framework CoreFoundation -o ../built/uf2tool
+# $(CC) -g -Wall tool.c ../hidapi/mac/hid.c -I../../uf2-samd21/inc -I../hidapi/hidapi -I. -framework IOKit -framework CoreFoundation -o ../built/uf2tool
+#
+# apt-get install libudev-dev
+ $(CC) -g -Wall tool.c ../hidapi/linux/hid.c -I../../uf2-samd21/inc -I../hidapi/hidapi -I. -o ../built/uf2tool -ludev
diff --git a/uf2tool/tool.c b/uf2tool/tool.c
index 9ec20a7..c390f54 100644
--- a/uf2tool/tool.c
+++ b/uf2tool/tool.c
@@ -2,6 +2,7 @@
#include <windows.h>
#endif
#include <stdio.h>
+#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this meant for Linux, Windows OSx?
How to build on Windows? Do you need to create some VS project, or do you have to
install make, mingw and or gccwin ?
Not clear at all, some of us are new to Github. A how-to one liner would help a lot.
Thank you.
The text was updated successfully, but these errors were encountered: