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

Can't compile pdlib #52

Closed
edgeofthex opened this issue Sep 29, 2022 · 3 comments
Closed

Can't compile pdlib #52

edgeofthex opened this issue Sep 29, 2022 · 3 comments

Comments

@edgeofthex
Copy link

Hello,

I'm running debian bullseye. Following the instructions in the wiki, I was able to compile dlib, but pdlib won't compile. I'm trying to compile with g++ version 10.2.1.1 . When I first ran make I got the following message:

"Dlib requires C++14 support. Give your compiler the -std=c++14 option to enable it."

I added the option to configure thusly: ./configure --enable-debug CFLAGS=-std=c++14

the present error I'm getting follows:

make

/bin/bash /usr/local/src/pdlib/libtool --mode=compile g++ -I. -I/usr/local/src/pdlib -I/usr/local/src/pdlib/include -I/usr/local/src/pdlib/main -I/usr/local/src/pdlib -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -std=c++14 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -std=c++11 -DZEND_COMPILE_DL_EXT=1 -c /usr/local/src/pdlib/pdlib.cc -o pdlib.lo -MMD -MF pdlib.dep -MT pdlib.lo
libtool: compile: g++ -I. -I/usr/local/src/pdlib -I/usr/local/src/pdlib/include -I/usr/local/src/pdlib/main -I/usr/local/src/pdlib -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -std=c++14 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -std=c++11 -DZEND_COMPILE_DL_EXT=1 -c /usr/local/src/pdlib/pdlib.cc -MMD -MF pdlib.dep -MT pdlib.lo -fPIC -DPIC -o .libs/pdlib.o
In file included from /usr/local/include/dlib/matrix/matrix_exp.h:6,
from /usr/local/include/dlib/matrix/matrix.h:6,
from /usr/local/include/dlib/matrix.h:6,
from /usr/local/include/dlib/cuda/tensor.h:8,
from /usr/local/include/dlib/dnn.h:12,
from /usr/local/src/pdlib/src/face_recognition.h:8,
from /usr/local/src/pdlib/pdlib.cc:33:
/usr/local/include/dlib/algs.h:17:10: error: #error "Dlib requires C++14 support. Give your compiler the -std=c++14 option to enable it."
17 | #error "Dlib requires C++14 support. Give your compiler the -std=c++14 option to enable it."
| ^~~~~
^Cmake: *** [Makefile:208: pdlib.lo] Error 1

I think I just need to add that compiler flag correctly. Can anyone help? Thanks!

@zpratikpathak
Copy link

Same Issue

@edgeofthex
Copy link
Author

See solution in issue #50

@goodspb
Copy link
Owner

goodspb commented Mar 5, 2023

@goodspb goodspb closed this as completed Mar 5, 2023
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