2016-08-26 8 views
1

나는 우분투 16.04에서 boost.numpy를 설치하려고합니다. 나는이 오류에 직면하고 cmake를 수행 한 후 boost.numpyboost_python3 우분투에서 누락 16.04

**git clone https://github.com/ndarray/Boost.NumPy.git 
cd Boost.NumPy && mkdir build && cd build 
cmake -DPYTHON_LIBRARY=$HOME/anaconda3/lib/libpython3.5m.so ../** 

를 설치하려면 다음 commnads을 시도 :

감지 아키텍처 'x86_64의'도

-- Using Python3 

    CMake Error at /usr/share/cmake-3.5/Modules/FindBoost.cmake:1677 (message): 
     Unable to find the requested Boost libraries. 

    Boost version: 1.59.0 
    Boost include path: /home/sumit/Documents/Software/boost_1_59_0 
    Could not find the following static Boost libraries: 

      boost_python3 

    No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the 
    directory containing Boost libraries or BOOST_ROOT to the location of 
    Boost. 
Call Stack (most recent call first): 
    CMakeLists.txt:48 (find_package) 


Boost Paths: 
Include : /home/sumit/Documents/Software/boost_1_59_0 
**Libraries**: /home/sumit/Documents/Software/boost_1_59_0/libs 
Configuring incomplete, errors occurred! 

페이지의 "/ 홈/SUMIT/문서/Software/Boost.NumPy/build/CMakeFiles/CMakeOutput.log "를 참조하십시오.

이전에는 boost 라이브러리를 찾을 수 없었으므로 CmakeList.txt 라이브러리 경로를 boost_1_59_0 lib 경로의 경로로 수동으로 변경했습니다. 이 경로는 내가 cmake 할 때 라이브러리 옵션에서 나온다. 하지만 여전히 boost_python3가 없습니다. 나는 내가 시도한 것이 구글에 불과하다는 새로운 점이다. 도와주세요. 부스트 우분투 라이브러리 이름에

+0

는 개발 버전을 사용하려고 또는 공식 출시 버전? –

답변

1

은 다음과 같습니다 libboost_python, libboost_python-py35, 또는 libboost_python-py27

cmake 당신이 python-35 대신 python3로 참조해야합니다 것을 의미한다. 양자 택일로, 당신은 CMakeLists.txt 당신이 심볼릭 링크를 만들 수 있습니다 제어하지 않는 경우 : /usr/lib/x86_64-linux-gnu/libboost_python-py35.so - 내 CMakeLists.txt 파일에서>/usr/lib/x86_64-linux-gnu/libboost_python3.so

나는 다음과 같습니다

if(UNIX) 
    set(BOOST_PYTHONLIB python-py35) 
else() 
    set(BOOST_PYTHONLIB python3) 
endif() 

find_package (Boost 1.58 REQUIRED COMPONENTS 
    coroutine 
    context 
    filesystem 
    program_options 
    system 
    thread 
    ${BOOST_PYTHONLIB} 
    chrono 
    ) 
관련 문제