Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Axel Simon <A.S<imon@ke...> - 2003-11-16 14:05:07
On Fri, Nov 14, 2003 at 11:42:30AM +0000, Axel Simon wrote:
> On Fri, Nov 14, 2003 at 11:30:50AM -0000, Chris Taylor wrote:
> > Axel,
> > I do have Ghc 6, but I need it to work on 5.04.2 also, as i'm trying to use
> > it for my
> > university dissitation (my university has the older version of ghc), and so
> > I
> > need to keep to use same version so i can be sure it works on both...
The current HEAD of CVS compiles with both, ghc 6 and 5.04 on Unix. I am
currently building on Windows with MinGW. I added some instructions on how
to build on Windows to the INSTALL file:
Install MSYS and MinGW. Download the following files from
http://www.gimp.org/~tml/gimp/win32/downloads.html : atk-1.4.0.zip,
glib-2.2.3.zip, glib-dev-2.2.3.zip, gtk+-2.2.4.zip,
gtk+-dev-2.2.4.zip, libiconv-1.9.1.bin.woe32.zip, pango-1.2.5.zip,
pango-dev-1.2.5.zip, pkgconfig-0.15.zip. Unpack these files in a
*separate* (1) directory from MinGW. Add the bin/ and the /lib
directory to your path via the Control Panel (or right-clicking My
Computer, Properties, Advanced). Make sure GHC is in your
path. Proceed with the general instructions. If you have the right to
modify the global package file, then I recommend to install the
library into the ghc directory by using configure's --prefix= option.
(1) If you don't use a separate directory, GHC's local gcc might pick
up libraries from MinGW, resulting in link errors or worse.
> > I had a go compiling on Ghc 6, with a clean install of files. I don't even
> > get this far..
> > > make install
> > make -Cmogul noinplace
> > make: Entering directory `/cygdrive/c/ghc/gtk2hs-0.9.3/mogul'
> > make: Leaving directory `/cygdrive/c/ghc/gtk2hs-0.9.3/mogul'
> > make -Cgtk noinplace
> > make: Entering directory `/cygdrive/c/ghc/gtk2hs-0.9.3/gtk'
> > Removing old local entry for "gtk2".
> > c:/ghc/gtk2hs-0.9.3/localpackage.conf: package `gtk2' not found
> > make: *** [noinplace] Error 1
> > make: Leaving directory `/cygdrive/c/ghc/gtk2hs-0.9.3/gtk'
> > make: *** [noinplace] Error 2
I hope that his is due to the fact that 0.9.3 is no good with GHC 6.
Looking at the pathnames, there will be problem with Cygwin. After
configuring, you could try to change the variable PATHSED in mk/config.mk
PATHSED = 's+/\([a-z]\)/+\1:/+'
PATHSED = 's+/cygdrive/\([a-z]\)/+\1:/+'
> > I'm sure all problems have something to do with the cygwin filesystem, i.e.
> > C:\ghc is
> > /cygdrive/c/ghc on cygwin. I just cant work out how to solve it!
There might be additional complications. I read that you need different
gtk library files for Cygwin than for MinGW. Could you try building again
with the attached tarball?
Thanks very much,
From: Axel Simon <A.S<imon@ke...> - 2003-11-16 14:11:56
On Sun, Nov 16, 2003 at 02:04:21PM +0000, Axel Simon wrote:
> The current HEAD of CVS compiles with both, ghc 6 and 5.04 on Unix. I am
> currently building on Windows with MinGW.
Ops, postponed mail from yesterday. I meant to say: It builds fine with
ghc 5.04 and MinGW 3.1.0-1 and MSYS 1.0.9 and gtk 2.2.4 on Windows 2000.
Installing probably does work, too, but I just used the globally installed
ghc into which I cannot add the package.