EPICS Home

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: caQtDM-R3-9-3: Build Error
From: "Williams Jr., Ernest L." <ernesto@slac.stanford.edu>
To: "anton.mezger@psi.ch" <anton.mezger@psi.ch>
Cc: "qti-talk@aps.anl.gov" <qti-talk@aps.anl.gov>, Lucas J Monteiro Carvalho <lmonteirocar@mail.smcvt.edu>, "Babbitt, Alisha" <ababbitt@slac.stanford.edu>, "Williams Jr., Ernest L." <ernesto@slac.stanford.edu>, "zai.wang@synchrotron.org.au" <zai.wang@synchrotron.org.au>
Date: Tue, 9 Jun 2015 04:04:49 +0000
Hi Anton,

I have resolved the issue. :)

Turns out that if one has a previous installation such as in:
"$EPICS_EXTENSIONS/lib/$EPICS_HOST_ARCH"
Then instead of the library in the source tree being referenced it instead selects the library from "LD_LIBRARY_PATH"
So, unfortunately this selects :  "libcaQtDM_Lib.so" pointed to by  "LD_LIBRARY_PATH"
And since my previous  "libcaQtDM_Lib.so" from caQtDM-3-8-10 knows nothing about scan2D; it fails during the linking stage.

Can you change the build system to reference the library from the source tree?
Namely,  <caQtDM_TOP>/caQtDM-R3-9-3/caQtDM_Binaries  ?

The build should never reference the libraries in the users "LD_LIBRARY_PATH".

So, in my case I manually removed the libraries from the "caQtDM-R3-8-10" release.
Which were installed in "$EPICS_EXTENSIONS/lib/$EPICS_HOST_ARCH"

Conclusion:  Build time versus Run time
LD_LIBRARY_PATH is mostly used for run time 
The build should reference libraries built by the local src tree via the Makefile variables.
Other system libraries should also be referenced by the Makefile.

Let me know what you think?

Cheers,
Ernest

________________________________________
From: Williams Jr., Ernest L.
Sent: Monday, June 8, 2015 8:26 PM
To: anton.mezger@psi.ch
Cc: Lucas J Monteiro Carvalho; zai.wang@synchrotron.org.au; Babbitt, Alisha; qti-talk@aps.anl.gov; Andrew.Rhyder@synchrotron.org.au; Williams Jr., Ernest L.; emayssat@epicsqt.org
Subject: caQtDM-R3-9-3:  Build Error

Hi Anton,

I downloaded your latest release and bumped it to a build issue:

See error below.
Any ideas on this?
Looks like "caScan2D" was left out of the tar ball?

================================================================
g++ -Wl,-rpath,/afs/slac/g/lcls/package/Qt-5.4.1/lib -o /afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/caQtDM ../obj1/caQtDM.o ../obj1/fileopenwindow.o ../obj1/messagebox.o ../obj1/qrc_caQtDM.o ../obj1/moc_fileopenwindow.o   -L/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries -Wl,-rpath,/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/lib/linux-x86_64:/binQt:/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries -lcaQtDM_Lib -L/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries -L/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/designer -L/afs/slac/g/lcls/package/Qt-5.4.1/lib -lQt5Svg -lQt5PrintSupport -lQt5UiTools -lQt5Widgets -lQt5Gui -lQt5Core -lpthread -lGL -l!
 Xext -lX11 -lm
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caMeter::setMinValue(double)'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caScan2D::isAlphaMinLevel()'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caScan2D::getROI(int&, int&, int&, int&)'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caScan2D::setMinLevel(QString const&)'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caMeter::setAlarmColors(short)'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caScan2D::setSAVEDATA_SUBDIR(QString const&)'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caScan2D::setHeight(int)'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caScan2D::setMaxLevel(QString const&)'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caClock::setAlarmColors(short)'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caMeter::setNormalColors()'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caScan2D::setColormap(caScan2D::colormap const&)'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caScan2D::newArray(int, float*)'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caCamera::showDisconnected()'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caMeter::staticMetaObject'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caMeter::invalidate()'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caMeter::setFormat(int)'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caScan2D::setSAVEDATA_PATH(QString const&)'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caClock::updateClock(QTime)'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caScan2D::setFitToSize(caScan2D::zoom const&)'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caScan2D::staticMetaObject'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caMeter::setMaxValue(double)'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caScan2D::updateMax(int)'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caScan2D::isAlphaMaxLevel()'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caMeter::updateMeter()'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caScan2D::setYNEWDATA(int)'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caScan2D::setXNEWDATA(int)'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caMeter::setValueUnits(double, QString const&)'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caScan2D::setSAVEDATA_FILENAME(QString const&)'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caScan2D::setWidth(int)'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caWaterfallPlot::setColormap(caWaterfallPlot::colormap const&)'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caScan2D::dataProcessing(int, int)'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caScan2D::setYCPT(int)'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caScan2D::updateMin(int)'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caClock::staticMetaObject'
/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/libcaQtDM_Lib.so: undefined reference to `caScan2D::setXCPT(int)'
collect2: ld returned 1 exit status
make[2]: *** [/afs/slac/g/lcls/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Binaries/caQtDM] Error 1
make[2]: Leaving directory `/afs/slac.stanford.edu/g/lcls/vol8/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Viewer/caQtDM1'
make[1]: *** [sub-caQtDM1-make_first] Error 2
make[1]: Leaving directory `/afs/slac.stanford.edu/g/lcls/vol8/epics/R3-14-12-4_1-0/extensions/extensions-R3-14-12/src/caQtDM/caQtDM-R3-9-3/caQtDM_Viewer'
make: *** [sub-caQtDM_Viewer-make_first] Error 2
====================================================



Cheers,
Ernest

References:
caQtDM-R3-9-3: Build Error Williams Jr., Ernest L.

Navigate by Date:
Prev: caQtDM-R3-9-3: Build Error Williams Jr., Ernest L.
Next: epicsQt-R3-1-0: Build Experience Williams Jr., Ernest L.
Index: 2012  2013  2014  <20152016  2017  2018  2019 
Navigate by Thread:
Prev: caQtDM-R3-9-3: Build Error Williams Jr., Ernest L.
Next: epicsQt-R3-1-0: Build Experience Williams Jr., Ernest L.
Index: 2012  2013  2014  <20152016  2017  2018  2019