LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Blogs > rtg
User Name
Password

Notices

Rate this Entry

OpenGL, GLX, Mesa and DRI

Posted 02-27-2006 at 05:54 AM by rtg

Now I'm in the process of rebuilding the software to get rid of apps running in 32-bit mode.
This time i wanted to enable 3D acceleration for my old Radeon 9000 Pro. ATI hadn't yet come with suitable drivers for the 7.0.0 release of server... So I downloaded Mesa OpenGL implementation and started to pronounce different spells.
<!--break-->
So I came up with the following:
  • If you want OpenGL 1.5 support WITHOUT hardware acceleration, use
    Code:
    make linux-x86-64
    This will produce libGL.so.1.5.xxxx and the programs that require opengl will run, but awfully slow when compared to accelerated output.
  • If you want OpenGL 1.2 WITH hardware support, use
    Code:
    make linux-dri-x86-64
    BUT! grep Mesa sources for X11R6/lib - you'll find the directory the newly-created libGL will search for Direct Rendering Infrastructure drivers. Either make something with it, or modify your installation. This will produce libGL.so.1.2 that will know about the hw acceleration. Please note, that the installation script WON'T put dri files into that directory, you need to do this by yourself.
You should have only one libGL in your LD_LIBRARY_PATH, because runtime linker might pick up the wrong version (in my case it tried to use libGL.so.1.5.xxx ... because it's more cool :) ).

Hooray, now I have blender3d compiled and working. Albeit the menus are slow... Just placed radeon_dri.so in place of r200_dri.so ... and I got transparent menus! Wow! The only major issue with it is that the 3D objects are not displayed :). So it's better to have slow menus than to have no 3d viewports. The libGL is now unable to find some visuals, but it's still better than nothing. Gosh, i had 2 months of non-accelerated X11, without any notice... :)

The next major battle will be for OpenOffice.
Posted in Uncategorized
Views 1072 Comments 0
« Prev     Main     Next »

  



All times are GMT -5. The time now is 03:57 PM.

Main Menu

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration