I have a noobie EPICS build system question. I am trying to build an IOC using various modules statically (SHARED_LIBRARIES=NO & STATIC_BUILD=YES) for linux. Some external code is available only as .so’s; so I am adding these to my install package using
LIB_INSTALLS += $(PACKAGE_SITE_TOP)/ffmpeg/$(FFMPEG_MODULE_VERSION)/lib/libavcodec.so and so on. The .so’s get correctly copied to the lib/linux-x86 folder as expected.
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…
Any help is appreciated.
Regards,
Murali