Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Face Swap cmake error #41

Open
14211019 opened this issue Apr 3, 2019 · 5 comments
Open

Face Swap cmake error #41

14211019 opened this issue Apr 3, 2019 · 5 comments

Comments

@14211019
Copy link

14211019 commented Apr 3, 2019

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
Copy link
Author

14211019 commented Apr 3, 2019

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
Copy link

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
Copy link

ecilay commented Apr 24, 2019

@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

@ChiefGodMan
Copy link

Have you solved this problem?

@sasanrose
Copy link

Anyone had any success with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants