How do I edit the PKG_CONFIG_PATH environment variable on windows?

232 views Asked by At

I'm trying to use pkg-config to combine files from ffmpeg into a library so I can use them as such in my program. However, I can't seem to figure out how to get pkg-config to look in another location.

It's worth mentioning that I'm compiling this program into a node API addon for a node project, so I'm using pkg-config from NPM and CMake-js.

Currently, pkg-config looks in C:/Strawberry/c/lib/pkgconfig

I want it to look in C:/ffmpeg/lib/ as well. I've tried looking for how to do this, but I can only find how to do it on linux.

In the one stackoverflow question which is similar, the link provided is broken: link to question , broken link provided

Otherwise, I find conflicting info saying pkg-config in windows doesn't consider PKG_CONFIG_PATH environment variable. I can't test this if I can't find out how to actually do it.

I've also tried copying the ffmpeg folder inside C:/Strawberry/c/lib/pkgconfig so it can find it. Even then, it 'cant find libavcodec.pc' despite being located in that folder (albeit several folders deep).

How do I change the environment variable for pkg-config?

0

There are 0 answers