I'm trying to compile vapoursynth and have run into a linker issue which I don't understand how to solve. Here is what I have so far:

I have compiled zimg from github

github: buaazp/zimg

and have a binary. I pulled vapoursynth from here

github: vapoursynth/vapoursynth

and I followed the instructions.

When I try to run ./configure:

configure: error: Package requirements (zimg) were not met:
No package 'zimg' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables ZIMG_CFLAGS
and ZIMG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

I tried to fix it with:

export PKG_CONFIG_PATH=/home/test/zimg/bin/zimg

But ./configure still didn't work and had the same error. Then I tried:

export ZIMG_CFLAGS=/home/test/zimg/src/
export ZIMG_LIBS=/home/test/zimg/build

And the check for zimg passed, but it fails to link it. The error is this:

checking for ZIMG... yes
configure: error: failed to link zimg.

What should I try next?

closed as off-topic by Jeff Schaller, Stephen Harris, PersianGulf, mdpc, Kusalananda Jul 26 '16 at 8:48

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jeff Schaller, Stephen Harris, PersianGulf, mdpc, Kusalananda
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Just a note about PKG_CONFIG_PATH: It should point to where pkg-config may find the pkgconfig directories. You find these directories under lib, for example in <prefix>/lib where <prefix> is the installation prefix for zimg. – Kusalananda Jul 25 '16 at 20:37

It turns out I used the wrong zimg. The correct zimg is sekrit-twc/zimg.

Not the answer you're looking for? Browse other questions tagged or ask your own question.