<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 &#39;Hello World&#39; 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.&nbsp; Is there a way I can
change the build to use -lglut?&nbsp; 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">&lt;<a href="mailto:clifford.beshers@gmail.com" target="_blank">clifford.beshers@gmail.com</a>&gt;</span> wrote:<br>

It works for me.&nbsp; I&#39;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&#39;t find your glut libraries (not the Haskell
wrappers, but the real GLUT libs). Try &#39;ghc -v --make &#39; and look at the
linking lines and see what GHC is specifying (mine shows a -lglut).&nbsp;
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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Description<br>+++-==============-==============-============================================<br>un&nbsp; freeglut-dev&nbsp;&nbsp; &lt;none&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (no description available)<br>


ii&nbsp; freeglut3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2.4.0-6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OpenGL Utility Toolkit<br>ii&nbsp; freeglut3-dev&nbsp; 2.4.0-6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OpenGL Utility Toolkit development files<br>un&nbsp; glut-doc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;none&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (no description available)<br>un&nbsp; glutg3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;none&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (no description available)<br>


un&nbsp; glutg3-dev&nbsp;&nbsp;&nbsp;&nbsp; &lt;none&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (no description available)<br>ii&nbsp; libghc6-glut-d 2.1.1.1-2+3see Haskell GLUT binding for GHC<br>un&nbsp; libghc6-glut-d &lt;none&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (no description available)<br>un&nbsp; libghc6-glut-p &lt;none&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (no description available)<br>


un&nbsp; libglut&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;none&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (no description available)<br>un&nbsp; libglut-dev&nbsp;&nbsp;&nbsp; &lt;none&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (no description available)<br>pn&nbsp; libglut3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;none&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (no description available)<br>un&nbsp; libglut3-dev&nbsp;&nbsp; &lt;none&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (no description available)</blockquote>
<br><br><div class="gmail_quote">On Sat, Sep 20, 2008 at 1:13 PM, Donnie Jones <span dir="ltr">&lt;<a href="mailto:donnie@darthik.com">donnie@darthik.com</a>&gt;</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">&lt;<a href="mailto:allbery@ece.cmu.edu" target="_blank">allbery@ece.cmu.edu</a>&gt;</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).&nbsp; I am able to build </div></blockquote><div><br></div></div><div>Yes, you have the header. &nbsp;But it says nothing about whether -lGLU was found, and that&#39;s where your problems are.</div>

</div><div>Also, that&#39;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 &quot;-lGL&quot; or &quot;-lGLU&quot; in config.log ###<br>

configure:4634: checking for GL library<br>configure:4670: gcc -o conftest -g -O2&nbsp;&nbsp;&nbsp; conftest.c -lGL -lm&nbsp;&nbsp; &gt;&amp;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&nbsp;&nbsp;&nbsp; conftest.c -lglu32 -lGL -lm&nbsp;&nbsp; &gt;&amp;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.&nbsp; */<br>| #define PACKAGE_NAME &quot;Haskell OpenGL package&quot;<br>| #define PACKAGE_TARNAME &quot;OpenGL&quot;<br>| #define PACKAGE_VERSION &quot;2.2.1&quot;<br>| #define PACKAGE_STRING &quot;Haskell OpenGL package 2.2.1&quot;<br>

| #define PACKAGE_BUGREPORT &quot;<a href="mailto:sven.panne@aedion.de" target="_blank">sven.panne@aedion.de</a>&quot;<br>| /* end confdefs.h.&nbsp; */<br>| #include &lt;GL/glu.h&gt;<br>| int<br>| main ()<br>| {<br>| gluNewQuadric()<br>
|&nbsp;&nbsp; ;<br>
|&nbsp;&nbsp; return 0;<br>| }<br>configure:4809: gcc -o conftest -g -O2&nbsp;&nbsp;&nbsp; conftest.c -lGLU -lGL -lm&nbsp;&nbsp; &gt;&amp;5<br>configure:4815: $? = 0<br>configure:4835: result: -lGLU -lGL -lm<br>...<br>fp_cv_check_GLU_lib=&#39;-lGLU -lGL -lm &#39;<br>

fp_cv_check_GL_lib=&#39;-lGL -lm &#39;<br>...<br>GLU_LIBS=&#39; -lGLU -lGL -lm &#39;<br>...<br>GL_LIBS=&#39; -lGL -lm &#39;<br>...<br>#define GLU_LIBS &quot;-lGLU&quot; ,&quot;-lGL&quot; ,&quot;-lm&quot;<br>########################################<br>

<br>It seems like the OpenGL and GLUT libraries are found (after -lglu32 fails, I am using Debian Linux).&nbsp; I am not sure what to try now.<br><br>Thank you for the help.&nbsp; :)<br>__<br>Donnie<br><br></div>
</blockquote></div><br></div>