<html><head><style>pre,code,address {
  margin: 0px;
}
h1,h2,h3,h4,h5,h6 {
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}
ol,ul {
  margin-top: 0em;
  margin-bottom: 0em;
}
blockquote {
  margin-top: 0em;
  margin-bottom: 0em;
}
</style></head><body><div>Hi,</div><div><br></div><div>Le mercredi 19 juin 2024 à 12:28 +0800, 黄取值 via gstreamer-devel a écrit :</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr">Hi,<div>I used the gst-build project to compile the 1.16.2 version of gst.<br>The installation path is set to the install directory under the current directory(belonging to the user's home directory, not the system directory).</div><div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div><div style="white-space:pre" class="gmail-old-record-id-Algddm6I8oB8x9xVGd6cM8Hfnge">mkdir build
meson -Dprefix=`pwd`/install -Dbuildtype=debug -Dvaapi=enabled</div></div></blockquote></div></div></blockquote><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr"><div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div><span class="gmail-lark-record-clipboard"></span></div><br></blockquote>When installing, permissions are required:</div><div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>Installation failed due to insufficient permissions.<br>Attempt to use /usr/bin/sudo to gain elevated privileges? [y/n]<br></div></blockquote></div></div></blockquote><div><br></div><div>I believe this is because the build system want to set setuid permissions on ptp helpers. During setup, try and add:<br><br> -Dptp-helper-permissions=none</div><div><br></div><div>You can also pass --destdir (even if the same as your prefix), this will automatically skip over permissions issue and not try and be root.</div><div><br></div><div>Nicolas</div><div><br></div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr"><div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><br></blockquote>Select n to exit with an error, and select y to continue the installation.<br>What I want to know is:<br>1. The installation target is the current directory, why is sudo permission required?<br>2. Will continuing the installation after obtaining sudo permissions modify the system environment? For example, if some files are modified<br></div></div></blockquote><div><br></div><div><span></span></div></body></html>