Hi Murali,
On 11/13/2013 05:17 PM, Shankar, Murali wrote:
My question is about how to add avcodec to the product (executable)
correctly? Should I use |USR_LIBS| or |PROD_LIBS| or something else? All
of these seem to give me various make/linker errors. I’d like to stay
within the EPICS build system to solve the problem of
1)Include an external library in your install package using LIB_INSTALLS
2)Include it in your product using xyz…
Do you actually need to install a copy that library, or are you just
doing that to try and get it to work?
To link a program with an external library you add the library name to
the _LIBS variable as usual, then you just tell the build system where
that library can be found by setting its *_DIR variable. In your case I
think you just need these lines in the Makefile that is building the
executable:
avcodec_DIR = $(PACKAGE_SITE_TOP)/ffmpeg/$(FFMPEG_MODULE_VERSION)/lib
xxx_LIBS += avcodec
to link it into just the program 'xxx', or
PROD_LIBS += avcodec
if you're building multiple programs and want this linked into all of
them.
If that doesn't work my memory may be slightly off, but I think it's right.
- Andrew
--
Advertising may be described as the science of arresting the human
intelligence long enough to get money from it. -- Stephen Leacock
- References:
- LIB_INSTALLS, static builds and .so files. Shankar, Murali
- Navigate by Date:
- Prev:
LIB_INSTALLS, static builds and .so files. Shankar, Murali
- Next:
Re: areaDetector for a Basler GigE camera Florian Sorgenfrei
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
<2013>
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
LIB_INSTALLS, static builds and .so files. Shankar, Murali
- Next:
Substitutions defaults and tricks Brown, Garth
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
<2013>
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|