From owner-freebsd-questions@freebsd.org Sat Dec 12 16:35:20 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 73C11A3B290; Sat, 12 Dec 2015 16:35:20 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3D9EA19A0; Sat, 12 Dec 2015 16:35:19 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-31-25.dynamic.qsc.de [92.195.31.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id DC0983CE19; Sat, 12 Dec 2015 17:35:10 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id tBCGZA7r001988; Sat, 12 Dec 2015 17:35:10 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sat, 12 Dec 2015 17:35:09 +0100 From: Polytropon To: "William A. Mahaffey III" Cc: FreeBSD Questions !!!! , FreeBSD X11 mailing list Subject: Re: problems running OpenGL code Message-Id: <20151212173509.fba928df.freebsd@edvax.de> In-Reply-To: <566C3DAD.8090809@hiwaay.net> References: <566C3DAD.8090809@hiwaay.net> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Dec 2015 16:35:20 -0000 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@kabini1, ~, 9:30:21am] 936 % PreBFCGL.TEST > Segmentation fault (core dumped) > [wam@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 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 Of course your graphics hardware should be reflected accordingly. :-) For this to work, I had to put drm_load="YES" nvidia_load="YES" 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, ...). > 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? -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...