Stream: Google Summer of Code

Topic: appleseed-help


view this post on Zulip Abhiram (Aug 23 2023 at 18:31):

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

view this post on Zulip Daniel Rossberg (Aug 24 2023 at 12:37):

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?

view this post on Zulip Abhiram (Aug 25 2023 at 05:24):

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

view this post on Zulip Abhiram (Aug 26 2023 at 13:24):

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!

view this post on Zulip Daniel Rossberg (Aug 26 2023 at 14:08):

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.

view this post on Zulip Abhiram (Aug 26 2023 at 17:44):

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: Oct 09 2024 at 00:44 UTC