-
Notifications
You must be signed in to change notification settings - Fork 57
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 compile with Cygwin64 #98
Comments
Do you want native Windows executable? |
Native Windows? NO (for this the stock ADB.EXE from Google exists). |
I have compiled this project with mingw toolchain, cygwin is not required. |
OK. Please, share the binaries. I'll test them. |
I can not provide it right now, |
OK, I'll wait until you provide them. Perhaps if you want then could share as release in your android-tools fork. Thank you bro! |
@Biswa96 is there any chance you could provide the patches and build instructions required for the mingw/windows port? |
Hi @Biswa96 , Any way, I feel it will be interesting to complete the compilation using the external go compiler. This will help to compile the full package (in fact only the boringssl package that is the only module that requires a go compiler) for other platforms that perhaps will not have accessible this compiler and can be compiled cross-compiling. You agree? |
I did not understand what you are asking. msys2/mingw repository provides all the dependencies and tools we need for adb and fastboot. |
Hi @Biswa96 , I'm testing the binaries. After getting all correct .DLLs (from different Thank you. |
The Windows port of android-tools package is now available in msys2 pacman repository. See https://packages.msys2.org/base/mingw-w64-android-tools Some patches are added on top of this repository for the Windows port. Those patches can be added here. One of main blocker is the https://android.googlesource.com/platform/development.git repository. Only a fraction of that repository is used for Windows port. Should it be added as git submodule or as any other means? Here is that repo size.
|
Hi @Biswa96 , A step-by-step how to description of how to compile the package with msys2 will be desirable. I want to fully compile "android-tools" from scratch for Windows MSYS2 target. And I've no idea. What I need is to modify something in the source code of the adb tool. Please could do you help? Thank you. |
That discussion would be huge and off-topic here. You have to be familiar with pacman packages and read most of the pages in https://wiki.archlinux.org/ and https://www.msys2.org/ |
Hi @Biswa96 , The information that I'm searching it's already writed by you: msys2/MINGW-packages#17531 Thanl you! 👍 |
Hi, To anyone that need this information, here a simple how to compile android-tools for Windows:
Note: These binaries are not statically linked. Therefore they can only run inside the MSYS2 environment. I hope this helps. |
Hi,
I want to compile this project using Cygwin64. The reason is to obtain binaries based on Linux sources in Windows. I know that the Windows versions are included in the package. But the code is different, so I really need to have a Windows binary linked to cygwin1.dll
So, I've found some troubles, compiling it and I request your help:
cmake -DGO_EXECUTABLE=/mnt/e/Go/bin/go.exe ..
cmake -DGO_EXECUTABLE=/cygdrive/E/Go/bin/go.exe ..
go: RLock \\wsl$\Ubuntu\home\dani\dev\android-tools\android-tools-33.0.3p1\vendor\boringssl\go.mod: Incorrect function.
So I suspect that when the compiling will arrive to this point in the Cygwin64 environment the same error will appears. Any idea to fix this problem? Or almost how to compile with an external go compiler (missing in Cygwin64). Or how to overcome the compilation of the boringssl that is the only part that requires the Go compiler?
Any idea to fix this?
I hope you want to help me to compile this package with Cygwin.
Thank you.
The text was updated successfully, but these errors were encountered: