EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: linking to shared objects user libraries
From: "Andrew C. Starritt" <[email protected]>
To: "[email protected]" <[email protected]>
Date: Mon, 12 Jul 2010 10:22:11 +1000
Hi all,
  I found the following worked for me - add a SHRLIB_SEARCH_DIRS directive to the IOC Makefile, eg:


SHRLIB_SEARCH_DIRS += /usr/local/lib
myIOC_LIBS += Xxxx


where   libXxxx.so  is located in  /usr/local/lib


Andrew Starritt
Principal Controls Engineer
Australian Synchrotron
800 Blackburn Road, Clayton, Victoria 3168, Australia
Tel: + 61 3 8540 4164    Fax: + 61 3 8540 4200
E-mail: [email protected]



-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Andrew Johnson
Sent: Saturday, July 10, 2010 2:33 AM
To: [email protected]
Subject: Re: linking to shared objects user libraries

On Friday 09 July 2010 11:20:53 Mark Rivers wrote:
>
> I am not sure exactly how to do this, because I have always used
> libraries that were either part of the EPICS build or in standard
> locations for the linker, like /usr/local/lib.  But I think in your
> Makefile you need to specify just the name of the library like:
>
> TargetMon_LIBS += MICECoreUtils
>
> and separately tell it a library path where this file is located.

I believe Mark is right; you would specify the directory to find the library
by setting the variable MICECoreUtils_DIR, in your case I think it would be:

MICECoreUtils_DIR = /home/epics/Software/MICESoftware/MICETrackerSoftware/.lib

- Andrew
--
The best FOSS code is written to be read by other humans -- Harald Welte

<br>This message and any attachments may contain proprietary or confidential information. If you are not the intended recipient or you received the message in error, you must not use, copy or distribute the message. Please notify the sender immediately and destroy the original message. Thank you.

References:
linking to shared objects user libraries Pierrick Hanlet
Re: RE: linking to shared objects user libraries Pierrick Hanlet
RE: RE: linking to shared objects user libraries Mark Rivers
Re: linking to shared objects user libraries Andrew Johnson

Navigate by Date:
Prev: RE: Another asynPortDriver Question Mark Rivers
Next: RE: Another asynPortDriver Question Wang Xiaoqiang
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: linking to shared objects user libraries Andrew Johnson
Next: RE: RE: linking to shared objects user libraries Davidsaver, Michael
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·