Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I link against glut32 in cygwin?
    primarykey
    data
    text
    <p>I am trying to run <a href="http://sourceforge.net/projects/autodistrict/" rel="nofollow">someone else's (4 year old) code</a> from sourceforge. I downloaded cygwin and checked out the project with CVS.</p> <p>Here is the <a href="http://autodistrict.cvs.sourceforge.net/viewvc/autodistrict/bmp_version/compile_dir/compile?view=markup" rel="nofollow">compile</a> line which is failing:</p> <pre><code>gcc ../block_display/block_display.c -o block_display -lopengl32 -lglut32 -lm </code></pre> <p>Here is the relevant include statement in <a href="http://autodistrict.cvs.sourceforge.net/viewvc/autodistrict/bmp_version/block_display/block_display.c?view=markup" rel="nofollow">block_display.c</a>:</p> <pre><code>#include &lt;GL/glut.h&gt; </code></pre> <p>When I try to run the above compile line, I get this compile error:</p> <pre><code>$ gcc ../block_display/block_display.c -o block_display -lopengl32 -lglut32 -lm /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lglut32 collect2: ld returned 1 exit status </code></pre> <p>I admit I am new/rusty with cygwin. I tried a few things to get to this point, but since I don't entirely know where to put files, I am stuck on this error. Here is what I have tried:</p> <ol> <li>Downloading all results for 'glut' in cygwin setup: libglut-devel, freeglut, libglut3</li> <li>Downloading <a href="http://user.xmission.com/~nate/glut/glut-3.7.6-bin.zip" rel="nofollow">glut 3.7.6</a>, copying glut32.dll to C:\Windows\SysWOW64, and copying glut.h to C:\cygwin\usr\include. I still have glut.def and glut32.lib sitting around, but I do not know exactly where to place them. I tried following <a href="http://www.cs.csustan.edu/~rsc/SDSU/GLUTinstall.html" rel="nofollow">this install guide</a>, but since I am not running VC++, I do not know what the cygwin equivalent of VC++ path is.</li> </ol> <p>Any idea what I could do to get this code to compile successfully? I am running Windows 7 64-bit.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload