You are not logged in.

#1 2014-01-20 00:33:35

numasan
Member
Registered: 2009-11-13
Posts: 26

[SOLVED] LLVM and ncursesw

Hola,

I compile Blender from source and have for years. Lately (couple of weeks) I'm getting this error:

Linking CXX executable ../../bin/blender
/usr/bin/ld: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../lib/libLLVMSupport.a(Process.o): undefined reference to symbol 'setupterm'
/usr/lib/libncursesw.so.5: error adding symbols: DSO missing from command line

If I run 'llvm-config --ldflags' it returns:

-L/usr/lib  -lz -lpthread -lffi -lcurses -ldl -lm

Shouldn't '-lcursesw' be included here..?

The compilation completes if I disable LLVM in the cmake config, but I'd rather leave it on for OSL support.

Versions:
llvm-3.4-1
ncurses-5.9-6

Any help would be appreciated! Thanks

Last edited by numasan (2014-02-06 22:21:28)

Offline

#2 2014-02-06 17:27:14

Sanne
Member
Registered: 2012-03-13
Posts: 87

Re: [SOLVED] LLVM and ncursesw

Hi, I just had the same problem and managed to solve it. Some weeks ago llvm got updated to version 3.4, and the PKGBUILD of Arch's official Blender got adjusted.

Turns out I had to add

-DWITH_LLVM=ON \
-DLLVM_VERSION=3.4 \
-DLLVM_STATIC=OFF

to my cmake command line, rerun cmake and rebuild. I made a new build directory, just to be safe. Works fine.

Hope it helps you also, good luck.

Last edited by Sanne (2014-02-06 17:45:19)


If our currency were not money but appreciation and acknowledgement for what we do for others, for the community, for the benefit of all, we would have paradise on earth.

Offline

#3 2014-02-06 22:20:52

numasan
Member
Registered: 2009-11-13
Posts: 26

Re: [SOLVED] LLVM and ncursesw

Thank you Sanne! That was it smile

Offline

#4 2014-02-07 00:38:30

Sanne
Member
Registered: 2012-03-13
Posts: 87

Re: [SOLVED] LLVM and ncursesw

Ah great! You're welcome smile


If our currency were not money but appreciation and acknowledgement for what we do for others, for the community, for the benefit of all, we would have paradise on earth.

Offline

Board footer

Powered by FluxBB