note that checkout specific branch will make you downloading fast.
I used below command
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.2.2_r1
$ repo -j10 sync
download complete, u should compiler the adb for Linux first
make -j4 acp adb showcommands
finish building Linux adb and then u can build for windows.
make -j4 USE_MINGW=y adb
Install: out/host/windows-x86/bin/AdbWinUsbApi.dll
cp -fp out/host/windows-x86/obj/EXECUTABLES/AdbWinUsbApi_intermediates/AdbWinUsbApi.dll out/host/windows-x86/bin/AdbWinUsbApi.dll
host Prebuilt: AdbWinApi (out/host/windows-x86/obj/EXECUTABLES/AdbWinApi_intermediates/AdbWinApi.dll)
out/host/linux-x86/bin/acp -fp development/host/windows/prebuilt/usb/AdbWinApi.dll out/host/windows-x86/obj/EXECUTABLES/AdbWinApi_intermediates/AdbWinApi.dll
Install: out/host/windows-x86/bin/AdbWinApi.dll
cp -fp out/host/windows-x86/obj/EXECUTABLES/AdbWinApi_intermediates/AdbWinApi.dll out/host/windows-x86/bin/AdbWinApi.dll
Install: out/host/windows-x86/bin/adb.exe
cp -fp out/host/windows-x86/obj/EXECUTABLES/adb_intermediates/adb.exe out/host/windows-x86/bin/adb.exe
Yes!! complete!
沒有留言:
張貼留言