Bill Allombert on Sat, 14 Jan 2017 14:02:24 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PATCH] Qt4 is a valid graphic option for --ask


On Tue, Jan 10, 2017 at 04:38:07PM +0100, Jeroen Demeyer wrote:
> On 2017-01-10 13:47, Bill Allombert wrote:
> >Did you actually succeeded to make Qt4 work ?
> 
> Yes, but not easily since the auto-detection of Qt4 completely fails.
> 
> It worked with
> 
> export LD=g++ LDneedsWl=yes CPLUS_INCLUDE_PATH=/usr/include/qt4
> LDFLAGS='-L/usr/lib64/qt4 -lQtCore -lQtGui' QTDIR=/usr/lib64/qt4

Does the attached patch improve the detection ?

Cheers,
Bill.
diff --git a/config/get_Qt b/config/get_Qt
index d75a45a..a20e9d2 100644
--- a/config/get_Qt
+++ b/config/get_Qt
@@ -4,7 +4,7 @@ fi
 QTDIR=
 case "$with_qt" in
 yes)
-   pth="/usr/local/lib /usr/local/share /usr/lib /usr/share"
+   pth="/usr/local/lib /usr/local/lib64 /usr/local/share /usr/lib /usr/lib64 /usr/share"
    QTDIR=`locatedir qt4/bin $pth`
    if test -n "$QTDIR"; then
      QTLIB="-lQtCore -lQtGui -lstdc++"