๋๋ cygwin๊ณผ MinGW๋ฅผ ๋ชจ๋ ์ฌ์ฉํ์ฌ libimobiledevice์ ๊ทธ ์ข ์์ฑ์ ์ปดํ์ผํ๋ ค๊ณ ์๋ํ์ต๋๋ค. ๋ชจ๋ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ ํ Windows ์คํ ํ์ผ์ ๋ง๋ค ์ ์์์ต๋๋ค. ๊ทธ๋ฌ๋ ๋ ํ๊ฒฝ(Cygwin ๋ฐ MinGW) ๋ชจ๋์์ ๋์ผํ ์ค๋ฅ๊ฐ ๋ฐ์ํ์ต๋๋ค.
./idevice_id -l
socket_connect: getaddrinfo: Unknown error
ERROR: Unable to retrieve device list!
https://github.com/libimobiledevice/libimobiledevice/issues/783 ์์๋ ๋์ผํ ์ค๋ฅ๊ฐ ๋ณด๊ณ ๋์์ต๋๋ค.
๋ด๊ฐ ๋ฐ๋ฅผ ์ ์๋ Windows์์ ์ปดํ์ผํ๊ธฐ ์ํ ๋ช ๊ฐ์ง ๊ธฐ๋ก์ด ์์ต๋๊น? ์๋๋ ๋ด๊ฐ ๋ฐ๋๋ ๋ค์ํ ๋จ๊ณ์ ํธ์ง์ ๋๋ค.
MSys2 ์ค์น
https://stackoverflow.com/questions/26453293/what-is-the-best-way-to-install-pkg-config-on-mingw-in-2014
https://www.msys2.org/MinGW ์ค์น
http://www.mingw.org/wiki/MSYS
Windows์์ bin ํด๋๋ฅผ ํ๊ฒฝ ๋ณ์๋ก ์ค์ libplist ๋น๋
./autogen.sh
๋ง๋ค๋ค
์ค์นํ๋ค
(ํ์ด์ฌ ์ค๋ฅ๊ฐ ๋ฐ์ํ ๊ฒ์ ๊ธฐ์ตํ๋ฏ๋ก --without-cython์ ์ค์นํด์ผ ํ์ต๋๋ค)usbmuxd ๋น๋
./autogen.sh
๋ง๋ค๋ค
์ค์นํ๋คopenssl dev libs๋ฅผ ์ฐพ์ ์ ์์ผ๋ฏ๋ก GNUTLS๋ฅผ ์ค์นํ์ญ์์ค.
https://github.com/libimobiledevice/libimobiledevice/issues/617
ํฉ๋งจ -S mingw-w64-x86_64-gnutls
ํฉ๋งจ -S ๋ํ
ํฉ๋งจ -S libgnutls
ํฉ๋งจ -S openssl
ํฉ๋งจ -S libopenssl
ํฉ๋งจ -S openssl-devellibcrypt ์ค์น
ํฉ๋งจ -S libgcrypt-devel์ง๋ค
./autogen.sh --without-cython --disable-openssl
๋ง๋ค๋ค
์ค์นํ๋ค
msys2๋ฅผ ์ฌ์ฉํ๊ณ cygwin ๋๋ mingw๋ฅผ ์ฌ์ฉํ์ง ๋ง์ญ์์ค. ๋๋ ์ฐ๊ฒฐ๋ ๋ฌธ์ ์์ ๊ทธ๊ฒ์ ์ธ๊ธํ๋ค.
์ฌ์ค์. mingw/cygwin์ด ๊ตฌ์์ธ์ง ์๋๋ฉด ์คํ์ด Windows 10 1809/1903์์ ์๋ํ์ง ์๋์ง ๋ชจ๋ฅด๊ฒ ์ง๋ง msys2๋ ์๋ํฉ๋๋ค.
@mexmer ์ค์ ๋ก MSys2 ํฐ๋ฏธ๋์ ์ฌ์ฉํ์ต๋๋ค. mingw๋ฅผ ์ ๊ฑฐํ๊ณ Msys2 ํฐ๋ฏธ๋์์ ์ฒ์๋ถํฐ ๋ค์ ๋น๋ํด์ผ ํฉ๋๊น?
OpenSSL์ ์ฌ์ฉํ์ฌ MSys2๋ก ์ปดํ์ผํ ์ ์์์ต๋๋ค.
์ด๊ฒ์ ๋ค๋ฅธ ์ฌ๋์๊ฒ ๋์์ด ๋ ์ ์์ต๋๋ค.
MSys2 ์ค์น
https://stackoverflow.com/questions/26453293/what-is-the-best-way-to-install-pkg-config-on-mingw-in-2014
https://www.msys2.org/
libplist ๋น๋
์์ ๋ณต์ https://github.com/libimobiledevice/libplist.git
(ํ์ด์ฌ ์ค๋ฅ๊ฐ ๋ฐ์ํ ๊ฒ์ ๊ธฐ์ตํ๋ฏ๋ก --without-cython์ ์ค์นํด์ผ ํ์ต๋๋ค)
./autogen.sh --without-cython
๋ง๋ค๋ค
์ค์นํ๋ค
libusb ๋น๋
์์ ํด๋ก https://github.com/libusb/libusb.git
./autogen
๋ง๋ค๋ค
์ค์นํ๋ค
libusbmuxd ๋น๋
์์ ๋ณต์ https://github.com/libimobiledevice/libusbmuxd.git
./autogen.sh
๋ง๋ค๋ค
์ค์นํ๋ค
libcrypt ์ค์น
ํฉ๋งจ -S libgcrypt-devel
๊ธฐ๋ณธ์ ์ผ๋ก OpenSSL์ ์ง์ํ๋ ๊ฒฝ์ฐ:
ํฉ๋งจ -S openssl
ํฉ๋งจ -S libopenssl
ํฉ๋งจ -S openssl-devel
openssl dev libs๋ฅผ ์ฐพ์ ์ ์๋ ๊ฒฝ์ฐ GNUTLS ์ค์น
https://github.com/libimobiledevice/libimobiledevice/issues/617
ํฉ๋งจ -S mingw-w64-x86_64-gnutls
ํฉ๋งจ -S ๋ํ
ํฉ๋งจ -S libgnutls
ํฉ๋งจ -S libgnutls-devel
libimobiledevice ๋น๋
์์ ๋ณต์ https://github.com/libimobiledevice/libimobiledevice.git
__// OpenSSL ์ฌ์ฉ_
./autogen.sh --without-cython
__// GNU TLS ์ฌ์ฉ_
./autogen.sh --without-cython --disable-openssl
๋ง๋ค๋ค
์ค์นํ๋ค
์ด๊ฒ์ ํ์ด์ฌ ๋ฌธ์ ์์ด ์์ ๋ชจ๋ ๊ฒ์ ๋น๋ํ๊ธฐ ์ํด ์ค์นํด์ผ ํ๋ ๊ฒ๋ค์ ๋ชฉ๋ก์ ๋๋ค:
ํฉ๋งจ -S ์์
ํฉ๋งจ -S libedit
ํฉ๋งจ -S mingw-w64-i686-toolchain
pacman -S --ํ์ํ base-devel msys2-devel
ํฉ๋งจ -S mingw-w64-x86_64-python
ํฉ๋งจ -S msys/libcrypt-devel
ํฉ๋งจ -S openssl
ํฉ๋งจ -S libopenssl
ํฉ๋งจ -S openssl-devel
https://github.com/libimobiledevice/ideviceinstaller ๋ ๋น๋ํ๋ ค๋ฉด ๋ค์ ์์ ๋ ์ํํด์ผ ํ์ต๋๋ค.
ํฉ๋งจ -S mingw-w64-x86_64-libzip
cp /mingw64/lib/pkgconfig/libzip.pc /usr/lib/pkgconfig/
// ๋ณต์ฌ๋ libzip.pc์์ ์๋ชป๋ D:/msys64 ๊ฒฝ๋ก๊ฐ ํฌํจ๋ ํ ์ญ์
sed -i '/-LD:\/msys64/d' /usr/lib/pkgconfig/libzip.pc
์์ ๋ณต์ https://github.com/libimobiledevice/ideviceinstaller.git
CD ์์ด๋๋ฐ์ด์ค ์ธ์คํจ๋ฌ
// ์ผ๋ถ ๊ฒฝ๊ณ ๊ฐ ์์ผ๋ฏ๋ก ์ํ ๊ฒฝ๊ณ ๋ก์ ์ค์์น๋ฅผ ์ค๋ฅ๋ก ์ ๊ฑฐํฉ๋๋ค.
sed -i 's/ -Werror//g' configure.ac
./autogen.sh
๋ง๋ค๋ค
makeinstall
@anshumanchatterji , ์ผ๋จ ํ๋ก์ ํธ๋ฅผ ๋น๋ํ๋ฉด ์์ฒด ํ๋ก๊ทธ๋จ์ ๊ฐ๋ฐํ ๋ ์ด๋ป๊ฒ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ก ์ฌ์ฉํฉ๋๊น?
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์ด๊ฒ์ ํ์ด์ฌ ๋ฌธ์ ์์ด ์์ ๋ชจ๋ ๊ฒ์ ๋น๋ํ๊ธฐ ์ํด ์ค์นํด์ผ ํ๋ ๊ฒ๋ค์ ๋ชฉ๋ก์ ๋๋ค:
ํฉ๋งจ -S ์์
ํฉ๋งจ -S libedit
ํฉ๋งจ -S mingw-w64-i686-toolchain
pacman -S --ํ์ํ base-devel msys2-devel
ํฉ๋งจ -S mingw-w64-x86_64-python
ํฉ๋งจ -S msys/libcrypt-devel
ํฉ๋งจ -S openssl
ํฉ๋งจ -S libopenssl
ํฉ๋งจ -S openssl-devel
https://github.com/libimobiledevice/ideviceinstaller ๋ ๋น๋ํ๋ ค๋ฉด ๋ค์ ์์ ๋ ์ํํด์ผ ํ์ต๋๋ค.
ํฉ๋งจ -S mingw-w64-x86_64-libzip
cp /mingw64/lib/pkgconfig/libzip.pc /usr/lib/pkgconfig/
// ๋ณต์ฌ๋ libzip.pc์์ ์๋ชป๋ D:/msys64 ๊ฒฝ๋ก๊ฐ ํฌํจ๋ ํ ์ญ์
sed -i '/-LD:\/msys64/d' /usr/lib/pkgconfig/libzip.pc
์์ ๋ณต์ https://github.com/libimobiledevice/ideviceinstaller.git
CD ์์ด๋๋ฐ์ด์ค ์ธ์คํจ๋ฌ
// ์ผ๋ถ ๊ฒฝ๊ณ ๊ฐ ์์ผ๋ฏ๋ก ์ํ ๊ฒฝ๊ณ ๋ก์ ์ค์์น๋ฅผ ์ค๋ฅ๋ก ์ ๊ฑฐํฉ๋๋ค.
sed -i 's/ -Werror//g' configure.ac
./autogen.sh
๋ง๋ค๋ค
makeinstall