PDA

View Full Version : newbie to OpenGL



BigTrouble
02-14-2001, 01:01 PM
Hi

I have GeForce DDR, and I installed latest nVidia drivers to Mandrake 7.2 and I want to some OpenGL coding

After install I reboot my pc and I started X-Window,yes X works, (I changed nv with nvidia, in the XF86Config-4 file)

I checked the /var/log directory for X messages, no warnings and errors

does my Linux run OpenGL with GeForce, I don't know
so how can I do some OpenGL tests under X-Window without coding

Regards
BigTrouble

rts
02-14-2001, 01:38 PM
Mandrake 7.2 installs some GL demos. Try "gears" or "reflect" at the command line.

If you installed all the games, try "tuxracer" (it's fun! http://www.opengl.org/discussion_boards/ubb/smile.gif )


Originally posted by BigTrouble:
does my Linux run OpenGL with GeForce, I don't know
so how can I do some OpenGL tests under X-Window without coding

jackz
02-15-2001, 10:00 AM
Originally posted by BigTrouble:
Hi

I have GeForce DDR, and I installed latest nVidia drivers to Mandrake 7.2 and I want to some OpenGL coding

After install I reboot my pc and I started X-Window,yes X works, (I changed nv with nvidia, in the XF86Config-4 file)

I checked the /var/log directory for X messages, no warnings and errors

does my Linux run OpenGL with GeForce, I don't know
so how can I do some OpenGL tests under X-Window without coding

Regards
BigTrouble




Did you install both kernel and glx.
and added also line Load glx.

best way to check is try tuxracer , included in mandrake if its run ok, driver is correctly installed, if its isvery slow
driver is not installed right.

then check that you have both gl.h and glu.h
if you do not have them try finding then try mesa.
after that re-install glx.
that is the easy way.

then go nehe.gamedev.com and find link to linux conversion to nehe tutorial.

download tutorial 2 or 3 or some else below 10.
some of tutorials over 10 are not working even if opengl is conficurated ok.

then tar -zxf tut
make
and try
should work.

after that check that ldd lessonx shows
linking to libgl.so in directory /usr/lib/
not in /usr/X11R6/lib/

libglu can be linket to /usr/X11R6/lib/

if those where ok, get anjuta or some else
IDE if you are not familiar with linux way to
program and happy programming

Michael Steinberg
02-15-2001, 01:59 PM
And anybody tell me linux is better than windows. You need good memory to keep in mind which packages you have installed, which one you need installed, where all the configuration paths are etc.
I agree that it is good to have a stable running machine, however linux is not good for a normal pc user... http://www.opengl.org/discussion_boards/ubb/smile.gif It had to be said... http://www.opengl.org/discussion_boards/ubb/smile.gif Don't let me disturb you.

rts
02-15-2001, 02:44 PM
I'll take Shared Lib Link Problems
over DLL Hell any day http://www.opengl.org/discussion_boards/ubb/smile.gif

(At least SLLP won't bring down my machine)


Originally posted by Michael Steinberg:
And anybody tell me linux is better than windows. You need good memory to keep in mind which packages you have installed, which one you need installed, where all the configuration paths are etc.
I agree that it is good to have a stable running machine, however linux is not good for a normal pc user... http://www.opengl.org/discussion_boards/ubb/smile.gif It had to be said... http://www.opengl.org/discussion_boards/ubb/smile.gif Don't let me disturb you.

02-21-2001, 11:31 AM
Originally posted by Michael Steinberg:
And anybody tell me linux is better than windows. You need good memory to keep in mind which packages you have installed, which one you need installed, where all the configuration paths are etc.
I agree that it is good to have a stable running machine, however linux is not good for a normal pc user... http://www.opengl.org/discussion_boards/ubb/smile.gif It had to be said... http://www.opengl.org/discussion_boards/ubb/smile.gif Don't let me disturb you.

RPM. Debian Package Manager. Even KDE Package Manager. These allow you to install and keep track of what you have installed on your system. I use RPM as an example.

Say you wish to install the program 'Foo'; first find the file Foo-x.y.z-w.rpm if it is a binary rpm or Foo-x.y.z-w.src.rpm if it is a source RPM. Then type (as root):

rpm -ivh Foo-x.y.z-w.rpm

or

rpm --rebuild Foo-x.y.z-w.src.rpm
cd /path/to/newly/built/rpm
rpm -ivh Foo-x.y.z-w.rpm

To find out whether a program is installed (and which version is installed), type:

rpm -q Foo

You should get the output "Foo-x.y.z-w" if Foo is installed or "Package Foo is not installed" if not.

The numbers x, y, z and w are the major, minor, bugfix and RPM build release numbers. If you have Foo-0.61.1-1 installed and find Foo-0.61.2-1.rpm, you can upgrade seamlessly using

rpm -Uvh Foo-0.61.2-1.rpm (upgrade)

or

rpm -Fvh Foo-0.61.2-1.rpm (freshen)

You might need to add the option --replacefiles or --replacepkgs if there have been modifications to configuration files or the actual programs installed have changed. To uninstall, simply run

rpm -e Foo

For tons more information, check out the rpm manpage (if you use an RPM-based distribution - Redhat, Mandrake, SuSE, Caldera, TurboLinux...) or type

rpm --help

You can also find graphical front-ends to RPM, such as the above-mentioned KDE Package Manager or GnoRPM. This beats Windows Installer any day.


[This message has been edited by ShadowMan (edited 02-21-2001).]

[This message has been edited by ShadowMan (edited 02-21-2001).]