Re: Is there a Windows version of SableVM?
"Grzegorz B. Prokopski" <[email protected]>
| Newsgroups | gmane.comp.java.vm.sablevm.general,gmane.comp.java.vm.sablevm.devel |
|---|---|
| Message-ID | <1094586839.7627.160.camel@glue> |
On Tue, 2004-09-07 at 12:57, Andy Madigan wrote: > plz help, checked out of subversion, but I still don't know how to get > libffi, how do I build the dll? Where are the headers in sid? We should probably move the thread to sablevm-devel as it's getting more development-related. Below you have the best list of steps I could create that should help you getting SableVM working with Cygwin. 1. You need to install shared libraries (cyg*.dll files) for all needed libraries (like popt). For the libraries which have no cyg*.dlls in Cygwin distribution - you need to compile them. Last time we did that the only such lib was libffi. 2. To compile libffi you need to get source for gcc, which includes "libffi" directory. I recall that if you fetch rather recent source (like gcc-3.4) you should be able to configure && make && make install it without any hacks (just remember to pass --enable-shared to configure). For older versions you'll find the instructions at http://sablevm.org/wiki/LibFFI (On this web page there are also some informations how to deal with libraries installed in non-standard directories) 3. Compile SableVM passing '--enable-debugging-features' and '--disable-errors-on-warnings' to configure. Remember to set environmental variables to point to libs/headers in non-standard locations, if needed. 4. Once SableVM is compiled and installed - get sablevm-classpath, pass --disable-gtk-peer to configure (I remember we slightly modified one of the Makefiles, can't remember what we changed though, but if you show us the error message, we'll figure it out). 5. Run it! (the simplest test is 'sablevm -Y aaaaa' - if you get "Class Not Found" instead of "cannot to create vm" - it's very good. Note: remember to pass the same --prefix to configure script in both sablevm and sablevm-classpath. Hope this helps, Grzegorz B. Prokopski