You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Johnny Kewl <jo...@kewlstuff.co.za> on 2008/03/01 22:04:25 UTC
Harmony Dev Environment On XP?
.... this is what I did...
-- svn co http://svn.apache.org/repos/asf/harmony/enhanced/trunk
-- ant -Dauto.fetch=true
-- ant populate-src
Then to make it a little easier
I installed Visual Studio 2005 and MASM
Then I run this script
@echo off
if not exist "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
goto missing
echo call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
@set PATH=C:\Program Files\Microsoft Visual Studio 8\VC\bin;%PATH%
@set INCLUDE=C:\Program Files\Microsoft Visual Studio
8\VC\Include;%INCLUDE%
@set LIB=C:\Program Files\Microsoft Visual Studio 8\VC\Lib;%LIB%
call ".\eclipse.exe"
goto :eof
:missing
echo Missing file
echo "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
goto :eof
Then I Load E:\Harmony\working_classlib\build.xml in eclipse... can see all
the tasks and run them
-- ant fetch-depends
At this stage Xerces gives trouble.... the file size that comes in is 4
megs, the one on the site is 6 megs... ? so MD5 file fails unless done
manually
-- build
Then is complains about cant compile something in /concurrent... so I
downloaded the "Windows Src" pack on the site found the missing folder
and the Java compiles...
When it tries to compile the native stuff it complains about a double
declaration of _Win_NT_Ver in the a threading module... I change the Window
header file that was
getting upset to NT4... forget the module off hand
Then it gets passed that compiles a few files and gets stuck here
hyerrorhelpers.c(122) : warning C4013: 'sprintf' undefined; assuming extern
returning int
I started fiddling with code... adding window header files to Harmony code
but that really makes in mad ;)
Then I took the whole of the Windows download and copied it over the SVN
download... in the hope headers would fix...
Now its is really screwed... wont even get through the Java compile...
I get an error I have no idea what it means
BUILD FAILED
E:\Harmony\working_classlib\build.xml:113: The following error occurred
while executing this line:
E:\Harmony\working_classlib\make\build-java.xml:120:
java.lang.reflect.InvocationTargetException
I think the only place to start is to setup an environment that works on
XP... the way I'm trying seems not to work...
Maybe there is a way to tell eclipse to use another compiler dont know,
build script is looking for nmake and thats the only way I could
figure out to give it one... ?
... me stuck ;)
Re: Harmony Dev Environment On XP?
Posted by Johnny Kewl <jo...@kewlstuff.co.za>.
----- Original Message -----
From: "Nathan Beyer" <nb...@gmail.com>
To: <de...@harmony.apache.org>
Sent: Sunday, March 02, 2008 2:36 AM
Subject: Re: Harmony Dev Environment On XP?
> VisualStudio 2003 is the suggested windows build, so that may give you
> trouble. Others may have had more luck, but I've only ever built with
> VS2003.
Thanks Nathan... I'll give it a go, hope 2003 is still available... very
glad to hear it can be done.
> As for the Ant scripts, I've never run them in Eclipse, so I don't
> know how well that works or doesn't work. Try running the federated
> build from the top-level.
>
> * co trunk
> * ant build -Dauto.fetch=true
>
Re: Harmony Dev Environment On XP?
Posted by Nathan Beyer <nb...@gmail.com>.
VisualStudio 2003 is the suggested windows build, so that may give you
trouble. Others may have had more luck, but I've only ever built with
VS2003.
As for the Ant scripts, I've never run them in Eclipse, so I don't
know how well that works or doesn't work. Try running the federated
build from the top-level.
* co trunk
* ant build -Dauto.fetch=true
On Sat, Mar 1, 2008 at 3:04 PM, Johnny Kewl <jo...@kewlstuff.co.za> wrote:
> .... this is what I did...
>
>
> -- svn co http://svn.apache.org/repos/asf/harmony/enhanced/trunk
> -- ant -Dauto.fetch=true
> -- ant populate-src
>
> Then to make it a little easier
>
> I installed Visual Studio 2005 and MASM
> Then I run this script
> @echo off
>
> if not exist "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
> goto missing
> echo call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
> call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
>
> @set PATH=C:\Program Files\Microsoft Visual Studio 8\VC\bin;%PATH%
> @set INCLUDE=C:\Program Files\Microsoft Visual Studio
> 8\VC\Include;%INCLUDE%
> @set LIB=C:\Program Files\Microsoft Visual Studio 8\VC\Lib;%LIB%
>
> call ".\eclipse.exe"
>
> goto :eof
>
> :missing
> echo Missing file
> echo "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
> goto :eof
>
> Then I Load E:\Harmony\working_classlib\build.xml in eclipse... can see all
> the tasks and run them
>
> -- ant fetch-depends
>
> At this stage Xerces gives trouble.... the file size that comes in is 4
> megs, the one on the site is 6 megs... ? so MD5 file fails unless done
> manually
>
> -- build
>
> Then is complains about cant compile something in /concurrent... so I
> downloaded the "Windows Src" pack on the site found the missing folder
> and the Java compiles...
>
> When it tries to compile the native stuff it complains about a double
> declaration of _Win_NT_Ver in the a threading module... I change the Window
> header file that was
> getting upset to NT4... forget the module off hand
>
> Then it gets passed that compiles a few files and gets stuck here
> hyerrorhelpers.c(122) : warning C4013: 'sprintf' undefined; assuming extern
> returning int
> I started fiddling with code... adding window header files to Harmony code
> but that really makes in mad ;)
>
> Then I took the whole of the Windows download and copied it over the SVN
> download... in the hope headers would fix...
> Now its is really screwed... wont even get through the Java compile...
> I get an error I have no idea what it means
> BUILD FAILED
> E:\Harmony\working_classlib\build.xml:113: The following error occurred
> while executing this line:
> E:\Harmony\working_classlib\make\build-java.xml:120:
> java.lang.reflect.InvocationTargetException
>
> I think the only place to start is to setup an environment that works on
> XP... the way I'm trying seems not to work...
> Maybe there is a way to tell eclipse to use another compiler dont know,
> build script is looking for nmake and thats the only way I could
> figure out to give it one... ?
>
> ... me stuck ;)
>
>
Re: Harmony Dev Environment On XP?
Posted by Stepan Mishura <st...@gmail.com>.
On 3/2/08, Johnny Kewl <jo...@kewlstuff.co.za> wrote:
> .... this is what I did...
>
>
> -- svn co http://svn.apache.org/repos/asf/harmony/enhanced/trunk
> -- ant -Dauto.fetch=true
> -- ant populate-src
>
> Then to make it a little easier
>
> I installed Visual Studio 2005 and MASM
> Then I run this script
> @echo off
>
> if not exist "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
> goto missing
> echo call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
> call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
>
> @set PATH=C:\Program Files\Microsoft Visual Studio 8\VC\bin;%PATH%
> @set INCLUDE=C:\Program Files\Microsoft Visual Studio
> 8\VC\Include;%INCLUDE%
> @set LIB=C:\Program Files\Microsoft Visual Studio 8\VC\Lib;%LIB%
>
> call ".\eclipse.exe"
>
> goto :eof
>
> :missing
> echo Missing file
> echo "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
> goto :eof
>
> Then I Load E:\Harmony\working_classlib\build.xml in eclipse... can see all
> the tasks and run them
>
> -- ant fetch-depends
>
> At this stage Xerces gives trouble.... the file size that comes in is 4
> megs, the one on the site is 6 megs... ? so MD5 file fails unless done
> manually
>
> -- build
>
> Then is complains about cant compile something in /concurrent... so I
> downloaded the "Windows Src" pack on the site found the missing folder
> and the Java compiles...
>
> When it tries to compile the native stuff it complains about a double
> declaration of _Win_NT_Ver in the a threading module... I change the Window
> header file that was
> getting upset to NT4... forget the module off hand
>
> Then it gets passed that compiles a few files and gets stuck here
> hyerrorhelpers.c(122) : warning C4013: 'sprintf' undefined; assuming extern
> returning int
> I started fiddling with code... adding window header files to Harmony code
> but that really makes in mad ;)
>
> Then I took the whole of the Windows download and copied it over the SVN
> download... in the hope headers would fix...
> Now its is really screwed... wont even get through the Java compile...
> I get an error I have no idea what it means
> BUILD FAILED
> E:\Harmony\working_classlib\build.xml:113: The following error occurred
> while executing this line:
> E:\Harmony\working_classlib\make\build-java.xml:120:
> java.lang.reflect.InvocationTargetException
>
See:
http://mail-archives.apache.org/mod_mbox/harmony-dev/200709.mbox/%3c46F3A68E.8020909@gmail.com%3e
http://harmony.apache.org/faq.html
-Stepan
> I think the only place to start is to setup an environment that works on
> XP... the way I'm trying seems not to work...
> Maybe there is a way to tell eclipse to use another compiler dont know,
> build script is looking for nmake and thats the only way I could
> figure out to give it one... ?
>
> ... me stuck ;)
>
>