1

I have the following problem: enter image description here

G:\Programs\Soft\Coding\C\VisualStudio\Coders\rellume>meson build
The Meson build system
Version: 1.0.0
Source dir: G:\Programs\Soft\Coding\C\VisualStudio\Coders\rellume
Build dir: G:\Programs\Soft\Coding\C\VisualStudio\Coders\rellume\build
Build type: native build
Project name: rellume
Project version: undefined
C compiler for the host machine: cl (msvc 19.31.31107 "Microsoft (R) C/C++ Optimizing Compiler Version 19.31.31107 for x64")
C linker for the host machine: link link 14.31.31107.0
C++ compiler for the host machine: cl (msvc 19.31.31107 "Microsoft (R) C/C++ Optimizing Compiler Version 19.31.31107 for x64")
C++ linker for the host machine: link link 14.31.31107.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
meson.build:14: WARNING: Project targets '>=0.49' but uses feature introduced in '0.52.0': include_type arg in dependency.
llvm-config found: NO need ['>=12', '<16']
Run-time dependency LLVM found: NO (tried config-tool)
meson.build:19: WARNING: Project targets '>=0.49' but uses feature introduced in '0.52.0': include_type arg in dependency.
llvm-config found: NO need ['>=12', '<16']
Run-time dependency LLVM found: NO (tried config-tool)

meson.build:17:2: ERROR: Dependency "llvm" not found, tried config-tool

A full log can be found at G:\Programs\Soft\Coding\C\VisualStudio\Coders\rellume\build\meson-logs\meson-log.txt
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.

I understand that meson does not see LLVM-Config, how can I prescribe a path to it through meson? I'm trying to compile this: https://github.com/aengelke/rellume

I apologize for the stupid questions, but I used to deal only with cmake and in cmake you can register -DLLVM_DIR="" - everything, specifying the path to LLVM itself, everything will work for me, but how can I specify the same path in meson or how can I compile the project above in meson?

OSPFv3
  • 33
  • 5
  • [Why should I not upload images of code/data/errors?](https://meta.stackoverflow.com/questions/285551/why-should-i-not-upload-images-of-code-data-errors) Please copy-paste text *as text* into your questions. – Some programmer dude Jan 17 '23 at 11:58
  • I'll do it now. – OSPFv3 Jan 17 '23 at 12:03
  • Your title ask one question ("How to generate a Visual Studio solution?") while the body of your question ask something completely different ("How to use `llvm-config` from Meson?"). Please make sure that the title is a short summary of the actual question or the problem you have. – Some programmer dude Jan 17 '23 at 12:52
  • @Some programmer dude meson gives an error. It is necessary that there is no error and after that everything will be generated through ninja – OSPFv3 Jan 17 '23 at 14:21
  • @OSPFv3 did you install or build LLVM on your own? – Elvis Oric Jan 31 '23 at 20:34
  • @ElvisOric yes. I solved the problem by installing meson + llvm in msys2 and llvm was automatically picked up from msys2 – OSPFv3 Feb 01 '23 at 03:22
  • @OSPFv3 Maybe you can answer your own question, it might be helpful for others. – Elvis Oric Feb 01 '23 at 08:10

0 Answers0