Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 84896 invoked from network); 29 Jun 2006 21:54:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Jun 2006 21:54:41 -0000 Received: (qmail 29931 invoked by uid 500); 29 Jun 2006 21:54:27 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 29846 invoked by uid 500); 29 Jun 2006 21:54:26 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 29610 invoked by uid 99); 29 Jun 2006 21:54:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jun 2006 14:54:25 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [206.190.58.153] (HELO web55104.mail.re4.yahoo.com) (206.190.58.153) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 29 Jun 2006 14:54:25 -0700 Received: (qmail 65252 invoked by uid 60001); 29 Jun 2006 21:54:00 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=UG4HtsF9SpchvbWxca+/PXWvgcsifd0ps912tuoKHJ/KTPxbd92CAM3v8XInVt/tRAhWkFVpo2kX/QEeIgrC8YrdI7hmVREpSNB0p30lOY2RcCvpI7/8oT1XtTcavy046DQC8YmoVen6J/KMfx2qP9hi8Mvlh2ep06uPkH33LdQ= ; Message-ID: <20060629215400.65250.qmail@web55104.mail.re4.yahoo.com> Received: from [66.10.233.130] by web55104.mail.re4.yahoo.com via HTTP; Thu, 29 Jun 2006 14:54:00 PDT Date: Thu, 29 Jun 2006 14:54:00 -0700 (PDT) From: Matt Benson Subject: Re: [classlib] Can't build native on winXP To: harmony-dev@incubator.apache.org In-Reply-To: <200606300140.56807.gshimansky@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --- Gregory Shimansky wrote: > On Friday 30 June 2006 01:27 Matt Benson wrote: > > Definitely used to that. I couldn't get your > > cygwin.bat recipe to work, but just your having > said > > that had already gotten me thinking. I finally > got my > > cygwin env. set up and can build there now. > Thanks > > for the push. > > There is no secret. It is very simple and you can > add other bat files for > environment tweaks like to make includes from > Platform SDK to go first before > includes from Visual Studio to avoid new "secure" > calls: For some reason, I had to call vcvars32.bat or the compiler wasn't on my path. Perhaps you keep VC\bin in your path anyway. I went ahead and created a harmony.bat file so I didn't have to clutter my normal cygwin batch file. I also had to do some playing with my paths in cygwin (I normally set them in .bash_profile) so that the regular cygwin paths would have lower priority than the MS paths; in particular cygwin link was getting found instead of the MS version. Then I went ahead and set up the other stuff I needed as well. I ended up with (ignore any weird line breaks): @echo off CD /D C:\cygwin SET PATH=%CD%\bin;%CD%\usr\bin;%CD%\usr\local\bin;C:\apache-ant-1.6.5\bin;C:\nasm-0.98.39;%PATH% CALL "C:\Program Files\Microsoft Visual Studio 8\VC\bin\vcvars32.bat" SET INETSDK=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2 rem I don't know that debug is necessary, but it doesn't hurt: CALL "%INETSDK%\SetEnv.Cmd" /XP32 /DEBUG SET INCLUDE=%INETSDK%\Include\crt;%INCLUDE% SET ANT_OPTS=-Dbuild.compiler=org.eclipse.jdt.core.JDTCompilerAdapter -Dant.regexp.regexpimpl=org.apache.tools.ant.util.regexp.JakartaOroRegexp SET ANT_ARGS=-logger org.apache.tools.ant.NoBannerLogger -lib %CD%/depends/jars/ecj_3.2MAINT/ecj_3.2MAINT.jar SET JAVA_HOME=%ProgramFiles%/Java/jdk1.5.0_05 CD /D C:\harmony CLS C:\cygwin\bin\bash --login -i -Matt > > c:\cygwin\cygwin.bat > ------------------------------------ > @echo off > > rem call "C:\Program Files\Microsoft Visual Studio > 8\VC\vcvarsall.bat" x86 > call "c:\Program Files\Microsoft Platform SDK for > Windows Server 2003 > R2\SetEnv.Cmd" /XP32 > > C: > chdir C:\cygwin\bin > > bash --login -i > ------------------------------------ > > -- > Gregory Shimansky, Intel Middleware Products > Division > > --------------------------------------------------------------------- > Terms of use : > http://incubator.apache.org/harmony/mailing.html > To unsubscribe, e-mail: > harmony-dev-unsubscribe@incubator.apache.org > For additional commands, e-mail: > harmony-dev-help@incubator.apache.org > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org