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  2012  2013  2014  2015  2016  <2017 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
<== Date ==> <== Thread ==>

Subject: RE: Building an EPICS App for a Linux Target
From: Mark Rivers <rivers@cars.uchicago.edu>
To: Nab Rahman <nrahman@pppl.gov>, "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Thu, 19 Oct 2017 22:50:43 +0000
Hi Nab,

For header files that the compiler will find in standard system locations (e.g. /usr/include, etc.) you just need to include types.h in your C or C++ source file.  You don't need to do anything to your Makefile.

For system libraries that will be found in standard locations (/usr/lib, /usr/local/lib, etc) you need to add a line like this to your Makefile (this is for libtiff).

example_SYS_LIBS += tiff

If you have more questions let me know.

Mark


________________________________
From: tech-talk-bounces@aps.anl.gov [tech-talk-bounces@aps.anl.gov] on behalf of Nab Rahman [nrahman@pppl.gov]
Sent: Thursday, October 19, 2017 2:05 PM
To: tech-talk@aps.anl.gov
Subject: Building an EPICS App for a Linux Target

Hello,

I am currently using EPICS Base 3.14.12.6 with a linux x86_64 machine and am a relatively new user to EPICS.

I want to run an EPICS Application as a Linux target instead of a VxWorks target and was told that the method to do
so was to edit the "App/src/" directory's Makefile but not sure as to how to approach that task.

How does a user add the support libraries needed for certain C code subroutines from their usr/include path?
For example, I need to add the "types.h" header file. I notice there are flag statements (+=) in the makefile as follows:

# Build the main IOC entry point where needed
example_SRCS_DEFAULT += exampleMain.cpp
example_SRCS_vxWorks += -nil-

# Link in the code from our support library
example_LIBS += exampleSupport

I suspect that if I can add the necessary support libraries, then my EPICS app and database will function correctly.

Thanks for the help,
Nab Rahman

References:
Building an EPICS App for a Linux Target Nab Rahman

Navigate by Date:
Prev: MP2000 LVDT Readout/Controller Ibrahim Saleh
Next: Re: Asyn GPIB proto file exception @writetimeout Dirk Zimoch
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
Navigate by Thread:
Prev: Building an EPICS App for a Linux Target Nab Rahman
Next: MP2000 LVDT Readout/Controller Ibrahim Saleh
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
ANJ, 20 Oct 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·