YuvalNirkin / face_swap

End-to-end, automatic face swapping pipeline
GNU General Public License v3.0
825 stars 203 forks source link

Face Swap cmake error #41

Open 14211019 opened 5 years ago

14211019 commented 5 years ago

when i run the command‘cmake -DWITH_BOOST_STATIC=OFF -DBUILD_INTERFACE_PYTHON=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_APPS=ON -DBUILD_TESTS=OFF cmake -DCMAKE_INSTALL_PREFIX=~/installations/face_swap -DCMAKE_BUILD_TYPE=Release ..’

an error occurs as follow:

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

Boost version: 1.65.1

Boost include path: /usr/local/include

Could not find the following Boost libraries:

      boost_python
      boost_numpy

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): interfaces/python/CMakeLists.txt:3 (find_package)

-- Configuring incomplete, errors occurred! See also "/home/dell/face_swap/build/CMakeFiles/CMakeOutput.log". See also "/home/dell/face_swap/build/CMakeFiles/CMakeError.log".

so what can I do to deal with this problem?

14211019 commented 5 years ago

the right answer to my issue: Instead of installing boost in readme, I installed boost Python 2. For the installation process, see the compilation and installation method https://blog.csdn.net/qq_31720329/article/details/78184262 in the link below.

and the issue has been solved

sunxiaochuanpr commented 5 years ago

the right answer to my issue: Instead of installing boost in readme, I installed boost Python 2. For the installation process, see the compilation and installation method https://blog.csdn.net/qq_31720329/article/details/78184262 in the link below.

and the issue has been solved

change the python3.5 to python2.7

ecilay commented 5 years ago

@14211019 @sunxiaochuanpr could you guys kindly take a look pls? I followed the link above, but still got the same error of not finding "boost_numpy". For convience, i copied the commands here, could you suggest if these are complete:

tar -xzvf boost_1_65_1.tar.gz cd boost_1_65_1 ./bootstrap.sh --with-python=/usr/bin/python2.7 --with-python-version=2.7 --with-python-root=/usr/local/lib/python2.7 --prefix=/usr/local (i also tried without prefix) sudo ./b2 install -a --with=all sudo ldconfig

ailias commented 4 years ago

Have you solved this problem?

sasanrose commented 4 years ago

Anyone had any success with this?