[HOpenGL] Starting it all over again: It works!!!

Andre Wilson Brotto Furtado awbf@cin.ufpe.br
Tue, 14 Jan 2003 01:17:45 -0300 (BRST)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--296512545-105359084-1042517865=:8047
Content-Type: TEXT/PLAIN; charset=US-ASCII

Manuel Garcia Rodriguez wrote:
> Thanks God! After three weeks I was able to compile
> and run HOpenGL.

Unfortunately I did not succeed yet... Check this weird history:

I was stuck at "make install" getting the error:

GL/glut.h: No such file or directory

I then copied the glut files from
http://haskell.org/HOpenGL/releases/OpenGL-includes.zip and passed through
this point. Later in "make install", I got a new error:

test -d "/cygdrive/c/GHC/GHC-5.04.2/BIN/ghc/imports/HOpenGL" || mkdir
"/cygdrive
/c/GHC/GHC-5.04.2/BIN/ghc/imports/HOpenGL"
mkdir: cannot create directory
`/cygdrive/c/GHC/GHC-5.04.2/BIN/ghc/imports/HOpen
GL': No such file or directory
make[1]: *** [install] Error 1
make: *** [install] Error 1

I created the missing directory by hand and finally "make install" was
completed, in spite of a lot of warnings such as:

- foreign declaration uses deprecated non-standard syntax
- assignment discards qualifiers from pointer target type
- implicit declaration of function `glTexImage3D'
- ...

I did not understand why the examples (both C and HS) were not compiled
during stall. I then tryied to compile them by hand, but got stuck at
BlendEqn with the following error:

../../lib/libHOpenGL.a(GL_PerFragment__57.o)(.text+0x124)://c/WINDOWS/TEMP/g
hc-3
33765.hc: undefined reference to `glBlendEquation'
make[1]: *** [BlendEqn] Error 1
make: *** [all] Error 1

I then decided to start it all over again (once more :]) because I
realized
that I copied glut files AFTER the ./configure step, and supposed that
this
could give me more problems in the future. When running "./configure" once
more, I was very surprised by this error:

checking for ghc... no
configure: error: No Haskell compiler not found

(!!!) Now I have no idea what am I supposed to do... perhaps uninstall
everything (including GHC) and try it once more. As always, config.log is
attached, in case someone can give me a light.

Cheers,
-- Andre

--296512545-105359084-1042517865=:8047
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="config.log"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.44.0301140117450.8047@buique.cin.ufpe.br>
Content-Description: 
Content-Disposition: attachment; filename="config.log"

VGhpcyBmaWxlIGNvbnRhaW5zIGFueSBtZXNzYWdlcyBwcm9kdWNlZCBieSBj
b21waWxlcnMgd2hpbGUNCnJ1bm5pbmcgY29uZmlndXJlLCB0byBhaWQgZGVi
dWdnaW5nIGlmIGNvbmZpZ3VyZSBtYWtlcyBhIG1pc3Rha2UuDQoNCkl0IHdh
cyBjcmVhdGVkIGJ5IGNvbmZpZ3VyZSwgd2hpY2ggd2FzDQpnZW5lcmF0ZWQg
YnkgR05VIEF1dG9jb25mIDIuNTIuICBJbnZvY2F0aW9uIGNvbW1hbmQgbGlu
ZSB3YXMNCg0KICAkIC4vY29uZmlndXJlIA0KDQojIyAtLS0tLS0tLS0tICMj
DQojIyBQbGF0Zm9ybS4gICMjDQojIyAtLS0tLS0tLS0tICMjDQoNCmhvc3Ru
YW1lID0gMTQwMUENCnVuYW1lIC1tID0gaTY4Ng0KdW5hbWUgLXIgPSAxLjMu
MTgoMC42OS8zLzIpDQp1bmFtZSAtcyA9IENZR1dJTl85OC00LjEwDQp1bmFt
ZSAtdiA9IDIwMDItMTItMjUgMTU6MzcNCg0KL3Vzci9iaW4vdW5hbWUgLXAg
PSB1bmtub3duDQovYmluL3VuYW1lIC1YICAgICA9IHVua25vd24NCg0KL2Jp
bi9hcmNoICAgICAgICAgICAgICA9IHVua25vd24NCi91c3IvYmluL2FyY2gg
LWsgICAgICAgPSB1bmtub3duDQovdXNyL2NvbnZleC9nZXRzeXNpbmZvID0g
dW5rbm93bg0KaG9zdGluZm8gICAgICAgICAgICAgICA9IHVua25vd24NCi9i
aW4vbWFjaGluZSAgICAgICAgICAgPSB1bmtub3duDQovdXNyL2Jpbi9vc2xl
dmVsICAgICAgID0gdW5rbm93bg0KL2Jpbi91bml2ZXJzZSAgICAgICAgICA9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