Course FAQ
Q1: OpenGL/GLUT
Q1.1: Instructions on how to run OpenGL programs in Visual C++
- Download the zipped file from here
and unzip it in a new folder.
- If you are using the CNS lab computers, do the following:
- Copy the files to your local directory where your program
resides.
- In your program use: #include "glut.h" to include the glut
header file.
- If you are using your personal computer, you may repeat the
previous
instructions
or do the following:
- Copy glut32.dll into the c:\windows\system and
c:\windows\system32
directories.
- Copy the file glut.h into the include directory of Visual C++.
- Copy the file glut32.lib into the lib directory of Visual C++.
- In the library panel of the project setting dialog add
glut32.lib to
the
"Object/library modules" input box.
Q1.2: Instructions on how to run OpenGL programs in Linux
- GLUT normally comes with Linux. If you do not have it installed
you can
either compile the source or install the appropriate RPM package.
Q1.3: Problems in linking to glut (Windows/Linux)
- Try downloading the latest dll files directly from:
http://www.xmission.com/~nate/glut.html
- Try downloading and compiling the source code with your compiler.
The
source
code is available here or
directly
from: http://www.xmission.com/~nate/glut.html
Q2: SVL/VL
Q2.1: Instructions on how to install SVL for use in Visual C++
programs
- Download the zipped file
svl-1.4-bin.zip
and unzip it.
- Copy the files to your local directory where your program resides.
- In your program use the command: #include "svl/SVL.h" to include
the
SVL
header file.
- In the library panel of the project setting dialog add
svl.lib
to the "Object/library modules" input box.
- Note: If you are installing SVL on your personal computer, you
may do
the
following:
- Copy the files under the include directory into the include
directory
of
Visual C++.
- Copy the file svl.lib into the lib directory of Visual C++.
Q2.2: Instructions on how to install SVL for use in Linux
- Download the RPM file from here
or
directly from http://www-2.cs.cmu.edu/~ajw/public/dist/and
install it.
- The RPM files are rather old and seem not
to
work
properly on a newer system. If you are unable to use the RPM package
you
need to compile the source. Follow the following steps:
- unzip the source package and execute:
make linux_RH
make
make install (you need to do this part as su)
- If you get the following error when
compiling the
software: Mat.cpp:623: call of overloaded `abs(Real&)' is
ambiguous
Edit src/Mat.cpp and replace abs with
std::abs
in that line
Q2.3: Problems in linking to SVL (Windows)
- Download the SVL source file svl-1.4.zip from here
or directly from http://www-2.cs.cmu.edu/~ajw/public/dist/
- Unzip the source files
- Use the project file provided with the source code in order to
compile
SVL
- Copy the file in the lib directory to the lib directory of Visual
c++
and
copy the svl directory to the include directory of Visual C++.
- In your program use the command: #include "svl/SVL.h" to include
the
SVL
header file.
Q2.4: Problems in linking to SVL (Linux)
- Download the SVL source file svl-1.4.tar.gz from here
or directly from http://www-2.cs.cmu.edu/~ajw/public/dist/,
and follow the steps below.
- tar -zvxf svl-1.4.tar.gz
- cd svl-1.4
- make linux_RH
- make config
- make install
Updated
on August 20, 2002