<div dir="ltr">MinGW is a better platform to use with NDK (of which you sort of only need make, the rest of the tools come from the android directory) <div>The problem is the tools you're using from the NDK are not cygwin based so they are confused.... so really I wouldn't think cygwin would even be a viable option; on the android NDK page <a href="https://developer.android.com/tools/sdk/ndk/index.html">https://developer.android.com/tools/sdk/ndk/index.html</a> there's only a few mentions of cygwin; and it's in the case of exceptions ... like on this use this other script, and use 1.7 not 1.5...</div>
<div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 11, 2014 at 6:25 AM, Eric Wing <span dir="ltr"><<a href="mailto:ewmailing@gmail.com" target="_blank">ewmailing@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am currently in this unholy trinity of needing to use Android on<br>
Windows through Cygwin.<br>
Basically, the Android NDK requires Cygwin if you want to run it on<br>
Windows. I'm using my fork of the Android-CMake toolchain originally<br>
from OpenCV and trying to generate "Unix Makefiles" with CMake. I<br>
provide a -C initial_cache list to try to pre-populate my dependency<br>
list since this is a cross-compile.<br>
<br>
This is really ugly stuff. I thought I was on the verge of finally<br>
getting it working, but I keep bouncing back and forth between file<br>
path problems:<br>
<br>
- Cygwin returns absolute paths like /cygdrive/c/Program Files (x86)<br>
- But CMake can't seem to resolve the /cygdrive/c part and when trying<br>
to access files in this form, it fails with 'file not found'<br>
<br>
If I change the representation to:<br>
C:\Program Files (x86), then a lot of CMake functions seem to get<br>
confused by the backslashes because they are escape sequences in<br>
strings.<br>
<br>
I figured out I can use forward slashes,<br>
C:/Program Files (x86)<br>
which helps the problem a little bit.<br>
<br>
But sometimes when I change strings to make CMake happy, then if it<br>
gets passed back to Cygwin to invoke some process, Cygwin dies.<br>
<br>
I've been slowly going case by case to use one or the other. I finally<br>
got my Makefiles generated. But now I gave the problem that the<br>
Makefiles contain the C:\ form to get past CMake's problems. But when<br>
I invoke make, Cygwin chokes with<br>
*** target pattern contains no `%'<br>
I think this is because of the colon characters in the make file from<br>
the drive letters.<br>
<br>
<br>
Also, I think there is a bug. CMake thinks strings like C:/Program<br>
Files (x86) are relative paths, not absolute. Calling file(string ...)<br>
keeps turning the path I pass into a relative path and prepends a full<br>
relative path which makes the string turn into complete nonsense (I<br>
get to drive letter markers in the string).<br>
<br>
<br>
Anyway, am I overlooking something? I know Cygwin is supposed to work.<br>
How am I supposed to deal with the /cygdrive/c vs C:\ and colon issue?<br>
<br>
Thanks,<br>
Eric<br>
--<br>
Beginning iPhone Games Development<br>
<a href="http://playcontrol.net/iphonegamebook/" target="_blank">http://playcontrol.net/iphonegamebook/</a><br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>