Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2001-10

New gtkglarea demo

17 messages · 8 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner
to Shane Miller: No I didn't. I'm not sure how to do that. :-) I looked at that site…
Show quoted text 8 lines
Am Mittwoch, 17. Oktober 2001 14:57 schrieb Shane Miller: -- > After linking libGL.so.1 to libGL.so and installing gtkgl RPM I get > > XLIb: extension "GLX" missing on display ":0.0". > > when I run it. THen it quits. Could it be my video card doesn't support > GL?

Probably you need a line

Load "glx"

in your

Section "Module"

in your XF86Config.

If this does not help, look in your startx output for glx.

Mattias

Reply by email

Shane Miller

No I didn't. I'm not sure how to do that. :-) I looked at that site dri.sourceforge.net and it said I needed kernel 2.4.5. How do I determine my Kernel version. Do I really need to compile something into the kernel to get this to work? Is loading modules enough? ..too many questions. :-) SHane

>> 10/17/01 08:21AM >>>

Hi.

Have you enabled DRI/GLX in your XF86Config file and compiled DRI/DRM support into your kernel (or installed the appropriate module)? It took me a while to set up OpenGL support, but it works for my ATI Rage 128 card.
If your card isn't supported by X or the Linux kernel, you will have to use software rendering (which is slooooooooooow).

For more information see http://dri.sourceforge.net/.

Mata ne,
Magus

Am Mittwoch, 17. Oktober 2001 14:57 schrieb Shane Miller:

-- > After linking libGL.so.1 to libGL.so and installing gtkgl RPM I get

Show quoted text 42 lines
XLIb: extension "GLX" missing on display ":0.0". when I run it. THen it quits. Could it be my video card doesn't support GL? Shane >>> 10/16/01 09:19AM >>> Hi all, Thx to satan, there is a new gtkglarea demo which demonstrates lighting, blending and animation. Simply compile and start it: cd <lazarusdir>/components/gtk/gtkglarea make ./gtkglarea_demo It's amazing! There is also an improved opengl unit with a lot of nvidia extensions (nvgl.pp). Normal bugfixes: - Buttons now react to Return key. - MessageDialogs have now a default Button. - Splashform is more visible. - reduced lcl output Mattias _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Marc Weustink
to Mattias Gaertner: Thx to satan, there is a new gtkglarea demo which demonstrates lighting, blending and…
Mattias Gaertner wrote 10 lines
Hi all, Thx to satan, there is a new gtkglarea demo which demonstrates lighting, blending and animation. Simply compile and start it: cd <lazarusdir>/components/gtk/gtkglarea make ./gtkglarea_demo It's amazing!

After installing the missing packages, it sure is..... and a bit slow. I think I have to put my old accellerator in my linux box one day.

It nice to watch tough

Marc

Reply by email

Shane Miller

After linking libGL.so.1 to libGL.so and installing gtkgl RPM I get

XLIb: extension "GLX" missing on display ":0.0".

when I run it. THen it quits. Could it be my video card doesn't support GL?

Shane

>> 10/16/01 09:19AM >>>

Hi all,

Thx to satan, there is a new gtkglarea demo which demonstrates lighting, blending and animation. Simply compile and start it:

cd <lazarusdir>/components/gtk/gtkglarea
make
./gtkglarea_demo

It's amazing!

There is also an improved opengl unit with a lot of nvidia extensions (nvgl.pp).

Normal bugfixes:
- Buttons now react to Return key.
- MessageDialogs have now a default Button.
- Splashform is more visible.
- reduced lcl output

Mattias

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Mattias Gaertner

Hi all,

Thx to satan, there is a new gtkglarea demo which demonstrates lighting, blending and animation. Simply compile and start it:

cd <lazarusdir>/components/gtk/gtkglarea
make
./gtkglarea_demo

It's amazing!

There is also an improved opengl unit with a lot of nvidia extensions (nvgl.pp).

Normal bugfixes:
- Buttons now react to Return key.
- MessageDialogs have now a default Button.
- Splashform is more visible.
- reduced lcl output

Mattias

Reply by email

Magus Matthias A. Benkard
to Shane Miller: After linking libGL.so.1 to libGL.so and installing gtkgl RPM I get XLIb: extension "GLX"…

Hi.

Have you enabled DRI/GLX in your XF86Config file and compiled DRI/DRM support into your kernel (or installed the appropriate module)? It took me a while to set up OpenGL support, but it works for my ATI Rage 128 card.
If your card isn't supported by X or the Linux kernel, you will have to use software rendering (which is slooooooooooow).

For more information see http://dri.sourceforge.net/.

Mata ne,
Magus

Am Mittwoch, 17. Oktober 2001 14:57 schrieb Shane Miller:

-- > After linking libGL.so.1 to libGL.so and installing gtkgl RPM I get

Show quoted text 42 lines
XLIb: extension "GLX" missing on display ":0.0". when I run it. THen it quits. Could it be my video card doesn't support GL? Shane >>> 10/16/01 09:19AM >>> Hi all, Thx to satan, there is a new gtkglarea demo which demonstrates lighting, blending and animation. Simply compile and start it: cd <lazarusdir>/components/gtk/gtkglarea make ./gtkglarea_demo It's amazing! There is also an improved opengl unit with a lot of nvidia extensions (nvgl.pp). Normal bugfixes: - Buttons now react to Return key. - MessageDialogs have now a default Button. - Splashform is more visible. - reduced lcl output Mattias _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Shane Miller

What is the module's actual name? Where should it be located. I didn't have a MODULE section so I created one but now it says it can't find that module. Is the file the libGL.so or is it something else?

Shane

>> 10/18/01 06:29AM >>> How do I determine my Kernel version.

Try "uname -r".
For example:

uname -r

2.4.11-pre5

Do I really need to compile something into the kernel to get this to work? Is loading modules enough?

Usually you just have to load the module. But I prefer compiling all my stuff into the kernel :)
Besides, you only need to do something about the kernel (be it loading modules or recompiling) if you want to use hardware acceleration.

Just do what Mattias told you.
You may want to redirect startx's output to some logfile and read it afterwards, i.e.: startx >x.log 2>x.err
One of the two files (x.log or x.err) will be empty because X writes everything to stderr (or stdout, respectively), but I can't recall which one :-)

Just look for something like "Direct Rendering" or "GLX". If you read "Direct rendering enabled" somewhere, hardware acceleration works; if not, then not. At least that's the case for me (XFree86 4.1.0).

Maybe it's not important (probably it is for hardware acceleration), but I also have the lines:
Load "dri"
Load "drm"
in the modules section of my XF86Config file (besides 'Load "glx"').

Also, if you want to use hardware accelerated OpenGL as a normal user (which is likely, isn't it?), you have to put this in the XF86Config file too:

Section "DRI"
Group "video"
Mode 0666
EndSection

This allows all users in group "video" to use OpenGL hardware acceleration. Or so I think ;)
You might want to create the group "video" and put yourself in it, or change "video" to "users" or something.
I don't know if you need all this if you want to use software rendering, though...

In X, you can check if OpenGL is enabled quite easily: open a terminal window and type "glxinfo".

Mata ne,
Magus

Shane Miller wrote 59 lines
No I didn't. I'm not sure how to do that. :-) I looked at that site dri.sourceforge.net and it said I needed kernel 2.4.5. How do I determine my Kernel version. Do I really need to compile something into the kernel to get this to work? Is loading modules enough? ..too many questions. :-) SHane >>> 10/17/01 08:21AM >>> Hi. Have you enabled DRI/GLX in your XF86Config file and compiled DRI/DRM support into your kernel (or installed the appropriate module)? It took me a while to set up OpenGL support, but it works for my ATI Rage 128 card. If your card isn't supported by X or the Linux kernel, you will have to use software rendering (which is slooooooooooow). For more information see http://dri.sourceforge.net/. Mata ne, Magus Am Mittwoch, 17. Oktober 2001 14:57 schrieb Shane Miller: -- > After linking libGL.so.1 to libGL.so and installing gtkgl RPM I get > XLIb: extension "GLX" missing on display ":0.0". > > when I run it. THen it quits. Could it be my video card doesn't support > GL? > > Shane > > >>> 10/16/01 09:19AM >>> > > Hi all, > > Thx to satan, there is a new gtkglarea demo which demonstrates lighting, > blending and animation. Simply compile and start it: > > cd <lazarusdir>/components/gtk/gtkglarea > make > ./gtkglarea_demo > > It's amazing! > > There is also an improved opengl unit with a lot of nvidia extensions > (nvgl.pp). > > > Normal bugfixes: > - Buttons now react to Return key. > - MessageDialogs have now a default Button. > - Splashform is more visible. > - reduced lcl output > > Mattias >

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Magus
to Shane Miller: OK, then where do I get that? I don't have that on my system. I went to…

Am Donnerstag, 18. Oktober 2001 21:44 schrieb Shane Miller: Well, good question.
I guess it should be part of XFree86. Which Linux distribution do you use? In Debian the package might be xlibmesa or something like that (you can download Debian packages at http://packages.debian.org/). If you use an RPM based system, I suggest you just search for "libglx.a" on http://www.rpmfind.net/.

Mata ne,
Magus

Show quoted text 183 lines
OK, then where do I get that? I don't have that on my system. I went to http://dri.sourceforge.net/ but it appears they only have it for 2.4.5 kernel (http://www.xfree86.org/~alanh/) Shane >>> 10/18/01 12:51PM >>> Am Donnerstag, 18. Oktober 2001 20:02 schrieb Shane Miller: > Right, but is there a .so file or something I can look for to determine > where glx is installed to set to my modulespath in the x congif file? Ah :) Yeah, I just looked in my /usr/X11/lib/modules directory. There's a "/usr/X11/lib/modules/extensions/libglx.a" there. So you should look for a "libglx.a" :) Mata ne, Magus > Right, but is there a .so file or something I can look for to determine > where glx is installed to set to my modulespath in the x congif file? > > I need to see that to verify that I actually have glx installed. > SHane > > >>> 10/18/01 11:32AM >>> > > The OpenGL module's name is "glx". > For Direct Rendering you also need "dri" and "drm" (maybe one of these > starts the other one automatically... maybe...). > > Mata ne, > Magus > > > What is the module's actual name? Where should it be located. I > > didn't have a MODULE section so I created one but now it says it can't > > find that module. Is the file the libGL.so or is it something else? > > > > Shane > > > > >>> 10/18/01 06:29AM >>> > > > > > > How do I determine my Kernel version. > > > > Try "uname -r". > > For example: > > > uname -r > > 2.4.11-pre5 > > > > > > > > Do I really need to compile something into the kernel > > > to get this to work? Is loading modules enough? > > > > Usually you just have to load the module. But I prefer compiling all my > > stuff into the kernel :) > > Besides, you only need to do something about the kernel (be it loading > > modules or recompiling) if you want to use hardware acceleration. > > > > Just do what Mattias told you. > > You may want to redirect startx's output to some logfile and read it > > afterwards, i.e.: startx >x.log 2>x.err > > One of the two files (x.log or x.err) will be empty because X writes > > everything to stderr (or stdout, respectively), but I can't recall > > which one > > > > :-) > > > > Just look for something like "Direct Rendering" or "GLX". > > If you read "Direct rendering enabled" somewhere, hardware acceleration > > works; if not, then not. At least that's the case for me (XFree86 > > 4.1.0). > > > > Maybe it's not important (probably it is for hardware acceleration), > > but I also have the lines: > > Load "dri" > > Load "drm" > > in the modules section of my XF86Config file (besides 'Load "glx"'). > > > > Also, if you want to use hardware accelerated OpenGL as a normal user > > (which is likely, isn't it?), you have to put this in the XF86Config > > file too: > > > > Section "DRI" > > Group "video" > > Mode 0666 > > EndSection > > > > This allows all users in group "video" to use OpenGL hardware > > acceleration. Or so I think ;) > > You might want to create the group "video" and put yourself in it, or > > change "video" to "users" or something. > > I don't know if you need all this if you want to use software > > rendering, though... > > > > In X, you can check if OpenGL is enabled quite easily: open a terminal > > window and type "glxinfo". > > > > Mata ne, > > Magus > > > > Am Mittwoch, 17. Oktober 2001 21:58 schrieb Shane Miller: > > > No I didn't. I'm not sure how to do that. :-) I looked at that > > > site dri.sourceforge.net and it said I needed kernel 2.4.5. How do I > > > determine my Kernel version. Do I really need to compile something > > > into the kernel to get this to work? Is loading modules enough? > > > ..too many questions. > > > > > > :-) SHane > > > : > > > >>> 10/17/01 08:21AM >>> > > > > > > Hi. > > > > > > Have you enabled DRI/GLX in your XF86Config file and compiled DRI/DRM > > > support into your kernel (or installed the appropriate module)? > > > It took me a while to set up OpenGL support, but it works for my ATI > > > Rage 128 card. > > > If your card isn't supported by X or the Linux kernel, you will have > > > to use software rendering (which is slooooooooooow). > > > > > > For more information see http://dri.sourceforge.net/. > > > > > > Mata ne, > > > Magus > > > > > > > > > Am Mittwoch, 17. Oktober 2001 14:57 schrieb Shane Miller: > > > > > > -- > After linking libGL.so.1 to libGL.so and installing gtkgl RPM I > > > get > > > > > > > XLIb: extension "GLX" missing on display ":0.0". > > > > > > > > when I run it. THen it quits. Could it be my video card doesn't > > > > support GL? > > > > > > > > Shane > > > > > > > > >>> 10/16/01 09:19AM >>> > > > > > > > > Hi all, > > > > > > > > Thx to satan, there is a new gtkglarea demo which demonstrates > > > > lighting, blending and animation. Simply compile and start it: > > > > > > > > cd <lazarusdir>/components/gtk/gtkglarea > > > > make > > > > ./gtkglarea_demo > > > > > > > > It's amazing! > > > > > > > > There is also an improved opengl unit with a lot of nvidia > > > > extensions (nvgl.pp). > > > > > > > > > > > > Normal bugfixes: > > > > - Buttons now react to Return key. > > > > - MessageDialogs have now a default Button. > > > > - Splashform is more visible. > > > > - reduced lcl output > > > > > > > > Mattias > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Magus
to Shane Miller: What is the module's actual name? Where should it be located. I didn't have a MODULE…

The OpenGL module's name is "glx".
For Direct Rendering you also need "dri" and "drm" (maybe one of these starts the other one automatically... maybe...).

Mata ne,
Magus

Show quoted text 125 lines
What is the module's actual name? Where should it be located. I didn't have a MODULE section so I created one but now it says it can't find that module. Is the file the libGL.so or is it something else? Shane >>> 10/18/01 06:29AM >>> > > How do I determine my Kernel version. Try "uname -r". For example: > uname -r 2.4.11-pre5 > > Do I really need to compile something into the kernel > to get this to work? Is loading modules enough? Usually you just have to load the module. But I prefer compiling all my stuff into the kernel :) Besides, you only need to do something about the kernel (be it loading modules or recompiling) if you want to use hardware acceleration. Just do what Mattias told you. You may want to redirect startx's output to some logfile and read it afterwards, i.e.: startx >x.log 2>x.err One of the two files (x.log or x.err) will be empty because X writes everything to stderr (or stdout, respectively), but I can't recall which one :-) Just look for something like "Direct Rendering" or "GLX". If you read "Direct rendering enabled" somewhere, hardware acceleration works; if not, then not. At least that's the case for me (XFree86 4.1.0). Maybe it's not important (probably it is for hardware acceleration), but I also have the lines: Load "dri" Load "drm" in the modules section of my XF86Config file (besides 'Load "glx"'). Also, if you want to use hardware accelerated OpenGL as a normal user (which is likely, isn't it?), you have to put this in the XF86Config file too: Section "DRI" Group "video" Mode 0666 EndSection This allows all users in group "video" to use OpenGL hardware acceleration. Or so I think ;) You might want to create the group "video" and put yourself in it, or change "video" to "users" or something. I don't know if you need all this if you want to use software rendering, though... In X, you can check if OpenGL is enabled quite easily: open a terminal window and type "glxinfo". Mata ne, Magus Am Mittwoch, 17. Oktober 2001 21:58 schrieb Shane Miller: > No I didn't. I'm not sure how to do that. :-) I looked at that site > dri.sourceforge.net and it said I needed kernel 2.4.5. How do I determine > my Kernel version. Do I really need to compile something into the kernel > to get this to work? Is loading modules enough? ..too many questions. > > :-) SHane > : > >>> 10/17/01 08:21AM >>> > > Hi. > > Have you enabled DRI/GLX in your XF86Config file and compiled DRI/DRM > support into your kernel (or installed the appropriate module)? > It took me a while to set up OpenGL support, but it works for my ATI Rage > 128 card. > If your card isn't supported by X or the Linux kernel, you will have to > use software rendering (which is slooooooooooow). > > For more information see http://dri.sourceforge.net/. > > Mata ne, > Magus > > > Am Mittwoch, 17. Oktober 2001 14:57 schrieb Shane Miller: > > -- > After linking libGL.so.1 to libGL.so and installing gtkgl RPM I get > > > XLIb: extension "GLX" missing on display ":0.0". > > > > when I run it. THen it quits. Could it be my video card doesn't > > support GL? > > > > Shane > > > > >>> 10/16/01 09:19AM >>> > > > > Hi all, > > > > Thx to satan, there is a new gtkglarea demo which demonstrates > > lighting, blending and animation. Simply compile and start it: > > > > cd <lazarusdir>/components/gtk/gtkglarea > > make > > ./gtkglarea_demo > > > > It's amazing! > > > > There is also an improved opengl unit with a lot of nvidia extensions > > (nvgl.pp). > > > > > > Normal bugfixes: > > - Buttons now react to Return key. > > - MessageDialogs have now a default Button. > > - Splashform is more visible. > > - reduced lcl output > > > > Mattias

Reply by email

Marcus Fazzi
to Shane Miller: What is the module's actual name? Where should it be located. I didn't have a MODULE…

Any have a GTK/PHP sample?

Earlier message 153 lines
----- Original Message ----- From: "Shane Miller" To: Sent: Thursday, October 18, 2001 11:03 AM Subject: Re: [lazarus] New gtkglarea demo > What is the module's actual name? Where should it be located. I didn't have a MODULE section so I created one but now it says it can't find that module. Is the file the libGL.so or is it something else? > > Shane > > > >>> 10/18/01 06:29AM >>> > > > How do I determine my Kernel version. > Try "uname -r". > For example: > > uname -r > 2.4.11-pre5 > > > > > Do I really need to compile something into the kernel > > to get this to work? Is loading modules enough? > Usually you just have to load the module. But I prefer compiling all my stuff > into the kernel :) > Besides, you only need to do something about the kernel (be it loading modules > or recompiling) if you want to use hardware acceleration. > > Just do what Mattias told you. > You may want to redirect startx's output to some logfile and read it > afterwards, i.e.: startx >x.log 2>x.err > One of the two files (x.log or x.err) will be empty because X writes > everything to stderr (or stdout, respectively), but I can't recall which one > :-) > > Just look for something like "Direct Rendering" or "GLX". > If you read "Direct rendering enabled" somewhere, hardware acceleration works; > if not, then not. At least that's the case for me (XFree86 4.1.0). > > Maybe it's not important (probably it is for hardware acceleration), but I > also have the lines: > Load "dri" > Load "drm" > in the modules section of my XF86Config file (besides 'Load "glx"'). > > Also, if you want to use hardware accelerated OpenGL as a normal user (which > is likely, isn't it?), you have to put this in the XF86Config file too: > > Section "DRI" > Group "video" > Mode 0666 > EndSection > > This allows all users in group "video" to use OpenGL hardware acceleration. Or > so I think ;) > You might want to create the group "video" and put yourself in it, or change > "video" to "users" or something. > I don't know if you need all this if you want to use software rendering, > though... > > In X, you can check if OpenGL is enabled quite easily: open a terminal window > and type "glxinfo". > > Mata ne, > Magus > > > Am Mittwoch, 17. Oktober 2001 21:58 schrieb Shane Miller: > > No I didn't. I'm not sure how to do that. :-) I looked at that site > > dri.sourceforge.net and it said I needed kernel 2.4.5. How do I determine > > my Kernel version. Do I really need to compile something into the kernel > > to get this to work? Is loading modules enough? ..too many questions. > > :-) SHane > > > > >>> 10/17/01 08:21AM >>> > > > > Hi. > > > > Have you enabled DRI/GLX in your XF86Config file and compiled DRI/DRM > > support into your kernel (or installed the appropriate module)? > > It took me a while to set up OpenGL support, but it works for my ATI Rage > > 128 card. > > If your card isn't supported by X or the Linux kernel, you will have to use > > software rendering (which is slooooooooooow). > > > > For more information see http://dri.sourceforge.net/. > > > > Mata ne, > > Magus > > > > > > Am Mittwoch, 17. Oktober 2001 14:57 schrieb Shane Miller: > > > > -- > After linking libGL.so.1 to libGL.so and installing gtkgl RPM I get > > > > > XLIb: extension "GLX" missing on display ":0.0". > > > > > > when I run it. THen it quits. Could it be my video card doesn't support > > > GL? > > > > > > Shane > > > > > > >>> 10/16/01 09:19AM >>> > > > > > > Hi all, > > > > > > Thx to satan, there is a new gtkglarea demo which demonstrates lighting, > > > blending and animation. Simply compile and start it: > > > > > > cd <lazarusdir>/components/gtk/gtkglarea > > > make > > > ./gtkglarea_demo > > > > > > It's amazing! > > > > > > There is also an improved opengl unit with a lot of nvidia extensions > > > (nvgl.pp). > > > > > > > > > Normal bugfixes: > > > - Buttons now react to Return key. > > > - MessageDialogs have now a default Button. > > > - Splashform is more visible. > > > - reduced lcl output > > > > > > Mattias > > > > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Shane Miller

Right, but is there a .so file or something I can look for to determine where glx is installed to set to my modulespath in the x congif file?

I need to see that to verify that I actually have glx installed. SHane

>> 10/18/01 11:32AM >>>

The OpenGL module's name is "glx".
For Direct Rendering you also need "dri" and "drm" (maybe one of these starts the other one automatically... maybe...).

Mata ne,
Magus

Show quoted text 125 lines
What is the module's actual name? Where should it be located. I didn't have a MODULE section so I created one but now it says it can't find that module. Is the file the libGL.so or is it something else? Shane >>> 10/18/01 06:29AM >>> > > How do I determine my Kernel version. Try "uname -r". For example: > uname -r 2.4.11-pre5 > > Do I really need to compile something into the kernel > to get this to work? Is loading modules enough? Usually you just have to load the module. But I prefer compiling all my stuff into the kernel :) Besides, you only need to do something about the kernel (be it loading modules or recompiling) if you want to use hardware acceleration. Just do what Mattias told you. You may want to redirect startx's output to some logfile and read it afterwards, i.e.: startx >x.log 2>x.err One of the two files (x.log or x.err) will be empty because X writes everything to stderr (or stdout, respectively), but I can't recall which one :-) Just look for something like "Direct Rendering" or "GLX". If you read "Direct rendering enabled" somewhere, hardware acceleration works; if not, then not. At least that's the case for me (XFree86 4.1.0). Maybe it's not important (probably it is for hardware acceleration), but I also have the lines: Load "dri" Load "drm" in the modules section of my XF86Config file (besides 'Load "glx"'). Also, if you want to use hardware accelerated OpenGL as a normal user (which is likely, isn't it?), you have to put this in the XF86Config file too: Section "DRI" Group "video" Mode 0666 EndSection This allows all users in group "video" to use OpenGL hardware acceleration. Or so I think ;) You might want to create the group "video" and put yourself in it, or change "video" to "users" or something. I don't know if you need all this if you want to use software rendering, though... In X, you can check if OpenGL is enabled quite easily: open a terminal window and type "glxinfo". Mata ne, Magus Am Mittwoch, 17. Oktober 2001 21:58 schrieb Shane Miller: > No I didn't. I'm not sure how to do that. :-) I looked at that site > dri.sourceforge.net and it said I needed kernel 2.4.5. How do I determine > my Kernel version. Do I really need to compile something into the kernel > to get this to work? Is loading modules enough? ..too many questions. > > :-) SHane > : > >>> 10/17/01 08:21AM >>> > > Hi. > > Have you enabled DRI/GLX in your XF86Config file and compiled DRI/DRM > support into your kernel (or installed the appropriate module)? > It took me a while to set up OpenGL support, but it works for my ATI Rage > 128 card. > If your card isn't supported by X or the Linux kernel, you will have to > use software rendering (which is slooooooooooow). > > For more information see http://dri.sourceforge.net/. > > Mata ne, > Magus > > > Am Mittwoch, 17. Oktober 2001 14:57 schrieb Shane Miller: > > -- > After linking libGL.so.1 to libGL.so and installing gtkgl RPM I get > > > XLIb: extension "GLX" missing on display ":0.0". > > > > when I run it. THen it quits. Could it be my video card doesn't > > support GL? > > > > Shane > > > > >>> 10/16/01 09:19AM >>> > > > > Hi all, > > > > Thx to satan, there is a new gtkglarea demo which demonstrates > > lighting, blending and animation. Simply compile and start it: > > > > cd <lazarusdir>/components/gtk/gtkglarea > > make > > ./gtkglarea_demo > > > > It's amazing! > > > > There is also an improved opengl unit with a lot of nvidia extensions > > (nvgl.pp). > > > > > > Normal bugfixes: > > - Buttons now react to Return key. > > - MessageDialogs have now a default Button. > > - Splashform is more visible. > > - reduced lcl output > > > > Mattias

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Magus
to Shane Miller
Shane Miller wrote
Right, but is there a .so file or something I can look for to determine where glx is installed to set to my modulespath in the x congif file?

Ah :)
Yeah, I just looked in my /usr/X11/lib/modules directory. There's a "/usr/X11/lib/modules/extensions/libglx.a" there. So you should look for a "libglx.a" :)

Mata ne,
Magus

Show quoted text 152 lines
Right, but is there a .so file or something I can look for to determine where glx is installed to set to my modulespath in the x congif file? I need to see that to verify that I actually have glx installed. SHane >>> 10/18/01 11:32AM >>> The OpenGL module's name is "glx". For Direct Rendering you also need "dri" and "drm" (maybe one of these starts the other one automatically... maybe...). Mata ne, Magus > What is the module's actual name? Where should it be located. I didn't > have a MODULE section so I created one but now it says it can't find that > module. Is the file the libGL.so or is it something else? > > Shane > > >>> 10/18/01 06:29AM >>> > > > > How do I determine my Kernel version. > > Try "uname -r". > For example: > > uname -r > 2.4.11-pre5 > > > > > Do I really need to compile something into the kernel > > to get this to work? Is loading modules enough? > > Usually you just have to load the module. But I prefer compiling all my > stuff into the kernel :) > Besides, you only need to do something about the kernel (be it loading > modules or recompiling) if you want to use hardware acceleration. > > Just do what Mattias told you. > You may want to redirect startx's output to some logfile and read it > afterwards, i.e.: startx >x.log 2>x.err > One of the two files (x.log or x.err) will be empty because X writes > everything to stderr (or stdout, respectively), but I can't recall which > one > > :-) > > Just look for something like "Direct Rendering" or "GLX". > If you read "Direct rendering enabled" somewhere, hardware acceleration > works; if not, then not. At least that's the case for me (XFree86 4.1.0). > > Maybe it's not important (probably it is for hardware acceleration), but > I also have the lines: > Load "dri" > Load "drm" > in the modules section of my XF86Config file (besides 'Load "glx"'). > > Also, if you want to use hardware accelerated OpenGL as a normal user > (which is likely, isn't it?), you have to put this in the XF86Config file > too: > > Section "DRI" > Group "video" > Mode 0666 > EndSection > > This allows all users in group "video" to use OpenGL hardware > acceleration. Or so I think ;) > You might want to create the group "video" and put yourself in it, or > change "video" to "users" or something. > I don't know if you need all this if you want to use software rendering, > though... > > In X, you can check if OpenGL is enabled quite easily: open a terminal > window and type "glxinfo". > > Mata ne, > Magus > > Am Mittwoch, 17. Oktober 2001 21:58 schrieb Shane Miller: > > No I didn't. I'm not sure how to do that. :-) I looked at that site > > dri.sourceforge.net and it said I needed kernel 2.4.5. How do I > > determine my Kernel version. Do I really need to compile something > > into the kernel to get this to work? Is loading modules enough? ..too > > many questions. > > > > :-) SHane > > : > > >>> 10/17/01 08:21AM >>> > > > > Hi. > > > > Have you enabled DRI/GLX in your XF86Config file and compiled DRI/DRM > > support into your kernel (or installed the appropriate module)? > > It took me a while to set up OpenGL support, but it works for my ATI > > Rage 128 card. > > If your card isn't supported by X or the Linux kernel, you will have to > > use software rendering (which is slooooooooooow). > > > > For more information see http://dri.sourceforge.net/. > > > > Mata ne, > > Magus > > > > > > Am Mittwoch, 17. Oktober 2001 14:57 schrieb Shane Miller: > > > > -- > After linking libGL.so.1 to libGL.so and installing gtkgl RPM I > > get > > > > > XLIb: extension "GLX" missing on display ":0.0". > > > > > > when I run it. THen it quits. Could it be my video card doesn't > > > support GL? > > > > > > Shane > > > > > > >>> 10/16/01 09:19AM >>> > > > > > > Hi all, > > > > > > Thx to satan, there is a new gtkglarea demo which demonstrates > > > lighting, blending and animation. Simply compile and start it: > > > > > > cd <lazarusdir>/components/gtk/gtkglarea > > > make > > > ./gtkglarea_demo > > > > > > It's amazing! > > > > > > There is also an improved opengl unit with a lot of nvidia extensions > > > (nvgl.pp). > > > > > > > > > Normal bugfixes: > > > - Buttons now react to Return key. > > > - MessageDialogs have now a default Button. > > > - Splashform is more visible. > > > - reduced lcl output > > > > > > Mattias _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Magus
to Shane Miller: No I didn't. I'm not sure how to do that. :-) I looked at that site…
How do I determine my Kernel version.

Try "uname -r".
For example:

uname -r

2.4.11-pre5

Do I really need to compile something into the kernel to get this to work? Is loading modules enough?

Usually you just have to load the module. But I prefer compiling all my stuff into the kernel :)
Besides, you only need to do something about the kernel (be it loading modules or recompiling) if you want to use hardware acceleration.

Just do what Mattias told you.
You may want to redirect startx's output to some logfile and read it afterwards, i.e.: startx >x.log 2>x.err
One of the two files (x.log or x.err) will be empty because X writes everything to stderr (or stdout, respectively), but I can't recall which one :-)

Just look for something like "Direct Rendering" or "GLX". If you read "Direct rendering enabled" somewhere, hardware acceleration works; if not, then not. At least that's the case for me (XFree86 4.1.0).

Maybe it's not important (probably it is for hardware acceleration), but I also have the lines:
Load "dri"
Load "drm"
in the modules section of my XF86Config file (besides 'Load "glx"').

Also, if you want to use hardware accelerated OpenGL as a normal user (which is likely, isn't it?), you have to put this in the XF86Config file too:

Section "DRI"
Group "video"
Mode 0666
EndSection

This allows all users in group "video" to use OpenGL hardware acceleration. Or so I think ;)
You might want to create the group "video" and put yourself in it, or change "video" to "users" or something.
I don't know if you need all this if you want to use software rendering, though...

In X, you can check if OpenGL is enabled quite easily: open a terminal window and type "glxinfo".

Mata ne,
Magus

Shane Miller wrote 59 lines
No I didn't. I'm not sure how to do that. :-) I looked at that site dri.sourceforge.net and it said I needed kernel 2.4.5. How do I determine my Kernel version. Do I really need to compile something into the kernel to get this to work? Is loading modules enough? ..too many questions. :-) SHane >>> 10/17/01 08:21AM >>> Hi. Have you enabled DRI/GLX in your XF86Config file and compiled DRI/DRM support into your kernel (or installed the appropriate module)? It took me a while to set up OpenGL support, but it works for my ATI Rage 128 card. If your card isn't supported by X or the Linux kernel, you will have to use software rendering (which is slooooooooooow). For more information see http://dri.sourceforge.net/. Mata ne, Magus Am Mittwoch, 17. Oktober 2001 14:57 schrieb Shane Miller: -- > After linking libGL.so.1 to libGL.so and installing gtkgl RPM I get > XLIb: extension "GLX" missing on display ":0.0". > > when I run it. THen it quits. Could it be my video card doesn't support > GL? > > Shane > > >>> 10/16/01 09:19AM >>> > > Hi all, > > Thx to satan, there is a new gtkglarea demo which demonstrates lighting, > blending and animation. Simply compile and start it: > > cd <lazarusdir>/components/gtk/gtkglarea > make > ./gtkglarea_demo > > It's amazing! > > There is also an improved opengl unit with a lot of nvidia extensions > (nvgl.pp). > > > Normal bugfixes: > - Buttons now react to Return key. > - MessageDialogs have now a default Button. > - Splashform is more visible. > - reduced lcl output > > Mattias >

Reply by email

Shane Miller

OK, then where do I get that? I don't have that on my system. I went to http://dri.sourceforge.net/ but it appears they only have it for 2.4.5 kernel (http://www.xfree86.org/~alanh/)

Shane

>> 10/18/01 12:51PM >>>
Shane Miller wrote
Right, but is there a .so file or something I can look for to determine where glx is installed to set to my modulespath in the x congif file?

Ah :)
Yeah, I just looked in my /usr/X11/lib/modules directory. There's a "/usr/X11/lib/modules/extensions/libglx.a" there. So you should look for a "libglx.a" :)

Mata ne,
Magus

Show quoted text 152 lines
Right, but is there a .so file or something I can look for to determine where glx is installed to set to my modulespath in the x congif file? I need to see that to verify that I actually have glx installed. SHane >>> 10/18/01 11:32AM >>> The OpenGL module's name is "glx". For Direct Rendering you also need "dri" and "drm" (maybe one of these starts the other one automatically... maybe...). Mata ne, Magus > What is the module's actual name? Where should it be located. I didn't > have a MODULE section so I created one but now it says it can't find that > module. Is the file the libGL.so or is it something else? > > Shane > > >>> 10/18/01 06:29AM >>> > > > > How do I determine my Kernel version. > > Try "uname -r". > For example: > > uname -r > 2.4.11-pre5 > > > > > Do I really need to compile something into the kernel > > to get this to work? Is loading modules enough? > > Usually you just have to load the module. But I prefer compiling all my > stuff into the kernel :) > Besides, you only need to do something about the kernel (be it loading > modules or recompiling) if you want to use hardware acceleration. > > Just do what Mattias told you. > You may want to redirect startx's output to some logfile and read it > afterwards, i.e.: startx >x.log 2>x.err > One of the two files (x.log or x.err) will be empty because X writes > everything to stderr (or stdout, respectively), but I can't recall which > one > > :-) > > Just look for something like "Direct Rendering" or "GLX". > If you read "Direct rendering enabled" somewhere, hardware acceleration > works; if not, then not. At least that's the case for me (XFree86 4.1.0). > > Maybe it's not important (probably it is for hardware acceleration), but > I also have the lines: > Load "dri" > Load "drm" > in the modules section of my XF86Config file (besides 'Load "glx"'). > > Also, if you want to use hardware accelerated OpenGL as a normal user > (which is likely, isn't it?), you have to put this in the XF86Config file > too: > > Section "DRI" > Group "video" > Mode 0666 > EndSection > > This allows all users in group "video" to use OpenGL hardware > acceleration. Or so I think ;) > You might want to create the group "video" and put yourself in it, or > change "video" to "users" or something. > I don't know if you need all this if you want to use software rendering, > though... > > In X, you can check if OpenGL is enabled quite easily: open a terminal > window and type "glxinfo". > > Mata ne, > Magus > > Am Mittwoch, 17. Oktober 2001 21:58 schrieb Shane Miller: > > No I didn't. I'm not sure how to do that. :-) I looked at that site > > dri.sourceforge.net and it said I needed kernel 2.4.5. How do I > > determine my Kernel version. Do I really need to compile something > > into the kernel to get this to work? Is loading modules enough? ..too > > many questions. > > > > :-) SHane > > : > > >>> 10/17/01 08:21AM >>> > > > > Hi. > > > > Have you enabled DRI/GLX in your XF86Config file and compiled DRI/DRM > > support into your kernel (or installed the appropriate module)? > > It took me a while to set up OpenGL support, but it works for my ATI > > Rage 128 card. > > If your card isn't supported by X or the Linux kernel, you will have to > > use software rendering (which is slooooooooooow). > > > > For more information see http://dri.sourceforge.net/. > > > > Mata ne, > > Magus > > > > > > Am Mittwoch, 17. Oktober 2001 14:57 schrieb Shane Miller: > > > > -- > After linking libGL.so.1 to libGL.so and installing gtkgl RPM I > > get > > > > > XLIb: extension "GLX" missing on display ":0.0". > > > > > > when I run it. THen it quits. Could it be my video card doesn't > > > support GL? > > > > > > Shane > > > > > > >>> 10/16/01 09:19AM >>> > > > > > > Hi all, > > > > > > Thx to satan, there is a new gtkglarea demo which demonstrates > > > lighting, blending and animation. Simply compile and start it: > > > > > > cd <lazarusdir>/components/gtk/gtkglarea > > > make > > > ./gtkglarea_demo > > > > > > It's amazing! > > > > > > There is also an improved opengl unit with a lot of nvidia extensions > > > (nvgl.pp). > > > > > > > > > Normal bugfixes: > > > - Buttons now react to Return key. > > > - MessageDialogs have now a default Button. > > > - Splashform is more visible. > > > - reduced lcl output > > > > > > Mattias _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Peter Vreman
I retrieved the source and did a make with fpc version 1.0.5[2001/04/01] for > Compiling

interfaces.pp

Compiling interfaces.pp Compiling interfaces.pp controls.pp(29,17) Fatal: Can't find unit FORMS make[4]: Leaving directory `/home/rob/lazarus/lazarus/lcl/interfaces/gtk'

I think you need a more recent 1.0.5 snapshot

Reply by email

Robert Young
to Peter Vreman

You are correct. I misunderstood the home page, it seemed that the latest build was only fixing problems in Win2000.

Thanks for you help.

Rob

Peter Vreman wrote 17 lines
> I retrieved the source and did a make with fpc version 1.0.5[2001/04/01] for > Compiling interfaces.pp > Compiling interfaces.pp > Compiling interfaces.pp > controls.pp(29,17) Fatal: Can't find unit FORMS > make[4]: Leaving directory `/home/rob/lazarus/lazarus/lcl/interfaces/gtk' I think you need a more recent 1.0.5 snapshot _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Robert Young
to Shane Miller: OK, then where do I get that? I don't have that on my system. I went to…

I retrieved the source and did a make with fpc version 1.0.5[2001/04/01] for i386

I got.
make -C lcl all
make[1]: Entering directory `/home/rob/lazarus/lazarus/lcl' /bin/rm -f ./units/allunits.ppu
ppc386 -gl -Fu./units -Fu./interfaces/abstract -Fi./include -FU./units -di386 allunits.pp Free Pascal Compiler version 1.0.5 [2001/04/01] for i386 Copyright (c) 1993-2000 by Florian Klaempfl
Target OS: Linux for i386
Compiling allunits.pp
.
.
.
Compiling interfaces.pp
Compiling interfaces.pp
Compiling interfaces.pp
controls.pp(29,17) Fatal: Can't find unit FORMS
make[4]: Leaving directory `/home/rob/lazarus/lazarus/lcl/interfaces/gtk' make[3]: Leaving directory `/home/rob/lazarus/lazarus/lcl/interfaces/gtk' make[2]: Leaving directory `/home/rob/lazarus/lazarus/lcl/interfaces' make[1]: Leaving directory `/home/rob/lazarus/lazarus/lcl'

Did I do something really stupid or was there a bug in the repository?

Rob

Reply by email