[solved]How to change PKG_CONFIG_PATH for pkg-config-crosswrapper?
Posted: 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.
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.