Hi MB,

Thanks for response.  Alas, my progress was shortlived.  I couldn't
find an answer for the 'layoutlib already defined' issue, so I tried
rebuilding an SDK for a Cupcake PDK I have since my issue was just to
rebuild "aapt.exe" to handle a resources.asrc file greater than 2M.

Cupcake build died trying to rebuild emulator, so I removed that and
other targets and just left 'aapt' in my 'make_windows_sdk.mk'.
Building that got me back to the '-mno-cygwin' failure.  After
investigating that more, it turns out newer cygwin uses gcc-4 compiler
which eliminated that option.  That option creates object files that
don't require cygwin DLLs.  My cygwin also had gcc-3 executables, so I
changed 'gcc' and 'g++' symbolic links to point to the '3' versions
and it built my aapt executable successfully, but the 'aapt.exe'
wouldn't run because it still required cygwin DLLs.  I assumed there
was something I missed and I found an 2005 edition of cygwin on my
laptop that used version 3 by default.  Same result there.  It still
required cygwin DLLs.  So, I now have an exe that requires cygwin/bin
to be in my path to run, which is okay for me.

I am convinced that Google does not follow the instructions they give
to build the Windows SDK.  I did see one post somewhere that mentioned
they were moving away from cygwin and were going to directly use the
mingw compiler to generate Win SDK.

mark

On Apr 7, 4:55 pm, MBethDev <[email protected]> wrote:
> Hi Mark,
>
> I basically abandoned this approach and went with a different approach
> with using a shared library sdk addon.  Seems to work but I'm running
> into other issues now that is now sorta unrelated with my originalquestion.  
> Once I'll find the time, I'll reexplorebuildingthewindowsemulatorfrom the 
> sdk. Good luck and sorry if I couldn't
> answer yourquestion.
>
> MB
>
> On Apr 7, 12:16 pm, mark <[email protected]> wrote:
>
> > Hi MBethDev,
>
> > Have you gotten any further with this?
>
> > I had your exact issue and found my JDK wasn't in my environment
> > 'path' variable.  When I added it, it found javac and the -mno-cygwin
> > error magically disappeared.  I think there is a Win option to disable
> > old DOS name formatting (8.3), so that could also be why cygwin didn't
> > find your javac.  Not sure about the README file you saw.  The cygwin
> > instructions to make Win SDK says:
> >   "When installing Cygwin, set Default Text File Type to Unix/binary,
> > not DOS/text."
>
> > I now get a different error and I haven't found an answer to it yet.
> > My new error has been seen elsewhere at link below (with no answer):
>
> >http://groups.google.com/group/android-platform/browse_thread/thread/...
>
> >Building...
> > including vendor/aosp/vendorsetup.sh
> > ============================================
> > PLATFORM_VERSION_CODENAME=Eclair
> > PLATFORM_VERSION=Eclair
> > TARGET_PRODUCT=generic
> > TARGET_BUILD_VARIANT=eng
> > TARGET_SIMULATOR=
> > TARGET_BUILD_TYPE=release
> > TARGET_ARCH=arm
> > HOST_ARCH=x86
> > HOST_OS=windows
> > HOST_BUILD_TYPE=release
> > BUILD_ID=ECLAIR
> > ============================================
> > build/core/find-jdk-tools-jar.sh: line 9: [: /cygdrive/c/Program:
> > binary operator expected
> > build/core/main.mk:378: sdk-only: javac available.
> > /bin/bash: line 0: cd: development/tools/layoutopt/app/src/resources:
> > No such file or directory
> > build/core/base_rules.mk:117: *** frameworks/base/tools/layoutlib:
> > MODULE.HOST.JAVA_LIBRARIES.temp_layoutlib already defined by fr
> > ameworks/base/tools/layoutlib.  Stop.
> > Error: Build failed
> > Aborting
>
> > thanks
> > mark
>
> > On Mar 24, 2:48 pm, MBethDev <[email protected]> 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 <[email protected]> wrote:
>
> > > > Hi MBethDev,
>
> > > > The sdk should build underwindowssystem.
> > > > You should build sdk under Ubuntu first(which you already did) and
> > > > copy all files into Cygwin(inWindows) system.
> > > > Then use /development/build/tools/make_windows_sdk.sh to accomplish
> > > > it.
>
> > > > On 3月16日, 上午10時34分, MBethDev <[email protected]> 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 androidframeworkcode
> > > > > (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 Ubuntuemulator.  However, when I tried to import
> > > > > theframeworkimages as well as the android.jar file over to my
> > > > >windowsenvironment (where Icodemost of the time), the compilation
> > > > > failed (I'm using Eclipse onWindowsto 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: [email protected]
website: http://groups.google.com/group/android-porting

To unsubscribe, reply using "remove me" as the subject.

Reply via email to