Re: Starting it all over again: It works!!!

Manuel Garcia Rodriguez <[email protected]>
Newsgroups gmane.comp.lang.haskell.hopengl
Message-ID <[email protected]>
> Message: 1
> Date: Tue, 14 Jan 2003 01:17:45 -0300 (BRST)
> From: Andre Wilson Brotto Furtado <[email protected]>
> To: [email protected]
> Subject: Re: [HOpenGL] Starting it all over again:
> It works!!!
 
> 
> - foreign declaration uses deprecated non-standard
> syntax
> - assignment discards qualifiers from pointer target
> type

Don't worry about it.

> - 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
> [...]
> checking for ghc... no
> configure: error: No Haskell compiler not found

ghc/bin and greencard dir must be added to PATH

Please, first of all, follow this link:
http://www.informatik.uni-muenchen.de/~Sven.Panne/cygwin/opengl_glut.html
and setup your GL libaries. I only succeeded after
this. make scripts are supposed to use X11/GL, 

which I wasn't able to configure. You must use
Win32/Opengl libraries.

From previous post of Sven:
* In HOpenGL's configure, replace the line '#ifndef
GL_VERSION_1_2'
  with something like '#ifndef ThisIsVeryUnlikely'.
This is because cygwin headers doesn't show their
actual version.

do: 
./configure
make depend

Find 'config.mk' and replace references to X11/GL
libraries with win32 ones:
[-lglut, -lGLU, -lGL, ...] -> [-lglut, -lglu32,
-lopengl32]

In redbook_C/Makefile.linux, comment CFLAGS var,
cygwin gcc doesn't work it. I copied .h headers 

to any include dir in the tree :) 

Finally, try 'make all'


___________________________________________________
Yahoo! Móviles
Personaliza tu móvil con tu logo y melodía favorito 
en http://moviles.yahoo.es
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.