The problem is that the Cygwin gcc doesn't support the -mno-cygwin flag anymore. Try downgrading gcc to an earlier version instead, this should fix it.
On Wed, Mar 24, 2010 at 11:48 AM, MBethDev <mbeth...@gmail.com> wrote: > Hi Jett, thanks for replying. Tried following your suggestion but ran > into issues. Are you able to build successfully? Anyway, here's the > errors I get: > > 1) After running make_windows_sdk.sh, I get what looks like an error > from find-jdk-tools-jar.sh: > > build/core/find-jdk-tools-jar.sh: line 5: [: /c/Program: binary > operator expected > > The problem being my javac is installed in "Program Files" and cygwin > wasn't able to parse the whitespace properly. Yet the build > continued. I'm not sure if this is critical though, but I let the > build continue anyway > > 2) After some time I get the following build error: > > gcc: gcc: gcc: gcc: The -mno-cygwin flag has been removed; use a mingw- > targeted cross-compiler. > The -mno-cygwin flag has been removed; use a mingw-targeted cross- > compiler. > The -mno-cygwin flag has been removed; use a mingw-targeted cross- > compiler.The -mno-cygwin flag > has been removed; use a mingw-targeted cross-compiler. > > make: *** [out/host/windows-x86/obj/EXECUTABLES/emulator_intermediates/ > distrib/zlib-1.2.3/adler > 32.o] Error 1 > make: *** Waiting for unfinished jobs.... > make: *** [out/host/windows-x86/obj/EXECUTABLES/emulator_intermediates/ > distrib/zlib-1.2.3/defla > te.o] Error 1 > make: *** [out/host/windows-x86/obj/EXECUTABLES/emulator_intermediates/ > distrib/zlib-1.2.3/crc32 > .o] Error 1 > make: *** [out/host/windows-x86/obj/EXECUTABLES/emulator_intermediates/ > distrib/zlib-1.2.3/compr > ess.o] Error 1 > Error: Build failed > Aborting > > How do I set the -mno-cygwin flag (what I mean is, where in the > android build scripts and how to set it there?) > > I also checked out the development/tools/eclipse/README_WINDOWS.txt > and it says to set the Default Text File to DOS/text. How do I set > this? > > On Mar 17, 7:33 pm, Jett <jett...@gmail.com> wrote: > > Hi MBethDev, > > > > The sdk should build under windows system. > > You should build sdk under Ubuntu first(which you already did) and > > copy all files into Cygwin(in Windows) system. > > Then use /development/build/tools/make_windows_sdk.sh to accomplish > > it. > > > > On 3月16日, 上午10時34分, MBethDev <mbeth...@gmail.com> wrote: > > > > > > > > > Hello, > > > > > I'm not sure if this is the right forum to ask, but I'll ask anyway in > > > case someone knowledgeable might know this: > > > > > I recently added some functionality in the android framework code > > > (more specifically I *added* a new class that encapsulates this > > > functionality that I'm trying to write, and I'm using android-1.6), > > > built it on Ubuntu, and was able to run an application that uses that > > > functionality on the Ubuntu emulator. However, when I tried to import > > > the framework images as well as the android.jar file over to my > > > windows environment (where I code most of the time), the compilation > > > failed (I'm using Eclipse on Windows to build my application). I'm > > > getting the following errors: > > > > > [2010-03-15 19:13:54 - MyApp]C:\MyApp\res\values\styles.xml:6: ERROR > > > Error retrieving parent for item: No resource found that matches the > > > given name 'android:style/Theme.Translucent'. > > > [2010-03-15 19:13:54 - MyApp]C:\MyApp\res\values\styles.xml:9: ERROR > > > Error: No resource found that matches the given name: attr > > > 'android:colorForeground'. > > > [2010-03-15 19:13:54 - MyApp]C:\MyApp\res\values\styles.xml:10: ERROR > > > Error: No resource found that matches the given name: attr > > > 'android:windowAnimationStyle'. > > > [2010-03-15 19:13:54 - MyApp]C:\MyApp\res\values\styles.xml:7: ERROR > > > Error: No resource found that matches the given name: attr > > > 'android:windowBackground'. > > > [2010-03-15 19:13:54 - MyApp]C:\MyApp\res\values\styles.xml:8: ERROR > > > Error: No resource found that matches the given name: attr > > > 'android:windowNoTitle'. > > > > > I basically copied the three *.img files to the platform img folder on > > > Windows, copied the android.jar file as well as the platform/ > > > android-1.6/data directory that was created when I ran "make sdk" on > > > Ubuntu, and still get these errors. Am I missing something here? If > > > anyone can help me I will truly appreciate it. > > > > > MBeth- Hide quoted text - > > > > - Show quoted text - > > -- > unsubscribe: > android-porting+unsubscr...@googlegroups.com<android-porting%2bunsubscr...@googlegroups.com> > website: http://groups.google.com/group/android-porting > > To unsubscribe from this group, send email to android-porting+ > unsubscribegooglegroups.com or reply to this email with the words "REMOVE > ME" as the subject. > -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting To unsubscribe, reply using "remove me" as the subject.