llvm native


Damien LEFEVRE
 

Hi, 

I'm trying to build a native package which uses llvm. I never used llvm before, so time to learn

I've added 
DEPENDS += "llvm-native"

to my recipe but I still get errors

LLVM_CONFIG:
| CMake Error at data/shiboken_helpers.cmake:146 (message):
|   Unable to detect CLANG location by checking LLVM_INSTALL_DIR,
|   CLANG_INSTALL_DIR or running llvm-config.
| Call Stack (most recent call first):
|   CMakeLists.txt:37 (setup_clang)

I looked at the llvm_git.bb file
do_install_class-native() {
install -D -m 0755 ${B}/bin/llvm-tblgen ${D}${bindir}/llvm-tblgen${PV}
install -D -m 0755 ${B}/bin/llvm-config ${D}${bindir}/llvm-config${PV}
install -D -m 0755 ${B}/lib/libLLVM-${MAJOR_VERSION}.so ${D}${libdir}/libLLVM-${MAJOR_VERSION}.so
}

so I would expect to see llvm-config8.0.0 in the recipe-sysroot-native/usr/bin/ inside my package folder but nothing llvm related.

What am I missing?
Thanks,

Join yocto@lists.yoctoproject.org to automatically receive all group messages.