<div dir="ltr"><div class="gmail_extra">Hi Reepca,</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I want to compile llvmpipe and get a nice, shiny, libGL.so that I can<br>
toss on another machine I have little control over</blockquote><div><br></div><div>This is a pretty typical use case and a well exercised one so you should be in well-tested waters here.<br></div><div><br></div> <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">ran ./configure, ran "make linux-llvm" like<br>
the instructions said, and got the message<br>
<br>
make: *** No rule to make target 'llvm-linux'.  Stop.<br></blockquote><div><br></div><div>Just 'make' with no target name should be sufficient.  <br></div><div><br></div><div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
- How to get a statically-linked libGL.so when building with make<br></blockquote><div><br></div><div>You'll need to clarify that some.  libGL.so is by it's very nature a shared library so static doesn't apply there.  If you mean a fully static library, i.e. libGL.a, then you--enable-static shoudl do that.  However, I suspect what you actually want is to compile in the llvm libraries statically and still get a shared libGL.so.  In that case, I believe --disable-llvm-shared-libs is what you're looking for.  I typically use the following configuration for a bare-bones libGL.so with llvmpipe (these are the binaries we ship with ParaView):</div><div><br></div><div><span style="font-family:monospace,monospace">$ ./configure \<br></span></div><div><span style="font-family:monospace,monospace">  --prefix=<INSTALL_DIR>                                    \<br>  --enable-opengl --disable-gles1 --disable-gles2           \<br>  --disable-va --disable-gbm --disable-xvmc --disable-vdpau \<br>  --enable-shared-glapi                                     \<br>  --disable-dri --with-dri-drivers=                         \<br>  --enable-llvm --disable-llvm-shared-libs                  \<br>  --with-gallium-drivers=swrast                             \<br>  --disable-egl --disable-gbm                               \<br>  --disable-gallium-osmesa --enable-glx --with-platforms=x11<br></span></div><div><br></div><div>Some of those options are automatic but I like to be explicit with them so know for sure how they'll end up configuring.  The end result is a libGL.so with relatively few dependencies that should be available just about everywhere at runtime:</div><div><span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace">$ readelf -d libGL.so<br></span></div><div><span style="font-family:monospace,monospace">[chuck.atkins@hal9000 lib]$ readelf -d libGL.so<br><br>Dynamic section at offset 0x180aac8 contains 39 entries:<br>  Tag        Type                         Name/Value<br> 0x0000000000000001 (NEEDED)             Shared library: [libX11.so.6]<br> 0x0000000000000001 (NEEDED)             Shared library: [libXext.so.6]<br> 0x0000000000000001 (NEEDED)             Shared library: [libxcb.so.1]<br> 0x0000000000000001 (NEEDED)             Shared library: [librt.so.1]<br> 0x0000000000000001 (NEEDED)             Shared library: [libdl.so.2]<br> 0x0000000000000001 (NEEDED)             Shared library: [libtinfo.so.6]<br> 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]<br> 0x0000000000000001 (NEEDED)             Shared library: [libz.so.1]<br> 0x0000000000000001 (NEEDED)             Shared library: [libstdc++.so.6]<br> 0x0000000000000001 (NEEDED)             Shared library: [libm.so.6]<br> 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]<br> 0x0000000000000001 (NEEDED)             Shared library: [ld-linux-x86-64.so.2]<br> 0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]</span><br>...</div><div><br></div><div>I also typically build on a RHEL6 mahcine wth GCC4.9, and then the resulting binary seems to be able to work everywhere (RHEL7, Ubuntu, SLES, etc.).</div><div><br></div><div>- Chuck<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
- How to build llvmpipe with make<br>
- Most importantly, where can I find up-to-date information about this<br>
stuff if not at <a href="http://mesa3d.org" rel="noreferrer" target="_blank">mesa3d.org</a>?<br>
<br>
Thanks.<br>
______________________________<wbr>_________________<br>
mesa-users mailing list<br>
<a href="mailto:mesa-users@lists.freedesktop.org">mesa-users@lists.freedesktop.<wbr>org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-users" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-users</a><br>
</blockquote></div><br></div></div>