Problem compiling HOpenGL

"Sumskas, Peter (Peter)" <[email protected]>
Newsgroups gmane.comp.lang.haskell.hopengl
Message-ID <338366A6D2E2CA4C9DAEAE652E12A1DE161347@au3010avexu1.global.avaya.com>
Hi there. 

I'm new to both Haskell and to HOpenGL. I've been following the
instructions on how to do the installation under windows and I've done
the following things:

. followed all the instructions
. copied glut.h from /usr/include/GL to
/cygdrive/c/gch/ghc-6.0/include/mingw/GL (found out about this from
searching the archives).
. then I ran into the problem about "Cannot locate utf8.pm".

I've seen some mail about this but no resolution to the issue. I know it
isn't directly related to HOpenGL (more a GHC/perl issue) but since the
only other occurrence of this I can find was related to HOpenGl I was
wondering if anyone else knows what I need to do.

System configuration:

. P4 Windows XP
. cygwin (perl 5.8.1)
. greencard 3.00
. ghc 6.00
. HOpenGL 1.04


Here's the output from trying to compile:

--

$ make
------------------------------------------------------------------------
Recursively making `all' in lib examples ...
PWD = /opt/HOpenGL-1.04
------------------------------------------------------------------------
------------------------------------------------------------------------
make all - --unix;
in /opt/HOpenGL-1.04/lib
------------------------------------------------------------------------
rm -f GL_Marshal.o ; if [ ! -d GL_Marshal_split ]; then mkdir
GL_Marshal_split;
else find GL_Marshal_split -name '*.o' -print | xargs -s 8000 rm -f
__rm_food ;
fi ;
"/cygdrive/c/ghc/ghc-6.0/bin/ghc" -package lang -package-name HOpenGL
-i../GLUT
-I../GLUT/include -cpp -DCALLCONV=stdcall -split-objs -odir
GL_Marshal_split -fg
lasgow-exts   "-#include <GL/glut.h>" -O   -c GL_Marshal.hs -o
GL_Marshal.o
Can't locate utf8.pm in @INC (@INC contains: .) at
c:\ghc\ghc-6.0\ghc-split line
 51, <TMPI> line 7.
BEGIN failed--compilation aborted, <TMPI> line 7.
make[1]: *** [GL_Marshal.o] Error 2
make: *** [all] Error 1

--


So as far as I can tell @INC isn't being set right. When I ask perl from
the command line it tells me:

--

$ perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=cygwin, osvers=1.3.22(0.7832), archname=cygwin-multi-64int
    uname='cygwin_nt-4.0 iokaste 1.3.22(0.7832) 2003-03-18 09:20 i686
unknown un
known cygwin '
    config_args='-de -Dmksymlinks -Dusemultiplicity -Duse64bitint
-Doptimize=-O3
 -Dman3ext=3pm'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=defi
ne
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=undef uselongdouble=undef
    usemymalloc=y, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing',
    optimize='-O3',
    cppflags='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing'
    ccversion='', gccversion='3.2.3 (home grown)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8,
Off_t='off_t', lsee
ksize=4
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='ld2', ldflags =' -s -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib /lib
    libs=-lgdbm -ldb -lcrypt -lutil -lgdbm_compat
    perllibs=-lcrypt -lutil -lgdbm_compat
    libc=/usr/lib/libc.a, so=dll, useshrplib=true, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' -s'
    cccdlflags=' ', lddlflags=' -s -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY USE_64_BIT_INT USE_LARGE_FILES
PERL_IMPLICI
T_CONTEXT
  Built under cygwin
  Compiled at Jun  2 2003 13:55:45
  %ENV:
    CYGWIN=""
  @INC:
    /usr/lib/perl5/5.8.0/cygwin-multi-64int
    /usr/lib/perl5/5.8.0
    /usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int
    /usr/lib/perl5/site_perl/5.8.0
    /usr/lib/perl5/site_perl
    .

--

So it seems like something is breaking @INC. Unfortunately I don't know
perl and have no idea how it is being invoked from ghc so I'm pretty
much stuck as to where to look next.

Any help would be appreciated.

Regards,

Peter Sumskas.

"Tomorrow do thy worst! For I have liv'd today." - Horace
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.