I am trying to build OSL shared libs locally for appleseed ( I have built a compatible version of LLVM before this). No matter what I do the OSL is unable to find the built LLVM libs.
It gives me this error when I do so,
Error
i've been at this for a while now and I am unable to figure out what to do.
I have tried multiple flags for the CMake command, here is what the make help
command for OSL returns
LLVM-related options:
LLVM_VERSION=4.0 Specify which LLVM version to use
LLVM_DIRECTORY=xx Specify where LLVM lives
LLVM_NAMESPACE=xx Specify custom LLVM namespace
LLVM_STATIC=1 Use static LLVM libraries
USE_LLVM_BITCODE=0 Don't generate embedded LLVM bitcode
USE_BOOST_WAVE=1 Force boost wave rather than clang preprocessor
It's a while ago, since I successfully build OSL. Therefore, I cannot help with a success story. But, did you had a look at the CMake GUI? Do the values make sense there?
No, I haven't used the CMake GUI yet. I have been trying to use CMake CLI flags itself. Will try and build it using GUI
I started from scratch by building LLVM libs again, now I used CMake GUI to set it up. OSL is able to detect LLVM after some modifications!
The point with using the CMake GUI is not that it generates different makefiles, but it shows you all options with their values. There you can look for suspicious ones.
Yes got it. Seeing all the options definitely helped me get a clear picture, maybe the re-building fixed the issue because values seemed correct to me in the GUI
Last updated: Nov 15 2024 at 00:49 UTC