Re: Re: ANNOUNCE: HOpenGL 1.05 released

Glynn Clements <[email protected]>
Newsgroups gmane.comp.lang.haskell.hopengl
Message-ID <[email protected]>
Jens Petersen wrote:

>     SP> I am pleased to announce the sixteenth release of
>     SP> the Haskell binding for GL 1.2.1 / GLU 1.3 / GLUT
>     SP> 3.7beta.
> 
> I'm trying to build it on Fedora Core 1 with ghc-6.0.1,
> greencard-3.01, XFree86-Mesa-libGL and
> freeglut-1.3-1.20020125.3.  The library seems to build ok,
> but when I try to build the examples I get:
> 
> cd /home/petersen/haskell/HOpenGL/HOpenGL-1.05/examples/misc/
> LANG=C make 
> "/usr/bin/ghc" -o Info -i../../lib:../../GLUT -I../../lib -package lang -fglasgow-exts    -I/usr/X11R6/include "-#include <GL/freeglut.h>" -O    Info.o -L../../lib -lHOpenGL -lGLU -lGL -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lfreeglut-1.3 -lm 
> /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libfreeglut-1.3.so: undefined reference to `XF86VidModeSetViewPort'
> /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libfreeglut-1.3.so: undefined reference to `XF86VidModeSwitchToMode'
> /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libfreeglut-1.3.so: undefined reference to `XF86VidModeGetAllModeLines'
> /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libfreeglut-1.3.so: undefined reference to `XF86VidModeGetModeLine'
> collect2: ld returned 1 exit status
> make: *** [Info] Error 1
> 
> I tried adding -lXxf86vm  to the link invocation but that
> didn't help.  Any ideas?

Ultimately this is an error in libfreeglut; if it needs the
XF86VidMode* functions, it should link against libXxf86vm when
building the shared library.

You should be able to work around the problem by adding -lXxf86vm to
the link command, but it has to come *after* the -lfreeglut-1.3
switch.

-- 
Glynn Clements <[email protected]>
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.