[Bf-committers] Build problem with OpenShadingLanguage

tom tomjpsun at gmail.com
Wed May 13 09:56:27 CEST 2015


Hi :
I am a newbie here. I build blender with this command:

./blender/build_files/build_environment/install_deps.sh

under Debian (Wheezy) and encounter this error:

[ 88%] Building CXX object src/liboslexec/CMakeFiles/llvmutil_test.dir/llvmutil_test.cpp.o
[ 89%] [ 92%] [ 92%] Building CXX object src/liboslexec/CMakeFiles/accum_test.dir/accum_test.cpp.o
Building CXX object src/testshade/CMakeFiles/testshade.dir/testshade.cpp.o
Building CXX object src/testshade/CMakeFiles/libtestshade.dir/testshade.cpp.o
Linking CXX executable llvmutil_test
liboslexec.so: undefined reference to `set_curterm'
liboslexec.so: undefined reference to `del_curterm'
liboslexec.so: undefined reference to `tigetnum'
liboslexec.so: undefined reference to `setupterm'
collect2: error: ld returned 1 exit status
make[2]: *** [src/liboslexec/llvmutil_test] Error 1
make[1]: *** [src/liboslexec/CMakeFiles/llvmutil_test.dir/all] Error 2

After some searching, it may be worked-around by adding the “-ltinfo” linker flag, like this page said
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741486 <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741486>

But how do I add the flag? I get the same error by adding :

SET(GCC_COVERAGE_LINK_FLAGS    "-ltinfo")
SET( CMAKE_EXE_LINKER_FLAGS  "${CMAKE_EXE_LINKER_FLAGS} ${GCC_COVERAGE_LINK_FLAGS}” )

to CMakeLists.txt either under blender source or ~/src/blender-deps/OpenShadingLanguage-1.5.11/ 

The blender source is git commit (7969b23), the LLVM is 3.4.



More information about the Bf-committers mailing list