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  2010  2011  <20122013  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  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: [makefile] adding a library to an EPICS application
From: Andrew Johnson <[email protected]>
To: [email protected]
Date: Wed, 19 Dec 2012 17:38:35 -0600
Hi,

On 2012-12-19 Mark Rivers wrote:
> 
> What I can't answer, but hopefully Janet Anderson can, is how you tell
> EPICS to look for a library in a location other than the standard Linux
> search path for include files and libraries.

You tell the build system where to find libXxx.a or libXxx.so by setting the 
variable Xxx_DIR to the directory containing the library.  In Pavel's case his 
Makefile has the line
    hello_LIBS += my_library
so he needs
    my_library_DIR = /where/my/library/lives

For include file directories, the simplest way is to set USR_INCLUDES like 
this:
    USR_INCLUDES += -I /where/my/headers/live
You can also set OS-specific paths if you need to, for example
    USR_INCLUDES_Linux += -I /my/linux/headers

In general I recommend making use of the EPICS build system if you can because 
we take care of things like creating dependency files and handling multiple 
architecture builds from the same source tree; most other build systems need 
you to do extra work for that kind of thing.

HTH,

- Andrew
-- 
Computer science is as much about computers as astronomy is about
telescopes. -- Edsger Dijkstra

Replies:
Re: [makefile] adding a library to an EPICS application Martin Konrad
References:
[makefile] adding a library to an EPICS application Pavel Maslov
RE: [makefile] adding a library to an EPICS application Mark Rivers

Navigate by Date:
Prev: Re: cross-compile error S. Banerian
Next: SNL with C Pierrick M Hanlet
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: [makefile] adding a library to an EPICS application Mark Rivers
Next: Re: [makefile] adding a library to an EPICS application Martin Konrad
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·