Skip to content
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

pkg-config with goav cannot find where to set path #7

Open
8v-piper opened this issue Feb 24, 2021 · 1 comment
Open

pkg-config with goav cannot find where to set path #7

8v-piper opened this issue Feb 24, 2021 · 1 comment

Comments

@8v-piper
Copy link

Hi apologies for the noob question, I have tried reading documentation and web search.
No matter what i try i keep getting the following error:

pkg-config --cflags -- libswresample libswresample

error $GOPATH: no library found in $GOPATH: libswresample
error github.com: PKG_CONDIF_GITHUB not exported, skipping github.com lookup
error $PKG_CONFIG_PATH: open libswresample.pc: The system cannot find the file specified.
error : no library found in $GOPATH: libswresample
pkg-config: exit status 1

please help or point to a tutorial

@sergebouchut2
Copy link

I think that I encountered a similar issue: pkg-config was not able to find the .pc file even with the $PKG_CONFIG_PATH env var properly set (pkg-config ignore the value and always search in /usr/local/share/pkgconfig). I ended up by creating a sym link from the real path to the one which is configured by default for pkg-config.

ln -s /usr/lib/x86_64-linux-gnu/pkgconfig /usr/local/share/pkgconfig

This worked for ubuntu-22.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants