<div dir="ltr">Hello Clifford,<br><br>Thank you for the quick reply.<br>I was able to get a test C program that draws a triangle with GLUT to work:<br>gcc -lglut triangle.o -o triangle.exe<br><br>However,
when building the Haskell GLUT 'Hello World' it uses, -lGLU to link
GLUT, but that does not work; however, from the config.log output
configure seems to think that -lGL should work. Is there a way I can
change the build to use -lglut? Maybe with configure I can specify
that -lglut is the correct way to link the GLUT libraries?<br>
<br>Thank you!<br>__<br><font color="#888888">Donnie</font><br><br>On Sat, Sep 20, 2008 at 3:42 PM, Clifford Beshers <span dir="ltr"><<a href="mailto:clifford.beshers@gmail.com" target="_blank">clifford.beshers@gmail.com</a>></span> wrote:<br>
It works for me. I'm running Ubuntu Hardy with some packages built by us at SeeReason (see <a href="http://debs.seereason.com/" target="_blank">debs.seereason.com</a>).<br>
<br>It looks like ghc can't find your glut libraries (not the Haskell
wrappers, but the real GLUT libs). Try 'ghc -v --make ' and look at the
linking lines and see what GHC is specifying (mine shows a -lglut).
Try compiling an example C program against GLUT and see if that works.<br>
<br>My package list looks like this:<br>beshers@blue:~/haskell$ dpkg -l \*glut\*<br>Desired=Unknown/Install/<blockquote>Remove/Purge/Hold<br>| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend<br>
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)<br>||/ Name Version Description<br>+++-==============-==============-============================================<br>un freeglut-dev <none> (no description available)<br>
ii freeglut3 2.4.0-6 OpenGL Utility Toolkit<br>ii freeglut3-dev 2.4.0-6 OpenGL Utility Toolkit development files<br>un glut-doc <none> (no description available)<br>un glutg3 <none> (no description available)<br>
un glutg3-dev <none> (no description available)<br>ii libghc6-glut-d 2.1.1.1-2+3see Haskell GLUT binding for GHC<br>un libghc6-glut-d <none> (no description available)<br>un libghc6-glut-p <none> (no description available)<br>
un libglut <none> (no description available)<br>un libglut-dev <none> (no description available)<br>pn libglut3 <none> (no description available)<br>un libglut3-dev <none> (no description available)</blockquote>
<br><br><div class="gmail_quote">On Sat, Sep 20, 2008 at 1:13 PM, Donnie Jones <span dir="ltr"><<a href="mailto:donnie@darthik.com">donnie@darthik.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">Hello Brandon,<div class="Ih2E3d"><br><br><div class="gmail_quote">On Sat, Sep 20, 2008 at 1:02 PM, Brandon S. Allbery KF8NH <span dir="ltr"><<a href="mailto:allbery@ece.cmu.edu" target="_blank">allbery@ece.cmu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div><div><div>On 2008 Sep 20, at 12:57, Donnie Jones wrote:</div>
<blockquote type="cite"><div dir="ltr">checking GL/gl.h usability... yes<br>checking GL/gl.h presence... yes<br> checking for GL/gl.h... yes<br>checking OpenGL/gl.h usability... no<br>checking OpenGL/gl.h presence... no<br>
checking for OpenGL/gl.h... no<br>checking GL/glu.h usability... yes<br>checking GL/glu.h presence... yes<br>checking for GL/glu.h... yes<br> checking OpenGL/glu.h usability... no<br>checking OpenGL/glu.h presence... no<br>
checking for OpenGL/glu.h... no<br><br> That looks like to me that the gl.h and glu.h header files were found and are usable (in some cases). I am able to build </div></blockquote><div><br></div></div><div>Yes, you have the header. But it says nothing about whether -lGLU was found, and that's where your problems are.</div>
</div><div>Also, that's configure output, not config.log output (which has a transcript of the tests, not just the summary).</div><div><div><br></div></div></div></blockquote></div><br></div>### Relevant lines that include "-lGL" or "-lGLU" in config.log ###<br>
configure:4634: checking for GL library<br>configure:4670: gcc -o conftest -g -O2 conftest.c -lGL -lm >&5<br>configure:4676: $? = 0<br>configure:4696: result: -lGL -lm<br>configure:4773: checking for GLU library<br>
configure:4809: gcc -o conftest -g -O2 conftest.c -lglu32 -lGL -lm >&5<br>/usr/bin/ld: cannot find -lglu32<div class="Ih2E3d"><br>collect2: ld returned 1 exit status<br></div>configure:4815: $? = 1<br>configure: failed program was:<br>
| /* confdefs.h. */<br>| #define PACKAGE_NAME "Haskell OpenGL package"<br>| #define PACKAGE_TARNAME "OpenGL"<br>| #define PACKAGE_VERSION "2.2.1"<br>| #define PACKAGE_STRING "Haskell OpenGL package 2.2.1"<br>
| #define PACKAGE_BUGREPORT "<a href="mailto:sven.panne@aedion.de" target="_blank">sven.panne@aedion.de</a>"<br>| /* end confdefs.h. */<br>| #include <GL/glu.h><br>| int<br>| main ()<br>| {<br>| gluNewQuadric()<br>
| ;<br>
| return 0;<br>| }<br>configure:4809: gcc -o conftest -g -O2 conftest.c -lGLU -lGL -lm >&5<br>configure:4815: $? = 0<br>configure:4835: result: -lGLU -lGL -lm<br>...<br>fp_cv_check_GLU_lib='-lGLU -lGL -lm '<br>
fp_cv_check_GL_lib='-lGL -lm '<br>...<br>GLU_LIBS=' -lGLU -lGL -lm '<br>...<br>GL_LIBS=' -lGL -lm '<br>...<br>#define GLU_LIBS "-lGLU" ,"-lGL" ,"-lm"<br>########################################<br>
<br>It seems like the OpenGL and GLUT libraries are found (after -lglu32 fails, I am using Debian Linux). I am not sure what to try now.<br><br>Thank you for the help. :)<br>__<br>Donnie<br><br></div>
</blockquote></div><br></div>