LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-28-2011, 09:13 PM   #1
shonumi
LQ Newbie
 
Registered: Sep 2009
Posts: 4

Rep: Reputation: 0
Building Mesa-7.8.1 with osmesa support


I'm using Slackware 13.1, just messing around with some stuff before I upgrade to 13.37. I really want to get a decent build of Desmume working, but the 3D engine for it requires OSMesa to be enabled. I've removed the initial Mesa package that I installed from the Slackware DVD and I'm trying to recompile mesa-7.8.1 so that OSMesa is available for the system. However, I keep running into problems.

Code:
./configure --enable-gl-osmesa
When I run those options for the configure command and compile it, Mesa builds alright and gives me a working libGL just fine. It also gives me libOSMesa. Yet, when I compile Desmume to specifically use OSMesa, its configure script says that it can't find OSMesa at all. But running ldconfig -p, the output shows libOSMesa.so in /usr/lib. The symlink is up to date too, and I've recreated it several times.

Code:
./configure --with-driver=osmesa
When I build Mesa using these configure options, I don't get libGL (well, that's expected, the manual says as much will happen). But apparently libOSMesa is installed just fine. When I went to compile Desmume, no gripes about OSMesa, but Desmume needs both libGL and OSMesa to work properly.

So my question is, how can I install Mesa so that I have OpenGL and OSMesa working together? I've been able to get one working, but not both. I don't know how to get OpenGL on Slackware without using the Mesa package, but the package isn't cooperating. I'm on Intel graphics too. Thanks for any help.
 
Old 05-29-2011, 03:04 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Mesa uses libs that are installed. When you configure --with-something, often it checks for the package in /usr/lib(64)/pkgconfig. If the docs say osmesa or gl, that's probably it. Your next option would be forking the package. And remember, tricking the build system doesn't necessarily trick the code! Recent speed increase have concentrated development around certain formats and you wander away at your loss really.
 
1 members found this post helpful.
Old 05-29-2011, 07:05 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Building the libOSMesa.so.x + libGL.. seems to be a two stage action.

Please have a look into the file mesa.spec :
http://download.fedora.redhat.com/pu...6.fc13.src.rpm


I.e. first build the OSMesa stuff, then 'make clean', and configure
for the other files.
 
1 members found this post helpful.
Old 05-29-2011, 04:04 PM   #4
shonumi
LQ Newbie
 
Registered: Sep 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks business_kid and knudfl, you two have been a great help! Everything seems to be working now. As was said, Mesa building depends on currently installed libs, and the solution was indeed to do the building in two stages. In my case, I'm actually messing around with the Slackbuilds to get the configuration and compiling done. I basically created two Slackware packages: one for libGL and one for libOSMesa. Desmume built just fine with OSMesa support too, but I didn't get as much of a performance boost as I had expected. Oh well. Again, thanks for the help!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Error building Mesa 7.10.2 on Slackware 13.37, possible fix folkenfanel Slackware 1 05-03-2011 02:35 PM
LXer: An Update On The OpenGL 3 Support In Mesa LXer Syndicated Linux News 0 11-21-2010 05:10 PM
mesa-6.x claims to support OpenGL 1.5, but in my case does not in my case. qwijibow Programming 2 11-23-2006 07:14 AM
Problem Building Mesa-6.5 with glproto>1.4.6 weibullguy Linux From Scratch 3 10-05-2006 04:50 PM
Installing Mesa & Mesa-demos... bozotix Linux - Software 2 05-09-2002 12:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:56 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration