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
Compiling libusbmuxd on windows #31
Comments
Is that line of source really |
So apparently, compiling in mingw causes a problem with the libusbmuxd on line for sleep. IT worked fine without the sleep define and now it works flawlessly. |
I have met the same error prompts when use MinGW/msys compile it on Windows 10. $ make |
Interchanging the #include directives will be needed. In the libusbmuxd.c file, |
@hyunmin90 @sesjrs both your solutions solve the problem. |
Can you guys try my patch here: https://gist.github.com/nikias/1822406ace368657a35703f68000be6c |
seems ok. |
Should be fixed with commit 5b338a4 |
So I have successfully got to a point where I am compiling libusbmuxd on windows mingw to use it for windows platform.
However although autogen.sh and configure is done without error
it fails to make libusbmuxd at below . Does anyone have any idea on this? Is there a clear instruction on how to build in windows? Quoatmotion seems to have something but they don't detail anything on how to compile...
$ make
make all-recursive
make[1]: Entering directory
/home/Naver/libusbmuxd-1.0.10' Making all in common make[2]: Entering directory
/home/Naver/libusbmuxd-1.0.10/common'CC collection.lo
CCLD libinternalcommon.la
make[2]: Leaving directory
/home/Naver/libusbmuxd-1.0.10/common' Making all in src make[2]: Entering directory
/home/Naver/libusbmuxd-1.0.10/src'CC libusbmuxd.lo
libusbmuxd.c:46:26: error: expected ';', ',' or ')' before numeric constant
#define sleep(x) Sleep(x_1000)
^
libusbmuxd.c:46:25: error: expected ';', ',' or ')' before '' token
#define sleep(x) Sleep(x_1000)
^
make[2]: ** [libusbmuxd.lo] Error 1
make[2]: Leaving directory
/home/Naver/libusbmuxd-1.0.10/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory
/home/Naver/libusbmuxd-1.0.10'make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: