-
Notifications
You must be signed in to change notification settings - Fork 15
pkgconfig files are missing in the built package #74
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
Comments
It seems this might be solved by fixing #68 from this comment:
|
That's a bigger lift though, and Windows-only. We need |
I made a PR to add pkgconfig files in #77. The file assumes the tarball will be unpacked into |
Thanks @mattip!
This is only relevant for SciPy at this point, I'm not sure that it needs documenting anywhere (aside from the CI files where it's used). |
Note #77 was missing the |
#Generating openblas.pc
@echo Generating $(LIBSONAMEBASE).pc in "$(DESTDIR)$(OPENBLAS_PKGCONFIG_DIR)"
@echo 'libdir='$(OPENBLAS_LIBRARY_DIR) > "$(DESTDIR)$(OPENBLAS_PKGCONFIG_DIR)/$(LIBSONAMEBASE).pc"
@echo 'includedir='$(OPENBLAS_INCLUDE_DIR) >> "$(DESTDIR)$(OPENBLAS_PKGCONFIG_DIR)/$(LIBSONAMEBASE).pc"
@echo 'openblas_config= USE_64BITINT='$(USE_64BITINT) 'DYNAMIC_ARCH='$(DYNAMIC_ARCH) 'DYNAMIC_OLDER='$(DYNAMIC_OLDER) 'NO_CBLAS='$(NO_CBLAS) 'NO_LAPACK='$(NO_LAPACK) 'NO_LAPACKE='$(NO_LAPACKE) 'NO_AFFINITY='$(NO_AFFINITY) 'USE_OPENMP='$(USE_OPENMP) $(CORE) 'MAX_THREADS='$(NUM_THREADS)>> "$(DESTDIR)$(OPENBLAS_PKGCONFIG_DIR)/$(LIBSONAMEBASE).pc"
@echo 'version='$(VERSION) >> "$(DESTDIR)$(OPENBLAS_PKGCONFIG_DIR)/$(LIBSONAMEBASE).pc"
@echo 'extralib='$(PKG_EXTRALIB) >> "$(DESTDIR)$(OPENBLAS_PKGCONFIG_DIR)/$(LIBSONAMEBASE).pc"
@cat openblas.pc.in >> "$(DESTDIR)$(OPENBLAS_PKGCONFIG_DIR)/$(LIBSONAMEBASE).pc" This embeds OPENBLAS_LIBRARY_DIR and OPENBLAS_INCLUDE_DIR which don't have pkg-config Meson in git master has built-in support for relocatable pkg-config files, which is how I know this is possible... I discussed it with the implementer and merged it. Basically, assuming everything is in
So far pretty normal. The interesting thing is, what is prefix? Usually that is
This can then be extracted absolutely anywhere, and pkg-config will expand pcfiledir to the directory that the .pc file is in, which per the designated structure is in Supporting this here could be done either by reimplementing the openblas pkg-config file (or patching it at least), or else by working with openblas upstream to add an option for it. Unfortunately there is no good abstraction like the meson one. :( So it may be a bit messy to figure out exactly which path should be specified in every case. |
When testing on some supercomputer hardware I had to manually edit the |
See scipy/scipy#16187 (comment) for more context. All development headers and CMake files are present, but
.pc
files are missing. We need those for building with Meson.The text was updated successfully, but these errors were encountered: