
hello,
I have a linux machine and I've tried to compile the last version of
HOpenGL (1.03).
I have execute "./configure" and "make depend", but after executing
"make" I obtain the following lines:
------------------------------------------------------------------------
Recursively making `all' in lib examples ...
PWD = /home/jigg/asignaturas/log-informatica/haskell/HOpenGL-1.03
------------------------------------------------------------------------
------------------------------------------------------------------------
make all ;
in /home/jigg/asignaturas/log-informatica/haskell/HOpenGL-1.03/lib
------------------------------------------------------------------------
rm -f GL_BinaryIO.o ; if [ ! -d GL_BinaryIO ]; then mkdir GL_BinaryIO;
else find GL_BinaryIO -name '*.o' -print | xargs rm -f __rm_food ; fi ;
"/usr/bin/ghc" -syslib lang -split-objs -odir GL_BinaryIO -package-name
HOpenGL -fglasgow-exts -I/usr/X11R6/include "-#include

Juan Ignacio Garcia Garcia wrote:
[...] after executing "make" I obtain the following lines: [...] Prologue junk?: .globl __stginit_GLzuBinaryIO __stginit_GLzuBinaryIO: pushl %ebp movl %esp, %ebp
Hmmm, this looks like a GCC/GHC incompatibility and has probably nothing to do with HOpenGL. What versions of GCC/GHC are you using, i.e. what is the output of gcc -v ghc --version If it is GCC 3.x and not the latest GHC (5.04.1), there can be some problems like the one you have. In that case you should probably upgrade your GHC. Other quick workarounds just for testing what's going on are: * Use GCC 2.9x if you have one on your disk * Build HOpenGL with GHC's native code generator (make OPT="-O -fasm") Cheers, S.
participants (2)
-
Juan Ignacio Garcia Garcia
-
Sven Panne