Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017 Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
<== Date ==> <== Thread ==>

Subject: Re: Link problem in areaDetector with pva libraries
From: Andrew Johnson <anj@aps.anl.gov>
To: <core-talk@aps.anl.gov>
Date: Tue, 5 Dec 2017 15:13:54 -0600
Hi Mark,

On 12/05/2017 02:28 PM, Mark Rivers wrote:
> Thanks to a suggestion from Bruno ADCore now compiles OK.

Great.

> I now have a problem when linking the IOC applications:

> -lsimDetector -lNDPlugin -lADBase -lntndArrayConverter -lnt -lpvDatabase
> -lpvAccess -lpvData
> -lnetCDF -lMagick++ -lcoders -lMagick -ljbig -ljp2 -lbzlib -lpng -lwebp
> -llcms -lttf -lwmf
> -lfilters -ltiff -ljpeg -lxml2 -lNeXus -lhdf5 -lblosc -lszip -lzlib
> -lasyn -lautosave -lbusy -lcalc
> -ldevIocStats -lsscan -lseq -lpv -ldbRecStd -ldbCore -lca -lCom
> -Wl,-Bdynamic -lX11 -lXext -lpthread  
> -lreadline -lm -lrt -ldl -lgcc

> undefined reference to `pvar_func_refTrackRegistrar'
> undefined reference to `pvar_func_registerStartPVAServer'

> Is this a problem with the order of link libraries? 

I believe those particular routines are found in libpvAccessIOC which I
don't see in your link line at all. That's a new library in this
release, as is libpvAccessCA although you might not need that.

> When using EPICS 7 does one still need to link explicitly with pvAccess,
> pvDatabase, etc. or are those included in EPICS_BASE_IOC_LIBS or some
> other symbol?

We provide a new variable EPICS_BASE_PVA_CORE_LIBS which contains the
core PVA libraries (put this in your *_LIBS before EPICS_BASE_IOC_LIBS):

> EPICS_BASE_PVA_CORE_LIBS = pvAccessIOC pvAccessCA pvAccess pvData

Note that neither nt nor pvDatabase are included there, they still need
to appear before the above variable. If you want the IOC to be able to
serve records over pvAccess and your DBD file includes qsrv.dbd you will
also need the qsrv library, also before either of the variables.

HTH,

- Andrew

-- 
Arguing for surveillance because you have nothing to hide is no
different than making the claim, "I don't care about freedom of
speech because I have nothing to say." -- Edward Snowdon

Replies:
RE: Link problem in areaDetector with pva libraries Mark Rivers
References:
Link problem in areaDetector with pva libraries Mark Rivers

Navigate by Date:
Prev: Link problem in areaDetector with pva libraries Mark Rivers
Next: RE: Link problem in areaDetector with pva libraries Mark Rivers
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
Navigate by Thread:
Prev: Link problem in areaDetector with pva libraries Mark Rivers
Next: RE: Link problem in areaDetector with pva libraries Mark Rivers
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
ANJ, 05 Dec 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·