EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2012  2013  2014  <20152016  2017  2018  2019  Index 2012  2013  2014  <20152016  2017  2018  2019 
<== Date ==> <== Thread ==>

Subject: RE: epicsqt compile error
From: "Williams Jr., Ernest L." <[email protected]>
To: Andrew Rhyder <[email protected]>, "[email protected]" <[email protected]>
Cc: "[email protected]" <[email protected]>, "Babbitt, Alisha" <[email protected]>, "Williams Jr., Ernest L." <[email protected]>
Date: Mon, 23 Mar 2015 21:56:29 +0000
Hi Andrew,

We are very excited to investigate and try the QT technology for the Next generation UI framework and tool kit.

Please review the attached patch/diff against your version 3.0.2

Alisha and I will provide some feedback on "Installation" instructions; to make it easier for the next user.

Meanwhile, I have attached what we have put in for run-time ENV variables below as well:

# ===============================================================
# Let's setup for caQtDM: From PSI                               
# Display Editor and Manager for Control System GUI Development  
# Both Editor/Runtime                                            
# Using QT5                                                      
# ===============================================================
QTDIR=$PACKAGE_TOP/Qt-5.4.1                                      
QTINC=$PACKAGE_TOP/Qt-5.4.1/include                              
QTLIB=$PACKAGE_TOP/Qt-5.4.1/lib                                  

export PATH=$QTDIR/bin:$PATH

# QWT Setup
export QWT_ROOT=$PACKAGE_TOP/qwt-6.1.2

export QT_PLUGIN_PATH="${EPICS_EXTENSIONS}/lib/${EPICS_HOST_ARCH}"
export QT_PLUGIN_PATH="${QWT_ROOT}/plugins:$QT_PLUGIN_PATH"

export CAQTDM_DISPLAY=$TOOLS/caQtDM/display
export CAQTDM_DISPLAY_PATH=$CAQTDM_DISPLAY/Tests:$CAQTDM_DISPLAY/iocAdmin
# ================================================================

# ================================================================
# Setup for EPICS QT (QE Framework) from Austraila:
# Using QT5
# ===============================================================
# epicsqt needs to use consistent variable names :(
export QWT_INCLUDE_PATH=$QWT_ROOT/include
export QWTINCLUDE=$QWT_INCLUDE_PATH

export QE_FFMPEG=YES
export QE_CAQTDM="${EPICS_EXTENSIONS}/src/caQtDM/caQtDM-R3-8-10"
export LD_LIBRARY_PATH=$QWT_ROOT/lib:$LD_LIBRARY_PATH
# ================================================================





________________________________________
From: Andrew Rhyder [[email protected]]
Sent: Sunday, March 22, 2015 5:58 AM
To: Williams Jr., Ernest L.
Subject: RE: epicsqt compile error

Hi Ernest
I think this has already been done on the trunk and will be in the next release. I will confirm this shortly.
Regards
Andrew
________________________________________
From: [email protected] [[email protected]] on behalf of Williams Jr., Ernest L. [[email protected]]
Sent: Tuesday, 17 March 2015 11:02
To: Zai Wang
Cc: [email protected]; Babbitt,      Alisha; Williams Jr.,   Ernest L.
Subject: RE: epicsqt compile error

Hi Zai,

The actual problem is the the epicsqt package uses two different variables for the same thing.

framework uses:
# The following QWT include path and library path are only required if
INCLUDEPATH += $$(QWT_INCLUDE_PATH)

But Applications uses:
$(QWTINCLUDE)

So, I set  "QWTINCLUDE"   to  "QWT_INCLUDE_PATH"

The Getting started Guide only talks about setting:   "QWT_INCLUDE_PATH"


Alisha will send out a diff file and patch for the changes we made.

Then you can consider them for inclusion into your next release.



Cheers,
Ernest
________________________________________
From: Zai Wang [[email protected]]
Sent: Monday, March 16, 2015 4:06 PM
To: Williams Jr., Ernest L.
Subject: RE: epicsqt compile error

Hi Ernest

You might mix up with caQtDM. They have different ENV variables for the same libs. It may be easy to use other PC or virtual box without caQtDM at start.
Then you check the make log msgs to see if any error.

Note: the below log complains caQtDM no qwt include path defined.



Cheers


Zai


Subject:

epicsqt compile error

From:

"Williams Jr., Ernest L." <[email protected]<mailto:ernesto_at_slac.stanford.edu>>

To:

"[email protected]<mailto:Andrew.Rhyder_at_synchrotron.org.au>" <[email protected]<mailto:Andrew.Rhyder_at_synchrotron.org.au>>

Cc:

"[email protected]<mailto:qti-talk_at_aps.anl.gov>" <[email protected]<mailto:qti-talk_at_aps.anl.gov>>, "Babbitt, Alisha" <[email protected]<mailto:ababbitt_at_slac.stanford.edu>>, "Williams Jr., Ernest L." <[email protected]<mailto:ernesto_at_slac.stanford.edu>>

Date:

Mon, 16 Mar 2015 16:24:22 +0000


Hi Andrew,





I definitely have QWT installed

I used QWT to actually build caQtDM.

***************************************************************************

[ernesto@icd-pc90626 qwt-6.0.1]$ env |grep QWT

QWT_INCLUDE_PATH=/afs/slac/g/lcls/package/qwt-6.0.1/include

QWT_ROOT=/afs/slac/g/lcls/package/qwt-6.0.1

***************************************************************************





However, when attempting to build epicsqt, I get the following error:





cd applications/QEGuiApp/ && make -f Makefile

make[1]: Entering directory `/afs/slac.stanford.edu/g/lcls/vol8/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/epicsQt/epicsQt-R3-0-2/applications/QEGuiApp'

make -f Makefile.Release

make[2]: Entering directory `/afs/slac.stanford.edu/g/lcls/vol8/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/epicsQt/epicsQt-R3-0-2/applications/QEGuiApp'

g++ -c -m64 -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_REENTRANT -Wall -W -DQE_USE_CAQTDM -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib64/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/QtUiTools -I/usr/include/QtDesigner -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtScript -I/usr/include -IO.linux-x86_64/ui_headers -I. -Iinclude -I../../framework/widgets/QEWidget -I../../framework/widgets/QEForm -I../../framework/widgets/QELogin -I../../framework/data -I../../framework/api -I../../framework/common -I../../../../caQtDM/caQtDM-R3-8-10/caQtDM_Lib/src -I../../../../caQtDM/caQtDM-R3-8-10/caQtDM_QtControls/src -I -IO.linux-x86_64/moc -IO.linux-x86_64/ui_headers -o O.linux-x86_64/obj/main.o src/main.cpp                                                                                                      !



In file included from ../../../../caQtDM/caQtDM-R3-8-10/caQtDM_Lib/src/limitsStripplotDialog.h:45,

                 from ../../../../caQtDM/caQtDM-R3-8-10/caQtDM_Lib/src/caqtdm_lib.h:68,

                 from include/MainWindow.h:52,

                 from include/QEGui.h:32,

                 from src/main.cpp:27:


Only in epicsQt-R3-0-2_SLAC/applications/QEGuiApp: O.linux-x86_64
diff -ur 3.0.2/applications/QEGuiApp/QEGuiApp.pro epicsQt-R3-0-2_SLAC/applications/QEGuiApp/QEGuiApp.pro
--- 3.0.2/applications/QEGuiApp/QEGuiApp.pro	2014-12-10 16:40:02.000000002 -0800
+++ epicsQt-R3-0-2_SLAC/applications/QEGuiApp/QEGuiApp.pro	2015-03-17 14:34:05.000000002 -0700
@@ -145,8 +145,9 @@
 } else {
     INCLUDEPATH += $$(QE_CAQTDM)/caQtDM_Lib/src \
                    $$(QE_CAQTDM)/caQtDM_QtControls/src \
-                   $(QWTINCLUDE)
-    LIBS += -L$$(QE_CAQTDM)/caQtDM_Lib -lcaQtDM_Lib
+                   $(QWTINCLUDE) \
+                   $$(QTINC)/QtPrintSupport
+    LIBS += -L$$(QE_CAQTDM)/caQtDM_Binaries -lcaQtDM_Lib
 }
 #===========================================================
 
Only in epicsQt-R3-0-2_SLAC/applications/QEGuiApp/UISamples: alarmDisplay_ernesto.ui
Only in epicsQt-R3-0-2_SLAC/applications/QEGuiApp: debug
Only in epicsQt-R3-0-2_SLAC/applications/QEGuiApp: release
Only in epicsQt-R3-0-2_SLAC/applications/QEMonitorApp: O.linux-x86_64
diff -ur 3.0.2/applications/QEMonitorApp/QEMonitorApp.pro epicsQt-R3-0-2_SLAC/applications/QEMonitorApp/QEMonitorApp.pro
--- 3.0.2/applications/QEMonitorApp/QEMonitorApp.pro	2014-11-25 17:58:11.000000002 -0800
+++ epicsQt-R3-0-2_SLAC/applications/QEMonitorApp/QEMonitorApp.pro	2015-03-16 10:21:28.000000002 -0700
@@ -50,6 +50,9 @@
     ../../framework/data \
     ../../framework/api
 
+# Need QWT Libraries also:
+LIBS += -L$$(QWT_ROOT)/lib -lqwt
+
 LIBS += -L../../framework/designer -lQEPlugin
 
 # end
Only in epicsQt-R3-0-2_SLAC/applications/QEReadArchiveApp: O.linux-x86_64
diff -ur 3.0.2/applications/QEReadArchiveApp/QEReadArchiveApp.pro epicsQt-R3-0-2_SLAC/applications/QEReadArchiveApp/QEReadArchiveApp.pro
--- 3.0.2/applications/QEReadArchiveApp/QEReadArchiveApp.pro	2014-08-30 01:56:44.000000002 -0700
+++ epicsQt-R3-0-2_SLAC/applications/QEReadArchiveApp/QEReadArchiveApp.pro	2015-03-16 10:17:53.000000002 -0700
@@ -49,7 +49,8 @@
 #win32:INCLUDEPATH += $$(EPICS_BASE)/include/os/WIN32
 #INCLUDEPATH += $$(EPICS_BASE)/include
 
-
+# Need QWT Libraries also:
+LIBS += -L$$(QWT_ROOT)/lib -lqwt
 LIBS += -L../../framework/designer -lQEPlugin
 LIBS += -L$$(EPICS_BASE)/lib/$$(EPICS_HOST_ARCH) -lca -lCom
 
diff -ur 3.0.2/applications/QEWidgetDisplayApp/QEWidgetDisplayApp.pro epicsQt-R3-0-2_SLAC/applications/QEWidgetDisplayApp/QEWidgetDisplayApp.pro
--- 3.0.2/applications/QEWidgetDisplayApp/QEWidgetDisplayApp.pro	2014-12-09 04:37:22.000000002 -0800
+++ epicsQt-R3-0-2_SLAC/applications/QEWidgetDisplayApp/QEWidgetDisplayApp.pro	2015-03-16 10:22:21.000000002 -0700
@@ -52,5 +52,8 @@
     ../../framework/api \
     ../../framework/common
 
+# Need QWT Libraries also:
+LIBS += -L$$(QWT_ROOT)/lib -lqwt
+
 LIBS += -L../../framework/designer -lQEPlugin
 
Only in epicsQt-R3-0-2_SLAC/framework: O.linux-x86_64
Only in epicsQt-R3-0-2_SLAC/framework: debug
Only in epicsQt-R3-0-2_SLAC/framework: designer
diff -ur 3.0.2/framework/framework.pro epicsQt-R3-0-2_SLAC/framework/framework.pro
--- 3.0.2/framework/framework.pro	2015-01-11 22:33:32.000000002 -0800
+++ epicsQt-R3-0-2_SLAC/framework/framework.pro	2015-03-17 10:23:42.000000002 -0700
@@ -220,7 +220,8 @@
 }
 
 unix {
-    LIBS += -lqwt
+     # Use QWT 6.1.2 from PACKAGE_TOP
+     LIBS += -L$$(QWT_ROOT)/lib -lqwt
 }
 
 # ffmpeg stuff
Only in epicsQt-R3-0-2_SLAC/framework: release

References:
RE: epicsqt compile error Williams Jr., Ernest L.

Navigate by Date:
Prev: RE: EPICS CA Interface for caQtDM and epicsqt Williams Jr., Ernest L.
Next: RE: EPICS CA Interface for caQtDM and epicsqt Williams Jr., Ernest L.
Index: 2012  2013  2014  <20152016  2017  2018  2019 
Navigate by Thread:
Prev: RE: epicsqt compile error Zai Wang
Next: EPICS CA Interface for caQtDM and epicsqt Williams Jr., Ernest L.
Index: 2012  2013  2014  <20152016  2017  2018  2019 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·