-
Notifications
You must be signed in to change notification settings - Fork 311
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
configure.ac and libgd (gdlib) - use pkg-config #137
Comments
can you attach a failing config.log ? |
Sure. No trouble. Here's a couple. |
So ... our code actually tries to run pkg-config before trying out gdlib-config, so it should actually just work. In both of your logs they call 64bit: so the 64bit build looks fine... The 32bit build has a bit trouble, but it finds the gdlibs using pkg-config, but It seems the mingw32 build of libgd went a bit bad? Can you check if there are problems? |
@JPeterMugaas I concur with @msmeissn here. It appears your mingw64 build of That linking error is the very issue here, and If you remove the check for Failing earlier is to be preferred here, so that All of this leads me to conclude that |
While preparing a package for MSYS's MINGW-W64, I found an issue with libgd detection in your configure script. The problem is this, that script depends upon using the libtool.la file for gdlib. That's a problem for two basic reasons:
You have made a comment about how gdlib-config does not always return the "-lgd" in it's --libs parameter. The matter is much worse than that. gdlib-config is now depreciated in libgd 2.4. In addition, it does not seem to be generated if CMake is used for the build. While I made a proposed fix for MSYS2's mingw-w64 distribution, that probably will not ultimately fix matters.
These days, the libgd authors prefer that you use pkg-coinfig to get information about the library from their gdlib.pc file. I am providing the a patch for this issue although it might be crude. The idea is to use "PKG_CHECK_MODULES(LIBGD, [gdlib])". I'm too lazy to make a PR.
libgphoto2-use-pkg-config-for-gd.patch.txt
The text was updated successfully, but these errors were encountered: