Le 20/03/2015 22:05, Pierre Labastie a écrit :
> Le 20/03/2015 20:14, Bruce Dubbs a écrit :
>> Pierre Labastie wrote:
>>> Hi list,
>>>
>>> It seems to me that the setqt{4,5} scripts could set PKG_CONFIG_PATH as well
>>> as PATH. Since autotools now unconditionally use pkgconfig, if the
>>> PKG_CONFIG_PATH is not set, configure scripts may find one version of Qt,
>>> while make would use the other. This seems to be a problem, for example with
>>> wireshark.
>>>
>>> Is there any reason why PKG_CONFIG_PATH is not set in the setqt<N> scripts,
>>> while it is set in the qt{4,5}.sh scripts in /etc/profiles.d?
>>
>> I'm not sure why this is needed. There is no conflict between the .pc files
>> in qt4 and qt5. My path is:
>>
>> PKG_CONFIG_PATH=/opt/qt/lib/pkgconfig:/opt/kde/lib/pkgconfig:/opt/kde/share/pkgconfig:/opt/qt4/lib/pkgconfig:/opt/qt5/lib/pkgconfig:/opt/xorg/lib/pkgconfig:/opt/xorg/share/pkgconfig
>>
>>
>> Both /etc/profiles.d/qt{4,5}.sh should have the right settings:
>>
>> $ grep PKG /etc/profile.d/qt4.sh
>> pathappend /opt/qt4/lib/pkgconfig PKG_CONFIG_PATH
>>
>> $ grep PKG /etc/profile.d/qt5.sh
>> pathappend /opt/qt5/lib/pkgconfig PKG_CONFIG_PATH
>>
>> -- Bruce
>>
>
> The reason is the following: in the case of wireshark, the configure script
> first checks qt5 (actually, qt modules whose names begin with qt5), then qt4
> (if qt5 is not found), using pkgconfig. So, with the PATH above, it will find
I meant PKG_CONFIG_PATH here...
> qt5 modules, and not check qt4. If the user intended to use qt4, the PATH is
> set to /opt/qt4, which is very likely to create a failure when building (and
> it does, in the case of wireshark). The only safe option is to set both
> PKG_CONFIG_PATH and PATH in setqtx
>
> Pierre
>
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page