Jeroen Demeyer on Mon, 13 Feb 2017 11:49:43 +0100


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

2 small patches to allow Qt plotting on Gentoo


I finally looked again at the Qt compilation issues.

I'm adding two patches which allow using Qt on my Gentoo system.
>From cd148031d308f44f2ac7d22bd742cf89dc7dec50 Mon Sep 17 00:00:00 2001
From: Jeroen Demeyer <jdemeyer@cage.ugent.be>
Date: Mon, 13 Feb 2017 11:44:58 +0100
Subject: [PATCH 1/2] On some systems, the Qt libraries are in $QTDIR

---
 config/Makefile.SH | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/Makefile.SH b/config/Makefile.SH
index dc0e5e4..cfa91c2 100644
--- a/config/Makefile.SH
+++ b/config/Makefile.SH
@@ -79,7 +79,7 @@ svg)
   graph=plotsvg;;
 Qt4)
   PLOTCFLAGS='-D__FANCY_WIN__ -I$(QTDIR)/include'
-  PLOTLIBS="-L\$(QTDIR)/lib $QTLIB"
+  PLOTLIBS="-L\$(QTDIR) -L\$(QTDIR)/lib $QTLIB"
   graph=plotQt4;;
 fltk)
   PLOTCFLAGS=
-- 
2.7.3

>From 6d233c90514c72c0014ff22e48f4405031a81e13 Mon Sep 17 00:00:00 2001
From: Jeroen Demeyer <jdemeyer@cage.ugent.be>
Date: Mon, 13 Feb 2017 11:46:32 +0100
Subject: [PATCH 2/2] Look for Qt headers in /usr/include/qt4

---
 config/Makefile.SH | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/Makefile.SH b/config/Makefile.SH
index cfa91c2..f8582d2 100644
--- a/config/Makefile.SH
+++ b/config/Makefile.SH
@@ -78,7 +78,7 @@ ps)
 svg)
   graph=plotsvg;;
 Qt4)
-  PLOTCFLAGS='-D__FANCY_WIN__ -I$(QTDIR)/include'
+  PLOTCFLAGS='-D__FANCY_WIN__ -I$(QTDIR)/include -I/usr/include/qt4'
   PLOTLIBS="-L\$(QTDIR) -L\$(QTDIR)/lib $QTLIB"
   graph=plotQt4;;
 fltk)
-- 
2.7.3