FaceSwap icon indicating copy to clipboard operation
FaceSwap copied to clipboard

build for linux (ubuntu)

Open nqzero opened this issue 7 years ago • 2 comments

building this on ubuntu is pretty easy, but it took several tries to figure it out, so here are the instructions. i don't have a camera on my desktop (i'll test it on my laptop next week maybe)

other linux should be similar, just replace apt install as appropriate

could you add these instructions to the readme ?

# ubuntu 16.04
sudo apt install libopencv-dev liblapack-dev libdlib-dev
wget http://sourceforge.net/projects/dclib/files/dlib/v18.10/shape_predictor_68_face_landmarks.dat.bz2
bunzip2 *.bz2
ln -s /usr/share/opencv/haarcascades/haarcascade_frontalface_default.xml .

g++ -std=c++1y *.cpp $(pkg-config --libs opencv lapack) -ldlib 
./a.out

nqzero avatar Apr 15 '17 18:04 nqzero

On 17.10 I was successful only after adding libcblas-dev (apt) and then invoking a compiler like this: clang++ -std=c++1y $(pkg-config --cflags --libs opencv lapack) -ldlib -lblas *.cpp

SneakyWhoami avatar Jul 18 '18 11:07 SneakyWhoami

Had issue with building on ubuntu 16.04(with linking). This worked out for me g++ $(pkg-config --cflags) *.cpp $(pkg-config --libs opencv lapack) -ldlib -lblas -std=c++1y -o final

saikiran-siriki avatar Nov 14 '18 12:11 saikiran-siriki