Re: Classpath on Cygwin: HOWTO

2006-03-03 Thread Tom Tromey
> "Enrico" == Enrico Migliore <[EMAIL PROTECTED]> writes:

Enrico> good to know, thanks! I'll try that and then update this HOWTO

I'm curious as to whether the instructions for building Classpath
with Eclipse work on a Windows machine with Cygwin...

Tom



Re: Classpath on Cygwin: HOWTO

2006-03-03 Thread Enrico Migliore



7. Build jikes-1.22
---

 $ ./configure
 $ make
 $ make install
 $ make clean


   




you can save yourself steps 4-7, since jikes 1.22 is now part of cygwin.

cheers,
dalibor topic

 


Hi Dalibor,

good to know, thanks! I'll try that and then update this HOWTO

ciao,
Enrico



Re: Classpath on Cygwin: HOWTO

2006-03-03 Thread Dalibor Topic
On Thu, Mar 02, 2006 at 04:11:10PM +0100, Enrico Migliore wrote:
> Hi Mark and Dalibor,
> 
> I've finally finished this detailed document, that explains how to 
> build Classpath 0.20 on Cygwin.
> The following steps were tested on Windows XP Home and Win2000 
> Professional.
> 
> Enrico
> 
> 
> 1. Download the latest version of the Cygwin installer
> --
>  
>   http://www.cygwin.com/setup.exe
> 
> 
> 2. Run the installer: setup.exe
> -
> 
>   Choose "Install from Internet" and follow the instructions until
>   the installer prompts a Windows named:
> 
>   "Cygwin Setup - Select Packages"
> 
>   The installer has already selected the base packages to download,
>   now you need to add some more packages.
> 
> 
> 3. Add the following packages to the download list
> ---
> 
>   Archive/zip
> 
>   Devel/gcc-g++
>   Devel/make
>   Devel/automake 1.9
>   Devel/autoconfig 2.1
>   Devel/libtool 1.5
>   Devel/pkgconfig
>   Devel/atk 1.5   (all files)
>   Devel/pango (all files)
> 
>   Graphics/gtk2-x11   (all files)
> 
>   X11/gtk+(all files)
>   X11/gtk-engines
>   X11/xorg-x11(all files)
> 
> 
>   Note that some packages may have been already selected by the installer.
> 
> 
> 4. Download jikes-1.22
> 
> 
>   http://prdownloads.sourceforge.net/jikes/jikes-1.22.tar.bz2?download
> 
> 
> 5. Unzip jikes-1.22.tar.bz2 with one of the following utilities
> 
> 
>   winrar   (Windows utility)
> 
>   tar  (Cygwin utility:  $tar -xjf jikes-1.22.tar.bz2)
> 
> 
> 6. Apply the following patch to the file .src/platform.cpp
> 
> 
>   
> http://sourceforge.net/tracker/index.php?func=detail&aid=1202863&group_id=128803&atid=712760
> 
>   The patch is reported here:
> 
>   Index: src/platform.cpp
>   ==
>   RCS file: /cvsroot/jikes/jikes/src/platform.cpp,v
>   retrieving revision 1.47
>   diff -u -r1.47 platform.cpp
>   --- src/platform.cpp 23 Mar 2004 14:03:56 -
>   1.47
>   +++ src/platform.cpp 16 May 2005 14:28:13 -
>   @@ -201,15 +201,6 @@
>   int SystemStat(const char* name, struct stat* stat_struct)
>   {
>   int result = ::stat(name, stat_struct);
>   -#ifdef HAVE_SYS_CYGWIN_H
>   - //
>   - // Up through cygwin 1.3.10, the hash function which determines 
> inodes
>   - // was not strong enough, so java/net and java/nio occasionally 
> get the
>   - // same inode without this hack.
>   - //
>   - if (result == 0)
>   - stat_struct -> st_ino += name[strlen(name) - 1];
>   -#endif // HAVE_SYS_CYGWIN_H
>   return result;
>   }
> 
> 
> 7. Build jikes-1.22
> ---
> 
>   $ ./configure
>   $ make
>   $ make install
>   $ make clean
> 
> 


you can save yourself steps 4-7, since jikes 1.22 is now part of cygwin.

cheers,
dalibor topic


> 8. Download Classpath-0.20
> -
> 
>   http://www.gnu.org/software/classpath/
> 
> 
> 9. Unzip classpath-0.20.tar.gz with one of the following utilities
> ---
> 
>   winrar   (Windows utility)
> 
>   tar  (Cygwin utility)
> 
> 
> 10. Build Classpth-0.20
> 
> 
>   $ ./configure --with-jikes --enable-gtk-peer
>   $ make
>   $ make install
>   $ make clean
> 
> 
>   The install process will print quite a few Java and C warnings.
> 
>   Note also that, since jni is enabled by default, ---enable-jni is not 
> needed.
> 
> 
> 11. The building process will install the Classpath library here
> -
>  
>   /usr/local/classpath/share/classpath/glibj.zip
> 
> 
> 
> - The End 
> 
> The time required to do everything is about 30 minutes on a 1 GHz PC.
> 
> If you are a developer, you might want to install the following packages,
> which, by the way, are not required to build Classpath:
> 
>   Devel/gdb   (all files)
>   Devel/ddd   (all files)
>   Devel/subversion(all files)
> 
> gdb is the GNU command line debugger, ddd is the GUI front-end of gdb,
> and subversion is a utility to check-out and check-in the source code
> of a versioned project.



Re: Classpath on Cygwin: HOWTO

2006-03-02 Thread Archie Cobbs

Enrico Migliore wrote:
I'm using Classpath with Archie Cobbs' JCHEVM virtual machine, and I'm 
writing another document that explains how to build JCHEVM on Cygwin.

If you think it might be of interest, I'll post this second document too.


The latter document (building JCHEVM on Cygwin) is better placed on the
Apache Harmony web site. But it should definitely contain a pointer to
the Classpath wiki entry describing how to build Classpath on Cygwin.

-Archie

__
Archie Cobbs  *CTO, Awarix*  http://www.awarix.com



Re: Classpath on Cygwin: HOWTO

2006-03-02 Thread Enrico Migliore

S. Meslin-Weber wrote:


On Thu, Mar 02, 2006 at 04:40:47PM +0100, Enrico Migliore wrote:
 

I've finally finished this detailed document, that explains how to  
build Classpath 0.20 on Cygwin.
The following steps were tested on Windows XP Home and Win2000  
Professional.
   


Could we add this to the mediation Wiki?
 



How about updating the existing one I wrote for 0.16? I've let it slide
for a good long while as I don't use Cygwin for classpath anymore.

http://developer.classpath.org/mediation/ClasspathOnCygwin

Cheers,

Steph

 


Hi Steph,

I read the document you are referring to:

I'm using Classpath with Archie Cobbs' JCHEVM virtual machine, and I'm 
writing another document that explains how to build JCHEVM on Cygwin.

If you think it might be of interest, I'll post this second document too.

ciao,
Enrico




Re: Classpath on Cygwin: HOWTO

2006-03-02 Thread S. Meslin-Weber
On Thu, Mar 02, 2006 at 04:40:47PM +0100, Enrico Migliore wrote:
> >>I've finally finished this detailed document, that explains how to  
> >>build Classpath 0.20 on Cygwin.
> >>The following steps were tested on Windows XP Home and Win2000  
> >>Professional.
> >
> >
> >Could we add this to the mediation Wiki?

How about updating the existing one I wrote for 0.16? I've let it slide
for a good long while as I don't use Cygwin for classpath anymore.

http://developer.classpath.org/mediation/ClasspathOnCygwin

Cheers,

Steph

-- 

Stephane Meslin-Weber Email: [EMAIL PROTECTED]
Senior Software Engineer  Web: http://odonata.tangency.co.uk



signature.asc
Description: Digital signature


Re: Classpath on Cygwin: HOWTO

2006-03-02 Thread Enrico Migliore

Chris Burdess wrote:


Enrico Migliore wrote:

I've finally finished this detailed document, that explains how to  
build Classpath 0.20 on Cygwin.
The following steps were tested on Windows XP Home and Win2000  
Professional.



Could we add this to the mediation Wiki?


Hi Chris,

sure :-)

Enrico




Re: Classpath on Cygwin: HOWTO

2006-03-02 Thread Chris Burdess

Enrico Migliore wrote:
I've finally finished this detailed document, that explains how to  
build Classpath 0.20 on Cygwin.
The following steps were tested on Windows XP Home and Win2000  
Professional.


Could we add this to the mediation Wiki?
--
犬 Chris Burdess
  "They that can give up essential liberty to obtain a little safety
  deserve neither liberty nor safety." - Benjamin Franklin






PGP.sig
Description: This is a digitally signed message part