Я пытаюсь собрать какую-то ветку blender на Ubuntu 18.04, и мне нужно получить llvm / IR / IRBuilder.h
[ 81%] Building CXX object source/blender/functions/CMakeFiles/bf_functions.dir/initialize.cpp.o
In file included from /home/design/blender-git/blender/source/blender/functions/backends/llvm/llvm_types.hpp:5:0,
from /home/design/blender-git/blender/source/blender/functions/FN_llvm.hpp:4,
from /home/design/blender-git/blender/source/blender/functions/FN_all.hpp:10,
from /home/design/blender-git/blender/source/blender/functions/initialize.cpp:1:
/home/design/blender-git/blender/source/blender/functions/backends/llvm/builder.hpp:4:10: fatal error: llvm/IR/IRBuilder.h: No this file or dirrectory
#include <llvm/IR/IRBuilder.h>
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
source/blender/functions/CMakeFiles/bf_functions.dir/build.make:62: recipe for target 'source/blender/functions/CMakeFiles/bf_functions.dir/initialize.cpp.o' failed
make[2]: *** [source/blender/functions/CMakeFiles/bf_functions.dir/initialize.cpp.o] Error 1
Я установил sudo apt-get install clang-5.0 lldb-5.0 lld-5.0
из https://apt.llvm.org/но это не помогает.
Как я могу получить эту зависимость?
UPD У меня небольшой прогресс:
Я запускаю это в папке сборки
cmake -DLLVM_INCLUDE_DIRS=/usr/wherever/the/llvm/includes/are/on/your/system/ .
Это останавливает меня на следующем шаге:
[ 81%] Building CXX object source/blender/functions/CMakeFiles/bf_functions.dir/initialize.cpp.o
In file included from /home/design/blender-git/blender/source/blender/functions/backends/llvm/builder.hpp:4:0,
from /home/design/blender-git/blender/source/blender/functions/backends/llvm/llvm_types.hpp:5,
from /home/design/blender-git/blender/source/blender/functions/FN_llvm.hpp:4,
from /home/design/blender-git/blender/source/blender/functions/FN_all.hpp:10,
from /home/design/blender-git/blender/source/blender/functions/initialize.cpp:1:
/usr/include/llvm-8/llvm/IR/IRBuilder.h:18:10: fatal error: llvm-c/Types.h: Нет такого файла или каталога
#include "llvm-c/Types.h"
^~~~~~~~~~~~~~~~
compilation terminated.
source/blender/functions/CMakeFiles/bf_functions.dir/build.make:62: recipe for target 'source/blender/functions/CMakeFiles/bf_functions.dir/initialize.cpp.o' failed
make[2]: *** [source/blender/functions/CMakeFiles/bf_functions.dir/initialize.cpp.o] Error 1
CMakeFiles/Makefile2:6579: recipe for target 'source/blender/functions/CMakeFiles/bf_functions.dir/all' failed
make[1]: *** [source/blender/functions/CMakeFiles/bf_functions.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2