libimobiledevice / libimobiledevice-glue

A library with common code used by libraries and tools around the libimobiledevice project
GNU Lesser General Public License v2.1
86 stars 69 forks source link

socket.c:746:2: error: #error get_primary_mac_address is not supported on this platform. #28

Open hellomanyi opened 1 year ago

hellomanyi commented 1 year ago

I build libimobliedevice-glue in MSYS2(MinGW-w64), on Windows 10;

Error Happend:

$ make make all-recursive make[1]: Entering directory '/home/Admin/iOS_Wired_Build/libimobiledevice-glue' Making all in src make[2]: Entering directory '/home/Admin/iOS_Wired_Build/libimobiledevice-glue/src' CC glue.lo CC socket.lo socket.c: In function ‘get_primary_mac_address’: socket.c:746:2: error: #error get_primary_mac_address is not supported on this platform. 746 | #error get_primary_mac_address is not supported on this platform. | ^~~~~ make[2]: [Makefile:484: socket.lo] Error 1 make[2]: Leaving directory '/home/Admin/iOS_Wired_Build/libimobiledevice-glue/src' make[1]: [Makefile:415: all-recursive] Error 1 make[1]: Leaving directory '/home/Admin/iOS_Wired_Build/libimobiledevice-glue' make: *** [Makefile:347: all] Error 2

anyone can help me ? Thanks

nikias commented 2 weeks ago

It should work with MSYS, that's what's also used with Github Actions for this project. Check if config.h has WIN32 defined?