face_swap icon indicating copy to clipboard operation
face_swap copied to clipboard

Face Swap cmake error

Open 14211019 opened this issue 5 years ago • 5 comments

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 avatar Apr 03 '19 12:04 14211019

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

14211019 avatar Apr 03 '19 14:04 14211019

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

sunxiaochuanpr avatar Apr 04 '19 01:04 sunxiaochuanpr

@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

ecilay avatar Apr 24 '19 20:04 ecilay

Have you solved this problem?

ailias avatar Nov 29 '19 07:11 ailias

Anyone had any success with this?

sasanrose avatar Apr 14 '20 09:04 sasanrose