How to install Mesa from source?
How to install Mesa from source code in Ubuntu 18.04?
I downloaded mesa-18.1.3.tar.xz from here ftp://ftp.freedesktop.org/pub/mesa/ then extracted it, then in the directory with the sources did the following.
./configure —with-llvm-prefix=/usr/lib/llvm-7// —with-gallium-drivers=radeonsi —with-dri-drivers=radeon
make
sudo make install
It was built with no errors.
However inxi -Fxz still says I'm using old mesa. Even after reboot. I also tried using checkinstall instead of make install, but it changed nothing.
Graphics: Card: Advanced Micro Devices [AMD/ATI] Vega [Radeon Vega 8 Mobile] bus-ID: 38:00.0
Display Server: x11 (X.Org 1.19.6 ) drivers: ati,amdgpu (unloaded: modesetting,fbdev,vesa,radeon)
Resolution: 1920x1080@60.00hz
OpenGL: renderer: AMD RAVEN (DRM 3.25.0 / 4.17.2-041702-generic, LLVM 6.0.0)
version: 4.5 Mesa 18.0.0-rc5 Direct Render: Yes
I want source built mesa to be used instead of one shipped with Ubuntu.
apt 18.04 radeon mesa
add a comment |
How to install Mesa from source code in Ubuntu 18.04?
I downloaded mesa-18.1.3.tar.xz from here ftp://ftp.freedesktop.org/pub/mesa/ then extracted it, then in the directory with the sources did the following.
./configure —with-llvm-prefix=/usr/lib/llvm-7// —with-gallium-drivers=radeonsi —with-dri-drivers=radeon
make
sudo make install
It was built with no errors.
However inxi -Fxz still says I'm using old mesa. Even after reboot. I also tried using checkinstall instead of make install, but it changed nothing.
Graphics: Card: Advanced Micro Devices [AMD/ATI] Vega [Radeon Vega 8 Mobile] bus-ID: 38:00.0
Display Server: x11 (X.Org 1.19.6 ) drivers: ati,amdgpu (unloaded: modesetting,fbdev,vesa,radeon)
Resolution: 1920x1080@60.00hz
OpenGL: renderer: AMD RAVEN (DRM 3.25.0 / 4.17.2-041702-generic, LLVM 6.0.0)
version: 4.5 Mesa 18.0.0-rc5 Direct Render: Yes
I want source built mesa to be used instead of one shipped with Ubuntu.
apt 18.04 radeon mesa
Dotype -a mesa- perhaps the obsoletemesais in a directory that's earlier in yourPATHthan the newermesa.
– waltinator
Jul 7 '18 at 13:41
It says command "mesa" isn't found.
– havon
Jul 7 '18 at 17:29
AFAIK there's no such command at all, because Mesa is a library rather than a program.
– havon
Jul 7 '18 at 17:51
add a comment |
How to install Mesa from source code in Ubuntu 18.04?
I downloaded mesa-18.1.3.tar.xz from here ftp://ftp.freedesktop.org/pub/mesa/ then extracted it, then in the directory with the sources did the following.
./configure —with-llvm-prefix=/usr/lib/llvm-7// —with-gallium-drivers=radeonsi —with-dri-drivers=radeon
make
sudo make install
It was built with no errors.
However inxi -Fxz still says I'm using old mesa. Even after reboot. I also tried using checkinstall instead of make install, but it changed nothing.
Graphics: Card: Advanced Micro Devices [AMD/ATI] Vega [Radeon Vega 8 Mobile] bus-ID: 38:00.0
Display Server: x11 (X.Org 1.19.6 ) drivers: ati,amdgpu (unloaded: modesetting,fbdev,vesa,radeon)
Resolution: 1920x1080@60.00hz
OpenGL: renderer: AMD RAVEN (DRM 3.25.0 / 4.17.2-041702-generic, LLVM 6.0.0)
version: 4.5 Mesa 18.0.0-rc5 Direct Render: Yes
I want source built mesa to be used instead of one shipped with Ubuntu.
apt 18.04 radeon mesa
How to install Mesa from source code in Ubuntu 18.04?
I downloaded mesa-18.1.3.tar.xz from here ftp://ftp.freedesktop.org/pub/mesa/ then extracted it, then in the directory with the sources did the following.
./configure —with-llvm-prefix=/usr/lib/llvm-7// —with-gallium-drivers=radeonsi —with-dri-drivers=radeon
make
sudo make install
It was built with no errors.
However inxi -Fxz still says I'm using old mesa. Even after reboot. I also tried using checkinstall instead of make install, but it changed nothing.
Graphics: Card: Advanced Micro Devices [AMD/ATI] Vega [Radeon Vega 8 Mobile] bus-ID: 38:00.0
Display Server: x11 (X.Org 1.19.6 ) drivers: ati,amdgpu (unloaded: modesetting,fbdev,vesa,radeon)
Resolution: 1920x1080@60.00hz
OpenGL: renderer: AMD RAVEN (DRM 3.25.0 / 4.17.2-041702-generic, LLVM 6.0.0)
version: 4.5 Mesa 18.0.0-rc5 Direct Render: Yes
I want source built mesa to be used instead of one shipped with Ubuntu.
apt 18.04 radeon mesa
apt 18.04 radeon mesa
asked Jul 7 '18 at 10:58
havonhavon
212
212
Dotype -a mesa- perhaps the obsoletemesais in a directory that's earlier in yourPATHthan the newermesa.
– waltinator
Jul 7 '18 at 13:41
It says command "mesa" isn't found.
– havon
Jul 7 '18 at 17:29
AFAIK there's no such command at all, because Mesa is a library rather than a program.
– havon
Jul 7 '18 at 17:51
add a comment |
Dotype -a mesa- perhaps the obsoletemesais in a directory that's earlier in yourPATHthan the newermesa.
– waltinator
Jul 7 '18 at 13:41
It says command "mesa" isn't found.
– havon
Jul 7 '18 at 17:29
AFAIK there's no such command at all, because Mesa is a library rather than a program.
– havon
Jul 7 '18 at 17:51
Do
type -a mesa - perhaps the obsolete mesa is in a directory that's earlier in your PATH than the newer mesa.– waltinator
Jul 7 '18 at 13:41
Do
type -a mesa - perhaps the obsolete mesa is in a directory that's earlier in your PATH than the newer mesa.– waltinator
Jul 7 '18 at 13:41
It says command "mesa" isn't found.
– havon
Jul 7 '18 at 17:29
It says command "mesa" isn't found.
– havon
Jul 7 '18 at 17:29
AFAIK there's no such command at all, because Mesa is a library rather than a program.
– havon
Jul 7 '18 at 17:51
AFAIK there's no such command at all, because Mesa is a library rather than a program.
– havon
Jul 7 '18 at 17:51
add a comment |
2 Answers
2
active
oldest
votes
If you want to use stable and latest Mesa drivers, I suggest you to use PPA
sudo add-apt-repository ppa:paulo-miguel-dias/pkppa
sudo apt-get update
sudo apt-get install mesa
I wanted to test Mesa built with unstable LLVM 7.0 so building from source was the only way to do it. I had random crashes of graphics, but the culprit turn out to be amdgpu, not Mesa. It seems to be fixed in Linux 4.19.
– havon
Oct 14 '18 at 12:47
add a comment |
./autogen.sh --prefix=/usr --enable-texture-float --libdir=/usr/lib/x86_64-linux-gnu/ --with-gallium-drivers=r300,r600,radeonsi,swrast --with-egl-platforms=drm,x11 --enable-glx-tls --enable-shared-glapi --enable-glx --enable-driglx-direct --enable-gles1 --enable-gles2 --enable-gbm --enable-openmax --enable-xa --enable-osmesa --with-radeonsi-llvm-compiler --enable-sysfs --enable-vdpau --enable-xvmc --enable-openmax --enable-nine
make -j5
sudo make install
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1052959%2fhow-to-install-mesa-from-source%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
If you want to use stable and latest Mesa drivers, I suggest you to use PPA
sudo add-apt-repository ppa:paulo-miguel-dias/pkppa
sudo apt-get update
sudo apt-get install mesa
I wanted to test Mesa built with unstable LLVM 7.0 so building from source was the only way to do it. I had random crashes of graphics, but the culprit turn out to be amdgpu, not Mesa. It seems to be fixed in Linux 4.19.
– havon
Oct 14 '18 at 12:47
add a comment |
If you want to use stable and latest Mesa drivers, I suggest you to use PPA
sudo add-apt-repository ppa:paulo-miguel-dias/pkppa
sudo apt-get update
sudo apt-get install mesa
I wanted to test Mesa built with unstable LLVM 7.0 so building from source was the only way to do it. I had random crashes of graphics, but the culprit turn out to be amdgpu, not Mesa. It seems to be fixed in Linux 4.19.
– havon
Oct 14 '18 at 12:47
add a comment |
If you want to use stable and latest Mesa drivers, I suggest you to use PPA
sudo add-apt-repository ppa:paulo-miguel-dias/pkppa
sudo apt-get update
sudo apt-get install mesa
If you want to use stable and latest Mesa drivers, I suggest you to use PPA
sudo add-apt-repository ppa:paulo-miguel-dias/pkppa
sudo apt-get update
sudo apt-get install mesa
answered Oct 13 '18 at 10:37
blaisckblaisck
11013
11013
I wanted to test Mesa built with unstable LLVM 7.0 so building from source was the only way to do it. I had random crashes of graphics, but the culprit turn out to be amdgpu, not Mesa. It seems to be fixed in Linux 4.19.
– havon
Oct 14 '18 at 12:47
add a comment |
I wanted to test Mesa built with unstable LLVM 7.0 so building from source was the only way to do it. I had random crashes of graphics, but the culprit turn out to be amdgpu, not Mesa. It seems to be fixed in Linux 4.19.
– havon
Oct 14 '18 at 12:47
I wanted to test Mesa built with unstable LLVM 7.0 so building from source was the only way to do it. I had random crashes of graphics, but the culprit turn out to be amdgpu, not Mesa. It seems to be fixed in Linux 4.19.
– havon
Oct 14 '18 at 12:47
I wanted to test Mesa built with unstable LLVM 7.0 so building from source was the only way to do it. I had random crashes of graphics, but the culprit turn out to be amdgpu, not Mesa. It seems to be fixed in Linux 4.19.
– havon
Oct 14 '18 at 12:47
add a comment |
./autogen.sh --prefix=/usr --enable-texture-float --libdir=/usr/lib/x86_64-linux-gnu/ --with-gallium-drivers=r300,r600,radeonsi,swrast --with-egl-platforms=drm,x11 --enable-glx-tls --enable-shared-glapi --enable-glx --enable-driglx-direct --enable-gles1 --enable-gles2 --enable-gbm --enable-openmax --enable-xa --enable-osmesa --with-radeonsi-llvm-compiler --enable-sysfs --enable-vdpau --enable-xvmc --enable-openmax --enable-nine
make -j5
sudo make install
add a comment |
./autogen.sh --prefix=/usr --enable-texture-float --libdir=/usr/lib/x86_64-linux-gnu/ --with-gallium-drivers=r300,r600,radeonsi,swrast --with-egl-platforms=drm,x11 --enable-glx-tls --enable-shared-glapi --enable-glx --enable-driglx-direct --enable-gles1 --enable-gles2 --enable-gbm --enable-openmax --enable-xa --enable-osmesa --with-radeonsi-llvm-compiler --enable-sysfs --enable-vdpau --enable-xvmc --enable-openmax --enable-nine
make -j5
sudo make install
add a comment |
./autogen.sh --prefix=/usr --enable-texture-float --libdir=/usr/lib/x86_64-linux-gnu/ --with-gallium-drivers=r300,r600,radeonsi,swrast --with-egl-platforms=drm,x11 --enable-glx-tls --enable-shared-glapi --enable-glx --enable-driglx-direct --enable-gles1 --enable-gles2 --enable-gbm --enable-openmax --enable-xa --enable-osmesa --with-radeonsi-llvm-compiler --enable-sysfs --enable-vdpau --enable-xvmc --enable-openmax --enable-nine
make -j5
sudo make install
./autogen.sh --prefix=/usr --enable-texture-float --libdir=/usr/lib/x86_64-linux-gnu/ --with-gallium-drivers=r300,r600,radeonsi,swrast --with-egl-platforms=drm,x11 --enable-glx-tls --enable-shared-glapi --enable-glx --enable-driglx-direct --enable-gles1 --enable-gles2 --enable-gbm --enable-openmax --enable-xa --enable-osmesa --with-radeonsi-llvm-compiler --enable-sysfs --enable-vdpau --enable-xvmc --enable-openmax --enable-nine
make -j5
sudo make install
answered Jan 5 at 13:27
havonhavon
212
212
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1052959%2fhow-to-install-mesa-from-source%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Do
type -a mesa- perhaps the obsoletemesais in a directory that's earlier in yourPATHthan the newermesa.– waltinator
Jul 7 '18 at 13:41
It says command "mesa" isn't found.
– havon
Jul 7 '18 at 17:29
AFAIK there's no such command at all, because Mesa is a library rather than a program.
– havon
Jul 7 '18 at 17:51