-
Notifications
You must be signed in to change notification settings - Fork 139
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
Fails to find Libxc #3761
Comments
@caic99 could you have a look? |
Hi zx:
May you show what is in your Also, after a configure failure, a
|
Hi @yizeyi18 , here's my libxc.pc:
and here's the output of
|
|
The patch works! Thank you very much :) |
Hi zx: Debug output of pkg-config
$ pkg-config --debug --cflags libxc
Error printing enabled by default due to use of output options besides --exists, --atleast/exact/max-version or --list-all. Value of --silence-errors: 0
Error printing enabled
Adding virtual 'pkg-config' package to list of known packages
Looking for package 'libxc'
Looking for package 'libxc-uninstalled'
Reading 'libxc' from file '/usr/lib/x86_64-linux-gnu/pkgconfig/libxc.pc'
Parsing package file '/usr/lib/x86_64-linux-gnu/pkgconfig/libxc.pc'
line>prefix=/usr
Variable declaration, 'prefix' has value '/usr'
line>exec_prefix=/usr
Variable declaration, 'exec_prefix' has value '/usr'
line>libdir=/usr/lib/x86_64-linux-gnu
Variable declaration, 'libdir' has value '/usr/lib/x86_64-linux-gnu'
line>includedir=/usr/include
Variable declaration, 'includedir' has value '/usr/include'
line>
line>Name: libxc
line>Description: Library of exchange and correlation functionals to be used in DFT codes
line>Requires:
line>Version: 5.1.7
line>Libs: -L${libdir} -lxc
line>Cflags: -I${includedir}
Path position of 'libxc' is 5
Adding 'libxc' to list of known packages
Package libxc has -I/usr/include in Cflags
Removing -I/usr/include from cflags for libxc
Package libxc has -L /usr/lib/x86_64-linux-gnu in Libs
Removing -L /usr/lib/x86_64-linux-gnu from libs for libxc
post-recurse: libxc
adding CFLAGS_OTHER string ""
post-recurse: libxc
original: libxc
sorted: libxc
adding CFLAGS_I string ""
returning flags string "" |
Details
The following error [Could NOT find Libxc (missing: Libxc_INCLUDE_DIRS] appears since #3623

I'm using Ubuntu 22.04 on WSL2. The libxc package (libxc-dev) was installed via apt. The shared object and header are located at
/usr/lib/x86_64-linux-gnu/libxc.so
/usr/include/xc.h
Compilation with libxc has no issue prior to #3623 . Can anyone give some advice?
Have you read FAQ on the online manual http://abacus.deepmodeling.com/en/latest/community/faq.html
Task list for Issue attackers (only for developers)
The text was updated successfully, but these errors were encountered: