Re: Compiling roadrunner into cygwin

Jonas Borgström <[email protected]> 12 Feb 2003 15:47:46 +0100
Newsgroups gmane.network.beep.roadrunner.general
Organization CodeFactory AB
Message-ID <1045061265.11135.47.camel@blinky>
On Wed, 2003-02-12 at 11:29, Andres Moya wrote:
> El mar, 11-02-2003 a las 13:21, Jonas Borgström escribió:
> > On Mon, 2003-02-10 at 19:27, Andres Moya wrote:
> > > Hello.
> > > 
> > > I want to use RoadRunner 0.9.1 into Cygwin. I have downloaded the source
> > > package, done ./configure and then make. But there are some errors and
> > > it does not compile.
> > > 
> > > I have searched the mailing lists, but haven't found any reference to
> > > Cygwin. Could you help me, please?
> > > 
> > Hi,
> > 
> > I tried to reproduce this but I failed to get glib2 to build. I tried
> > both version 2.0.7 and 2.2.1. But both failed with some strange linking
> > error. Which version did you compile?
> > 
> > (I'm using cygwin 1.3.20)
> 
> Well, I use glib 2.2.0, but the original from gtk.org does not compile.
> To build it, you need a patch publied in this mailing list some time
> ago:
> 
> http://sources.redhat.com/ml/cygwin/2003-01/msg00086.html
> 
> The patch creator does not have time to maintain a regular cygwin
> package (nor do I) :(, and seems that the patch is not yet put into the
> official glib 2.2.1
> 
> What I did (as suggested by the patch author) was:
> 
> Download and unpack glib-2.2.0.tar.bz2, and glib-2.2.0-cygwin.patch.gz
> into /home/andres
> 
> cd glib-2.2.0
> patch -p1 ../glib-2.2.0-cygwin.patch
> chmod +x ./bootstrap
> ./bootstrap
> mkdir .build && cd .build
> CFLAGS='-g -O0' ../configure --prefix=/usr \
>   --srcdir=/home/andres/glib-2.2.0 --enable-maintainer-mode
> make 
> make install
> 
> 
> I'm not sure if --prefix=/usr and make install are ok :-?
> 
> Thanks for your other suggestions, I will try them and report the
> results.

I followed the instructions above and I managed to compile and install
glib2 2.2.1

I needed to change all occurrences of "#ifdef G_PLATFORM_WIN32" in the
source to "#ifdef G_OS_WIN32" to be able to compile roadrunner 0.9.1

The following patch contains the changes:

http://afs.codefactory.se/~jonas/roadrunner/roadrunner-0.9.1-cygwin.diff
(these changes will shortly be added to the cvs repository)

I also had to run this script to regenerate the ./configure script
and to update the libtool version.

http://afs.codefactory.se/~jonas/roadrunner/autogen.sh

After that you should be able to compile the library normally.
Libtool only seems to build a static version of the library,
this requires some more investigation.

I hope this helps

/ Jonas
PS
I'm posting this to the mailing list because this might help others.
DS
-- 
Jonas Borgström                  [email protected]
CodeFactory AB                   http://www.codefactory.se/
Office: +46 (0)90 71 86 14