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: [makefile] adding a library to an EPICS application
From: Pavel Maslov <[email protected]>
To: EPICS Tech Talk <[email protected]>
Date: Wed, 19 Dec 2012 20:22:58 +0300
Hello,

What is the correct way to include a library to an EPICS app?
What I've been doing so far:
1. I precompile the library (so I've got an .a or *.so file),
2. Copy the header file into $(TOP)/include/
3. Then add my library to $(TOP)/helloapp/src/Makefile
hello_LIB += my_library
4. cd $(TOP)
5. make
6. Copy libmy_library.so to $(TOP)/lib/$(EPICS_HOST_ARCH)/
7. Hi!

Now, I don't like the process of manually creating these folders, which upon next make uninstall clean will be deleted.
What I wanted is to specify the path to libmy_library.so in the RELEASE file, and simply include it in the src/Makefile. As far as I understand, it's neither an EPICS module, nor a support app. Otherwise, it would be pretty much straightforward.

What if my library is installed via make install (header file and *.so are copied to /usr/local/) or is a standard linux lib? Is there a difference if I use shared vs. static lib?
What about the architecture (x86 vs x86_64)? 


--
Best regards,


Pavel Maslov, MS
Controls Engineer at Pulsed power Lab
Efremov Institute for Electro-Physical Apparatus
St. Petersburg, Russia

Mobile: +7 (951) 672 22 19
Landline: +7 (812) 461 01 01


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

Navigate by Date:
Prev: Re: How to get a list of all available PVs Till Straumann
Next: devlib2 bugfix (rare string corruption) Till Straumann
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: EPICS Base R3.14.12.3 now available Andrew Johnson
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 ·