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

build for linux (ubuntu) #13

Open
nqzero opened this issue Apr 15, 2017 · 2 comments
Open

build for linux (ubuntu) #13

nqzero opened this issue Apr 15, 2017 · 2 comments

Comments

@nqzero
Copy link

nqzero commented Apr 15, 2017

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

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

@saikiran-siriki
Copy link

saikiran-siriki commented Nov 14, 2018

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

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

3 participants