-
Notifications
You must be signed in to change notification settings - Fork 20
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
Building on Alpine fails (configure: error: pkg-config not found) #17
Comments
Hi @agboom |
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 ( |
works for me |
That's great! Sadly it doesn't work in the Alpine container. The part in 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 |
Should this be added to the Installation Instructions (README.md - https://github.com/goodspb/pdlib/blob/master/README.md#installation)?
|
Unfortunately, @goodspb (author) is unavailable. I am discussing with @matiasdelellis to fork this and continue from there. |
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. |
|
I found it, seems like I'm simply not used to non-default paths. Thanks for your hint. It was in |
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. |
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?
The text was updated successfully, but these errors were encountered: