-
Notifications
You must be signed in to change notification settings - Fork 279
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
How to build libusbmuxd on a Windows machine? #100
Comments
@nSneerfulBike 你应该使用 Mingw32 [http://repo.msys2.org/distrib/i686/msys2-i686-20200517.exe] ,然后按照提示安装一些包。 再构建 以下包 git clone https://github.com/libimobiledevice/libusbmuxd.git git clone https://github.com/libimobiledevice/libimobiledevice.git |
@nSneerfulBike 如果编译方面有错误,请参照[#95 ]compilation error on the latest version of libusbmuxd on windows |
So autogen.sh works on Windows too? |
@nSneerfulBike 晚安,我这里才中午12点 |
Sorry but I am totally unable to compile using checking for cython... /mingw64/bin/cython
|
@nSneerfulBike you can just pass |
Thank you but I have now managed to get it working with this, now there's another problem |
@nSneerfulBike #95 |
@nSneerfulBike 你应该看看我和其它人在 Windows 下编译的问题。现在已经解决了你编译出现的错误。 |
The patch works for libusbmuxd but with libimobiledevice gives the following error when typing $ make |
@nSneerfulBike 这个补丁,你应该同时应用于 libusbmuxd 和 libimobiledevice,并且,最好是自己修改 源代码。 |
@nSneerfulBike 也许你可以使用我编译好的二进制文件。 |
You may help me with this release, but then you should send me the binaries for every release, so better to fix existing problems.
What do you mean? I have tried to re-clone both libusbmuxd and libimobiledevice, apply the patch to both of them and only then run |
@nSneerfulBike 你确定是使用的 对应 x86 / x64 的库吗?我看到上面出现了 [_pyx_f_13imobiledevice_to_cstring_array': C:\Users\vincy\Desktop\libimobiledeviceFolder\libimobiledevice\cython/imobiledevice.c:54374: undefined reference to PyString_AsString'] 如果可以,能不能尝试下重新安装 Python 呢?或者建立一个虚拟机 从 libplist > libusbmuxd > libimobiledevice 重新构建呢,保证环境无污染。 当然了,如果你需要二进制文件,我可以给你我最新编译的。更早之前的我没有保存。 |
You made me install the i686 (x86 only) version, and actually I don't know how installing the x86_64 version could be useful since I am using the 32-bit version of MSYS2 |
I fixed the problem I had by replacing every |
@nSneerfulBike 我担心的是,中文翻译为其它语言可能会改变一部分意思。一般二进制文件会在 [src/.libs] 或 [tools/.libs] 文件夹里面。或许你可以安装一个 Everything ,这会方便你查找文件。 |
Thanks for your reply but I have already found every file. The problem now is that idevicerestore does not work. The only "useful" thread for me is this one, but it still doesn't solve my problem. I just type Found device in Recovery mode |
@nSneerfulBike 如果你使用 screenshotr_take_screenshot 、sbservices_get_home_screen_wallpaper_pngdata 等函数,你可能需要修改源文件,添加上 screenshotr_screenshot_image_free(char* _Picture)等函数,用来释放内存。 |
@nSneerfulBike 对此
对此我也没有更好的办法,我在使用命令行的过程中,使用了缓存。自己解压并传入 -C 标记。并且我设置了 -i 或者 -u 标记。 |
Have you built it using imobiledevice? |
@nSneerfulBike 或许你可以修改下参数。-i -u -C 。 |
I have only one iOS device connected so I don't put neither the -u nor the -i since it works the same way, still gives error. I have anyway run: |
The device is already in recovery mode. When I start the command while it isn't it tells me to turn on usbmuxd, but it is on |
如果你指定了 -C,那么你只需要传入 固件解压后的目录就可以了,并不需要再传入 .ipsw 文件。 |
When I do that it tells me that the command is wrong |
你需要提前解压固件,我就是这样做的。 |
C:\Users\vincy\Desktop\imobiledevice compiled>idevicerestore -e -y -C "C:\Users\vincy\Desktop\b" -i 0x001271e808f110a6 Restore IPSW firmware at PATH to an iOS device. PATH can be a compressed .ipsw file or a directory containing all files OPTIONS: Advanced/experimental options: Homepage: https://libimobiledevice.org Yes, I have extracted the .ipsw using WinRAR into "C:\Users\vincy\Desktop\b" |
@XanaduAPI it is no different if I put the "-i 0xxx" before the "-C" |
ECID或许不会需要 0x 开头。如果还有其它的问题,我想你应该去 [https://github.com/libimobiledevice/idevicerestore/issues] 找一找有没有解决方案 |
@XanaduAPI nevermind, it looks like it is working now. I have uninstalled all the Apple softwares I had on my PC and reinstalled everything after removing the iBoot driver, and it did neither give any error nor stop suddenly. Looks great for now |
@nSneerfulBike 如果的设备硬件正常并且与苹果网络的连接良好,一般不会出现问题。祝你顺利 |
Thanks mate, but it looks like that the iBoot driver gives tons of problem. After removing it and reinstalling iTunes from scratch, it's gone pretty straight forward |
You are not passing the ipsw file or path. |
我出现了和你一样的问题,请问你是怎么解决的 |
@WuMoWen |
@XanaduAPI |
@zytzjx 作者好像已经更新修复这个问题,如果你要编译 libimobiledevice ,需要照着 libusbmuxd 里面的 Socket.h Socket.c 进行修改 |
I know this might sound like a stupid question, but I am really struggling to understand how to build this library on Windows 10. I have never done something like this before and I am not finding any tutorial about it. I have also tried with the win32 variant of this library from here, but it gives errors over errors. I have no idea what to do either with MinGW or CMake, so can anybody help me with this?
The text was updated successfully, but these errors were encountered: