problems running OpenGL code
William A. Mahaffey III
wam at hiwaay.net
Sat Dec 12 17:29:12 UTC 2015
On 12/12/15 11:08, William A. Mahaffey III wrote:
> On 12/12/15 11:01, William A. Mahaffey III wrote:
>> On 12/12/15 10:41, Polytropon wrote:
>>> On Sat, 12 Dec 2015 09:36:23 -0553.75, William A. Mahaffey III wrote:
>>>>
>>>> I have an inhouse OpenGL code named PreBFCGL.TEST which I am trying to
>>>> run. I get the following when I tried about 5 min. ago:
>>>>
>>>>
>>>> [wam at kabini1, ~, 9:30:21am] 936 % PreBFCGL.TEST
>>>> Segmentation fault (core dumped)
>>>> [wam at kabini1, ~, 9:30:38am] 937 % cat BFC.LOG
>>>> [...]
>>>> Xlib: extension "GLX" missing on display ":0.0".
>>>> Xlib: extension "GLX" missing on display ":0.0".
>>>> Error: No RGB visual with depth buffer
>>>>
>>>> Done, Bailing out ....
>>>> Saving Model Command File to Model_0.in .... done.
>>> It seems to be an X error - the GL extension (GLX) is not
>>> loaded. If you're running X with xorg.conf, make sure
>>>
>>> Section "Module"
>>> [...]
>>> Load "glx"
>>> [...]
>>> EndSection
>>
>> Check.
>>
>>>
>>> is being defined. For OpenGL, other things like direct
>>> rendering (DRI, DRM) might be needed. You can always
>>> check this with tools like glxinfo, xdriinfo, glxgears,
>>> or other programs that make use of OpenGL (for example,
>>> "xlock -mode fire" or "xlock -mode lament").
>>>
>>> The top of "glxinfo" output should look like this:
>>>
>>> name of display: :0.0
>>> display: :0 screen: 0
>>> direct rendering: Yes
>>> server glx vendor string: NVIDIA Corporation
>>> server glx version string: 1.4
>>> server glx extensions:
>>> [...]
>>> client glx vendor string: NVIDIA Corporation
>>> client glx version string: 1.4
>>> client glx extensions:
>>> [...]
>>> GLX version: 1.4
>>
>> Hmmmm:
>>
>> [root at kabini1, /etc, 10:56:18am] 767 % glxinfo
>> glxinfo: Command not found.
>> [root at kabini1, /etc, 10:56:19am] 768 % uname -a
>> FreeBSD kabini1.local 9.3-RELEASE-p24 FreeBSD 9.3-RELEASE-p24 #0: Sat
>> Aug 22 01:54:44 UTC 2015
>> root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
>> [root at kabini1, /etc, 10:56:29am] 769 %
>>
>>>
>>> Of course your graphics hardware should be reflected accordingly. :-)
>>>
>>> For this to work, I had to put
>>>
>>> drm_load="YES"
>>> nvidia_load="YES"
>>
>> Hmmmm .... OK, just did that. Do have them installed:
>>
>> [root at kabini1, /etc, 10:56:29am] 769 % grep -i drm LIST.installed.txt
>> drm-kmod-9.280208 FreeBSD 9.3 Kernel DRM driver
>> libdrm-2.4.60,1 Userspace interface to kernel Direct
>> Rendering Module services
>> [root at kabini1, /etc, 10:57:09am] 770 % grep -i nvidia LIST.installed.txt
>> nvidia-driver-340-340.93 NVidia graphics card binary drivers
>> for hardware OpenGL rendering
>> [root at kabini1, /etc, 10:57:16am] 771 %
>>
>> I just 'kldload'-ed drm & nvidia, I'll try again momentarily ....
>>
>>>
>>> in /boot/loader.conf - in your case, something similar will probably
>>> be needed. ALso make sure to install relevant libraries as needed
>>> (libGL, libGLU, libdrm, Mesa, ...).
>>
>> Check.
>>
>>>
>>>
>>>
>>>> Am I hosed until 3D OpenGL works for AMD jaguars ? If so, how is
>>>> progress on that front ? These are fairly common APUs, widely used in
>>>> laptops, some low-end desktops & some tablets, it would be sweet to
>>>> get
>>>> this going :-) ....
>>> As far as I know, this special kind of "graphics card" isn't that
>>> easy to use. It starts with the proper driver. Which one are you
>>> currently using?
>>
>> Uuuuuuuuuhhhh .... Not sure. VESA, I think, how do I check ?
>>
>>
>
> It is indeed VESA. I just kldload-ed drm & nvidia & still nogo, same
> error ....
>
Slight update. I found where glxinfo comes from & 'pkg installed' it,
now I have:
[root at kabini1, /etc, 11:32:25am] 793 % glxinfo
name of display: :0.0
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Error: couldn't find RGB GLX visual or fbconfig
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
[root at kabini1, /etc, 11:32:29am] 794 % kldstat
Id Refs Address Size Name
1 128 0xffffffff80200000 1611688 kernel
2 1 0xffffffff81812000 a890 geom_stripe.ko
3 3 0xffffffff8181d000 c19b8 linux.ko
4 1 0xffffffff818df000 43a8 snd_driver.ko
5 2 0xffffffff818e4000 8180 snd_ad1816.ko
6 2 0xffffffff818ed000 8a00 snd_als4000.ko
7 2 0xffffffff818f6000 a718 snd_atiixp.ko
8 2 0xffffffff81901000 87d0 snd_cs4281.ko
9 2 0xffffffff8190a000 ffa0 snd_ds1.ko
10 2 0xffffffff8191a000 dc20 snd_envy24.ko
11 4 0xffffffff81928000 2718 snd_spicds.ko
12 2 0xffffffff8192b000 cfc0 snd_envy24ht.ko
13 2 0xffffffff81938000 95b8 snd_ess.ko
14 5 0xffffffff81942000 5e78 snd_sbc.ko
15 2 0xffffffff81948000 7700 snd_fm801.ko
16 3 0xffffffff81950000 13bd8 snd_mss.ko
17 2 0xffffffff81964000 d858 snd_maestro.ko
18 2 0xffffffff81972000 f0d0 snd_maestro3.ko
19 2 0xffffffff81982000 14340 snd_neomagic.ko
20 2 0xffffffff81997000 8378 snd_sb16.ko
21 2 0xffffffff819a0000 7cf0 snd_sb8.ko
22 2 0xffffffff819a8000 8f88 snd_solo.ko
23 2 0xffffffff819b1000 8a88 snd_t4dwave.ko
24 2 0xffffffff819ba000 7d88 snd_via82c686.ko
25 2 0xffffffff819c2000 8d70 snd_vibes.ko
26 1 0xffffffff819cb000 3cb8 amdtemp.ko
27 3 0xffffffff819cf000 73958 vboxdrv.ko
28 1 0xffffffff81a43000 12470 tmpfs.ko
29 1 0xffffffff81c12000 9fd4 linprocfs.ko
30 1 0xffffffff81c1c000 52f2 fdescfs.ko
31 1 0xffffffff81c22000 28c9f vboxguest.ko
32 2 0xffffffff81c4b000 29f1 vboxnetflt.ko
33 2 0xffffffff81c4e000 b258 netgraph.ko
34 1 0xffffffff81c5a000 4449 ng_ether.ko
35 1 0xffffffff81c5f000 3f8a vboxnetadp.ko
36 1 0xffffffff81c63000 121fa ipfw.ko
39 1 0xffffffff81c76000 2c8e geom_nop.ko
40 1 0xffffffff81c79000 17677 drm.ko
41 1 0xffffffff81c91000 963a67 nvidia.ko
[root at kabini1, /etc, 11:32:46am] 795 %
i.e. no displays are GLX enabled ....
--
William A. Mahaffey III
----------------------------------------------------------------------
"The M1 Garand is without doubt the finest implement of war
ever devised by man."
-- Gen. George S. Patton Jr.
More information about the freebsd-x11
mailing list