[Mesa-dev] Trying to build a opencl dev env

Pierre Moreau dev at pmoreau.org
Tue Apr 27 07:00:42 UTC 2021

Hello Luke,

If you set `PKG_CONFIG_PATH=$PATH_TO_LIBCLC_INSTALL/share/pkgconfig` when
running meson, it should pick that version instead of the system one.

I run it as `PKG_CONFIG_PATH=[…] meson setup […]`; it might also be possible to
pass it as an argument instead, I do not know.


On 2021-04-26 — 23:36, Luke A. Guest wrote:
> Hi,
> So, I've built a generic LLVM tree for mesa and other projects and installed
> it alongside SPIRV-LLVM-Translator into $HOME/opt/llvm-dev-reldebug.
> I have installed libclc there too, although it wouldn't build as part of
> llvm and make install wouldn't install to the same llvm dir for some reason.
> Now onto mesa, I cannot get this thing to build. It fails right at the start
> with the following error:
> ninja: Entering directory `../builds/mesa-reldebug/'
> ninja: error: '/usr/share/clc/spirv-mesa3d-.spv', needed by
> 'src/compiler/nir/spirv-mesa3d-.spv.zstd', missing and no known rule to make
> it
> It's looking int he wrong place for the clc files, which are in the above
> llvm dir. How do you specify where they are with this meson thing?
> Thanks,
> Luke.
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20210427/18943cec/attachment.sig>

More information about the mesa-dev mailing list