Closed agboom closed 4 years ago
Hi @agboom Remove '--enable-debug' option.. I remember that this option failed me before..
I started watching this repo, I completely missed this question. Hopefully, we will be notified on next one:)
It fails for me also at the configure step. (Ubuntu 18.04)
Thanks for your suggestion @matiasdelellis, I removed the option, but sadly it still gives the same error (configure: error: pkg-config not found
).
apt install pkg-config
works for me
That's great! Sadly it doesn't work in the Alpine container. pkg-config
is installed correctly and can be found in the path. Looking at the configure
file, the problem is that pkgconfig --exists dlib-1
yields false.
The part in configure
that fails is around line 4675:
if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists dlib-1; then
if $PKG_CONFIG dlib-1 --atleast-version 19.00; then
LIBDLIB_CFLAGS=`$PKG_CONFIG dlib-1 --cflags`
LIBDLIB_LIBDIR=`$PKG_CONFIG dlib-1 --libs`
LIBDLIB_VERSON=`$PKG_CONFIG dlib-1 --modversion`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: from pkgconfig: dlib version $LIBDLIB_VERSON" >&5
$as_echo "from pkgconfig: dlib version $LIBDLIB_VERSON" >&6; }
else
as_fn_error $? "system dlib is too old: version 19.00 required" "$LINENO" 5
fi
else
if test -x "$PKG_CONFIG"; then echo "HI"; fi # <-- test to see if pkg-config is detected
as_fn_error $? "pkg-config not found" "$LINENO" 5
fi
I found the problem: pkg-config was looking in the wrong places. Setting PKG_CONFIG_PATH=/dlib-install/usr/local/lib64/pkgconfig/
before running ./configure
solves this.
Should this be added to the Installation Instructions (README.md - https://github.com/goodspb/pdlib/blob/master/README.md#installation)?
apt install pkg-config
Unfortunately, @goodspb (author) is unavailable. I am discussing with @matiasdelellis to fork this and continue from there.
I found the problem: pkg-config was looking in the wrong places. Setting
PKG_CONFIG_PATH=/dlib-install/usr/local/lib64/pkgconfig/
before running./configure
solves this.
Sadly, this did not help for me. I use a Fedora server which only has pkgconf package, not pkg-config, but these two should basically be the same. What can I do?
+1 on my end. Ubuntu 18.04 server and I have pkg-config installed from apt(I have actually used it from the cli myself, so I know it works) but configure says it is not found.
PKG_CONFIG_PATH=/dlib-install/usr/local/lib64/pkgconfig/
was pretty specific for my system. Did you find out where the pkgconfig
directory was located on your system?
I found it, seems like I'm simply not used to non-default paths. Thanks for your hint. It was in /usr/local/lib64/pkgconfig
Hello
I found the pkgconfig as you showed the location, but can you tell me where to change this path of pkgconfig. still i see same error of pkg-config not found after i type PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig/ in terminal and when i run ./configure command.
If possible please give some idea about this error.
Thank you
I'm trying to build pdlib in an Alpine Docker image (including the dlib dependency), but I'm stuck on the
./configure
step.Here is the output:
And here is the Dockerfile to reproduce:
Any idea what could be going wrong?