[Insight-developers] GlutImageViewer woes

Robert Tamburo rjtst21@pitt.edu
Wed, 16 Oct 2002 12:32:15 -0400


This is a multi-part message in MIME format.

------=_NextPart_000_01D9_01C27510.0F56D2B0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

In the past with lab software, we manually installed Glut. Not sure if =
it still applies in itkLand, but here's how:

The GL subdirectory is in Visual Studio's include path:
X:\....\Microsoft Visual Studio .NET\Vc7\include\GL    --> move glut.h =
here

X:\....\Program Files\Microsoft Visual Studio .NET\Vc7\lib  --> move =
glut.lib here

Put glut.dll in the system32 directory.


  ----- Original Message -----=20
  From: Miller, James V (Research)=20
  To: Insight-developers (E-mail)=20
  Sent: Wednesday, October 16, 2002 9:26 AM
  Subject: [Insight-developers] GlutImageViewer woes


  Luis,

  I tried to use the glut image viewer that you are piecing together.  I =
hit upon the following issues:
    1.. Developer Studio .Net does not include glut in the default =
installation.  I didn't have my CD's with me last night to see if it is =
somewhere on the installation disk.  However, given MS's relationship =
with OpenGL, I would not be surprised if they no longer distribute glut. =

    2.. I downloaded a win32 binary installation of glut. FindGLUT.cmake =
of course did not find my new installation, so I told CMakeSetup where =
the glut.lib was.  Unfortunately, the binary installation of glut is =
just a directory with  "glut.h", "glut.lib", and a "glut.dll".  So when =
GlutMaster tries to include "GL/glut.h" is cannot find glut.h because =
the header is not in a subdirectory "GL".=20
    3.. I don't think my FindGLUT.cmake file sets ups a variable for the =
defining where the include directory for glut.h would be on a win32 =
system.=20
    4.. FindGLUT.cmake defines GLUT_LIBRARY but your CMakeLists.txt file =
references GLUT_LIBRARIES
   After this I lost interest and went about using VTK to view my =
images.=20

  Jim Miller=20
  _____________________________________
  Visualization & Computer Vision
  GE Research
  Bldg. KW, Room C218B
  P.O. Box 8, Schenectady NY 12301

  millerjv@research.ge.com

  james.miller@research.ge.com
  (518) 387-4005, Dial Comm: 8*833-4005,=20
  Cell: (518) 505-7065, Fax: (518) 387-6981=20

  =20



------=_NextPart_000_01D9_01C27510.0F56D2B0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o =3D "urn:schemas-microsoft-com:office:office"><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2716.2200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>In the past with lab software, we =
manually=20
installed Glut. Not sure if it still applies in itkLand, but here's=20
how:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The GL subdirectory is in Visual =
Studio's include=20
path:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>X:\....\Microsoft Visual Studio=20
.NET\Vc7\include\GL&nbsp;&nbsp;&nbsp; --&gt; move glut.h =
here</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>X:\....\Program Files\Microsoft Visual =
Studio=20
.NET\Vc7\lib&nbsp; --&gt; move glut.lib here</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Put glut.dll in the system32=20
directory.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Dmillerjv@crd.ge.com =
href=3D"mailto:millerjv@crd.ge.com">Miller, James V=20
  (Research)</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
  title=3DInsight-developers@public.kitware.com=20
  =
href=3D"mailto:Insight-developers@public.kitware.com">Insight-developers =

  (E-mail)</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Wednesday, October 16, =
2002 9:26=20
  AM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [Insight-developers]=20
  GlutImageViewer woes</DIV>
  <DIV><BR></DIV>
  <DIV><SPAN class=3D777251513-16102002><FONT =
size=3D2>Luis,</FONT></SPAN></DIV>
  <DIV><SPAN class=3D777251513-16102002><FONT =
size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D777251513-16102002><FONT size=3D2>I tried to use =
the glut image=20
  viewer that you are piecing together.&nbsp; I hit upon the following=20
  issues:</FONT></SPAN></DIV>
  <OL>
    <LI><SPAN class=3D777251513-16102002><FONT size=3D2>Developer Studio =
.Net does=20
    not include glut in the default installation.&nbsp; I didn't have my =
CD's=20
    with me last night to see if it is somewhere on the installation =
disk.&nbsp;=20
    However, given MS's relationship with OpenGL, I would not be =
surprised if=20
    they no longer distribute glut.</FONT></SPAN>=20
    <LI><SPAN class=3D777251513-16102002><FONT size=3D2>I downloaded a =
win32 binary=20
    installation of&nbsp;glut. FindGLUT.cmake of course did not find my =
new=20
    installation, so I told CMakeSetup where the glut.lib was.&nbsp;=20
    Unfortunately, the binary installation of glut is just a directory=20
    with&nbsp; "glut.h", "glut.lib", and a "glut.dll".&nbsp; So when =
GlutMaster=20
    tries to include "GL/glut.h" is cannot find glut.h because the =
header is not=20
    in a subdirectory "GL".</FONT></SPAN>=20
    <LI><SPAN class=3D777251513-16102002><FONT size=3D2>I don't think my =

    FindGLUT.cmake file sets ups a variable for the defining where the =
include=20
    directory for glut.h would be on a win32 system.</FONT></SPAN>=20
    <LI><SPAN class=3D777251513-16102002><FONT size=3D2>FindGLUT.cmake =
defines=20
    GLUT_LIBRARY but your CMakeLists.txt file references=20
    GLUT_LIBRARIES</FONT></SPAN></LI></OL>
  <P class=3DMsoNormal>&nbsp;<SPAN class=3D777251513-16102002><FONT =
size=3D2>After=20
  this I lost interest and went about using VTK to view my images.=20
  </FONT></SPAN></P>
  <P class=3DSection1 style=3D"MARGIN: 0in 0in 0pt"><B><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: 'Comic Sans MS'">Jim =
Miller</SPAN></B>=20
  <BR><B><I><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: =
Arial">_____________________________________</SPAN></I></B><BR><EM><SPAN =

  style=3D"FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: =
Arial">Visualization &amp;=20
  Computer Vision</SPAN></EM><I><SPAN=20
  style=3D"FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: =
Arial"><BR><EM>GE=20
  Research</EM><BR><EM>Bldg. KW, Room C218B</EM><BR><EM>P.O. Box 8, =
Schenectady=20
  NY 12301</EM><BR><BR></SPAN></I><EM><U><SPAN=20
  style=3D"FONT-SIZE: 7.5pt; COLOR: blue"><A=20
  =
href=3D"mailto:millerjv@research.ge.com">millerjv@research.ge.com</A></SP=
AN></U></EM></P>
  <P class=3DSection1 style=3D"MARGIN: 0in 0in 0pt"><EM><U><SPAN=20
  style=3D"FONT-SIZE: 7.5pt; COLOR: =
blue">james.miller@research.ge.com</SPAN></U></EM><BR><I><SPAN=20
  style=3D"FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial">(518) =
387-4005,=20
  Dial Comm: 8*833-4005, </SPAN></I><BR><I><SPAN=20
  style=3D"FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial">Cell: =
(518)=20
  505-7065, Fax: (518) 387-6981</SPAN></I> </P>
  <P class=3DMsoNormal>&nbsp;<o:p></o:p></P>
  <DIV>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_01D9_01C27510.0F56D2B0--