[solved]How to change PKG_CONFIG_PATH for pkg-config-crosswrapper?

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
KimGwanyoung
Blank Cone
Blank Cone
Posts: 18
Joined: 19 Aug 2016 10:10

[solved]How to change PKG_CONFIG_PATH for pkg-config-crosswrapper?

Postby KimGwanyoung » 16 Feb 2017 02:34

Hi all.

I am trying build vlc-2.2.4.
I met the error "Library dvdread > 4.9.0 needed for dvdread was not found".
So I hardly found.

The $PKG_CONFIG used in vlc-2.2.4/configure, is /usr/bin/i686-w64-mingw32-pkg-config.
And this is linked with /usr/share/pkg-config-crosswrapper.
But, the path for pkg-config-crosswrapper is not changed.

I modified the configure file.

export PKG_CONFIG_PATH=$HOME/vlc-2.2.4/contrib/i686-w64-mingw32/lib/pkgconfig

# test 1
export test_val=`$PKG_CONFIG --exists --print-errors "dvdread > 4.9.0"`
echo $test_val

#test 2
export test_val=`pkg-config --static --exists --print-errors "dvdread > 4.9.0"`
echo $test_val

The test 1 is occurred error.
Package dvdread was not found in the pkg-config search path.
Perhaps you should add the directory containing `dvdread.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dvdread' found

But the test 2 can't see error.

What can I do more?


=====================================
I found the bug that the triplet-pkg-config ignores PKG_CONFIG_PATH.
https://bugs.launchpad.net/ubuntu/+sour ... ug/1327242

Thanks.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: [solved]How to change PKG_CONFIG_PATH for pkg-config-crosswrapper?

Postby Jean-Baptiste Kempf » 16 Feb 2017 09:32

Follow the contribs documentation.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 43 guests