[HOpenGL] HopenGL on GHC 6.3

Shiqi Cao caos2 at mcmaster.ca
Tue Jun 15 00:59:30 EDT 2004


Hi,

Recently, I installed the GHC 6.3 cvs
( ghc-6.3.20040609-src.tar.bz2)which I got from 
http://www.haskell.org/ghc/dist/current/dist/

I want to have the latest HopenGL, so I did the following

    autoreconf
    ./configure --enable-hopengl
    make all
    make html
    make install
    make install-docs

the first question is I can't find OpengGL or HOpenGL in package.conf, 

the second one is ghc doesn't work well,

 caos2 at shiqicao Haskell $ ghc63 -o hw hw.hs
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lHShaskell98
collect2: ld returned 1 exit status


the HShaskell98 is in the lib/. The following are three conf files,


root at shiqicao ghc-6.3 # cat ghc-6.3.20040609.sh
#!/bin/sh
libexecdir=/usr/lib/ghc-6.3
libdir=$libexecdir
 
GHCBIN="$libexecdir/ghc-6.3.20040609";
TOPDIROPT="-B$libdir";
#! /bin/bash
 
# Mini-driver for GHC
exec $GHCBIN $TOPDIROPT ${1+"$@"}
root at shiqicao ghc-6.3 # cat ghc-pkg-6.3.20040609.sh
#!/bin/sh
libexecdir=/usr/lib/ghc-6.3
libdir=$libexecdir
GHCPKGBIN="$libexecdir/ghc-pkg.bin";
PKGCONFOPT="-f $libdir/package.conf";
# Mini-driver for ghc-pkg
exec $GHCPKGBIN $PKGCONFOPT ${1+"$@"}
root at shiqicao ghc-6.3 # cat ghci-6.3.20040609.sh
#!/bin/sh
libexecdir=/usr/lib/ghc-6.3
libdir=$libexecdir
 
GHCBIN="/usr/lib/ghc-6.3/ghc-6.3.20040609";
TOPDIROPT="-B/usr/lib/ghc-6.3";
 
#!/bin/bash
GHC_CFLAGS="-optc-fno-pic -optc-fno-stack-protector"
# Mini-driver for GHCi
exec $GHCBIN $TOPDIROPT ${GHC_CFLAGS} --interactive ${1+"$@"}
root at shiqicao ghc-6.3 #


Regards,

Shiqi Cao



More information about the HOpenGL mailing list