LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-23-2019, 03:42 PM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 12,389

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Meson: Compiling Mesa?


Bad news folks

Mesa project has switched to meson to build it. I am trying to figure out what to do with mesa, and it's a bit like starting riding horses in a steeplechase :-/.

I compiled Mesa-19.0.8 yesterday. I used 2 consoles in the mesa directory. In 1, I did the './configure --help |less' and in the other, I did the configure. It ended something like
Code:
./configure --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc--with-gnu-ld  --with-gallium-drivers=[list] --with-dri-drivers=[list] --with-vulkan-drivers=[list]
make -j2
make DESTDIR=/tmp/pack install
Now from https://mesonbuild.com/Builtin-options.html I get some simple options but how the <expletive> am I going to get something like that out of meson?

Last edited by business_kid; 07-23-2019 at 04:08 PM.
 
Old 07-23-2019, 05:29 PM   #2
individual
Member
 
Registered: Jul 2018
Posts: 315
Blog Entries: 1

Rep: Reputation: 232Reputation: 232Reputation: 232
It's not as bad as you think. I've had to modify several SlackBuilds to use Meson, and it isn't so bad. The configuration options are almost all the same as traditional configuration options.
Code:
meson build
meson configure --[OPTIONS]
ninja -C build
meson install -C build
EDIT: You can also take a look at how it's built in -current here.

Last edited by individual; 07-23-2019 at 05:38 PM.
 
Old 07-24-2019, 12:16 PM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 12,389

Original Poster
Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Thanks, individual.

Personally, I had no confidence that
  1. It would pick up on the /usr/lib & /usr/lib64 thing
  2. I could install it to a $DESTDIR
  3. I would be able to leave out the heavyweight Radeon & Nouveau directories which I don't need on my laptop
  4. That it could even get the cpu optimisations right. I don't want to do it.

When I look at what the current Mesa maintainer has done, he appears to have no confidence in it either. He has put in a 206 line script which clearly implies meson cannot be trusted. Gnu Autotools had some level of cop on, and good help and feedback.

I was at the stage where I had hacked into mesa_options.txt, and was able to specify what directories I wanted to build, and I could get the command-line options to handle the prefrix & libdir, but was looking for the rest and had given up reading verbiage for one day. There's no torch burning under my a** these days, so personal preference can assert itself.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cross Compiling with Meson sr_ls_boy Linux From Scratch 3 05-30-2019 04:52 AM
[SOLVED] Which package should provide ninja and meson? Lennie Linux From Scratch 6 12-29-2017 03:01 AM
[SOLVED] Meson sr_ls_boy Linux From Scratch 4 10-07-2017 06:52 AM
LXer: The Road to GTK+ 4 Continues, New Milestone Adds Initial OS X and Meson Support LXer Syndicated Linux News 0 05-24-2017 08:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:47 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