On 9/26/19 6:01 PM, Douglas R. Reno via blfs-dev wrote:
On 9/26/19 3:39 PM, Bruce Dubbs via blfs-dev wrote:
I've been trying to build mesa-19.2.0 this afternoon and I can't get it to build.

When it tries to build libXvMCgallium.so I keep getting an error that it can't link due to undefined references that are in libXv.so.

context.c:(.text+0x2db): undefined reference to `XvQueryAdaptors'
/usr/bin/ld: context.c:(.text+0x3bc): undefined reference to `XvFreeAdaptorInfo' /usr/bin/ld: context.c:(.text+0x746): undefined reference to `XvFreeAdaptorInfo'

The command line is quite long so I won't reproduce it here, but if I add -lXv to the command line, it builds fine.  I don't seem to be able to overcome the problem with LDFLAGS, LD_LIBRARY_PATH, CFLAGS, etc.

If the command completes, then other programs have the same problem.

Can I get someone else try to duplicate the issue?

  -- Bruce


Good afternoon,

I've attempted a build of Mesa-19.2.0 here with libXvMC-1.0.11 and the build seems to complete fine. glxgears gives out the expected output as well.

With libXvMC-1.0.12 installed, I get the same problem that you do.

To fix this, I added the following right before "meson" in the meson command:

       LDFLAGS="-lXv" meson --prefix=/usr                   \
             --sysconfdir=/etc               \
             -Dvalgrind=false                \
             -Dglx=dri                       \
             -Dosmesa=gallium                \
             -Dgallium-nine=true             \
             -Ddri-drivers=$DRI_DRIVERS      \
             -Dgallium-drivers=$GALLIUM_DRV  \
             -Dplatforms=$PLATFORMS          \
             ..                              &&

There is a bug raised upstream also: https://gitlab.freedesktop.org/mesa/mesa/issues/1844

Thanks Doug. That fixes it for me. For some reason passing the LDFLAGS directly to gcc didn't want to work for me, but passing it to meson did.

  -- Bruce

--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to