Pkg-config does not work on Cygwin

I am trying to compile a program ( OpenFP ) using cygwin. The program depends on the FFTW3 package that I compiled and installed successfully. However, when I run ./configure for the main program, I get an error message:

There is no package 'fftw3' found by configure: 6138: error: Package requirements ("fftw3") were not met: package "fftw3" was not found. Consider setting the PKG_CONFIG_PATH environment variable if you installed the software in a non-standard prefix. In addition, you can configure the environment variables FFTW3_CFLAGS and FFTW3_LIBS to avoid the need to invoke the PKG configuration. See the pkg-config man page for more information.

pkg-config --list-all does not find the FFTW3 library, but /usr/local/lib/pckconfig contains the required .pc file. Well, from this fftw3.pc file, I copied the LIBS and CFLAGS parameters to the FFTW3_CFLAGS and FFTW3_LIBS evironment variables as the error message above. However, I still get the same error.

What's wrong?

PS Setting variables in the same way in MinGW solved the problem (I did not install pkg-config in MinGW), but the compilation of the project failed due to the absence of some Linux-specific headers in MinGW)

+6
source share
1 answer

You should add /usr/local/lib/pckconfig to your PKG_CONFIG_PATH :

 $ export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig 

This tells pkg-config to look in an additional place, in addition to its standard path.

+4
source

Source: https://habr.com/ru/post/902622/


All Articles