Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
501 views
in Technique[技术] by (71.8m points)

linux - How to install x265 with numa on ubuntu 12.04

I'm trying to install x265 with option libnuma enabled on ubuntu 12.04. then I got this error:

/home/vagrant/workspace/tests/x265_2.0/source/common/threadpool.cpp: In static member function ‘static x265::ThreadPool* x265::ThreadPool::allocThreadPools(x265_param*, int&)’:
/home/vagrant/workspace/tests/x265_2.0/source/common/threadpool.cpp:285:61: error: ‘numa_bitmask_weight’ was not declared in this scope
                 cpusPerNode[i] = numa_bitmask_weight(bitMask);
                                                             ^
make[2]: *** [common/CMakeFiles/common.dir/threadpool.cpp.o] Error 1
make[1]: *** [common/CMakeFiles/common.dir/all] Error 2
make: *** [all] Error 2

I checked all numa.h header files on machine but didn't find any one contained numa_bitmask_weight. can someone help me find what's wrong with it?

this is my option:

 BIN_INSTALL_DIR                  bin                                                                                                                        
 CHECKED_BUILD                    OFF                                                                                                                        
 CMAKE_BUILD_TYPE                 Release                                                                                                                    
 CMAKE_INSTALL_PREFIX             /home/vagrant/workspace/tests/output/x265_v2.0                                                                             
 DETAILED_CU_STATS                OFF                                                                                                                        
 ENABLE_AGGRESSIVE_CHECKS         OFF                                                                                                                        
 ENABLE_ASSEMBLY                  OFF                                                                                                                        
 ENABLE_CLI                       ON                                                                                                                         
 ENABLE_LIBNUMA                   ON                                                                                                                         
 ENABLE_PIC                       ON                                                                                                                         
 ENABLE_PPA                       OFF                                                                                                                        
 ENABLE_SHARED                    ON                                                                                                                         
 ENABLE_VTUNE                     OFF                                                                                                                        
 FSANITIZE                                                                                                                                                   
 HG_EXECUTABLE                    /usr/bin/hg                                                                                                                
 HIGH_BIT_DEPTH                   OFF                                                                                                                        
 LIBDL                            /usr/lib/x86_64-linux-gnu/libdl.so                                                                                         
 LIB_INSTALL_DIR                  lib                                                                                                                        
 NO_ATOMICS                       OFF                                                                                                                        
 NUMA_ROOT_DIR                    /usr                                                                                                                       
 STATIC_LINK_CRT                  OFF                                                                                                                        
 WARNINGS_AS_ERRORS               OFF                                                                                                                        
 YASM_EXECUTABLE                  YASM_EXECUTABLE-NOTFOUND  

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...