EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: fd_caMotif build can't find Xm includes
From: Eric Williams <[email protected]>
To: Steven Hartman <[email protected]>
Cc: [email protected]
Date: Wed, 11 Jun 2003 13:11:50 -0700
At 03:52 PM 6/11/2003 -0400, Steven Hartman wrote:
On Wed, 11 Jun 2003, Eric Williams wrote:
> The include files are there.  The -l option is not in the gcc command line.
> But it wasn't on the RH 8 system, either, and that built OK.  Where in the
> build configuration should the option be added?

That was an -I (for include files), not -l (for libraries), though you'll
need the libraries, too.

Sorry for the typo, my mail font obfuscated the letters.


Are other motif based applications/extensions
building (medm, for instance)? Is HOST_ARCH defined correctly (linux-x86,
for example)?

Or are you building fd_caMotif in an application directory? (I just found
fd_caMotif.c in testApp/src left over from my training session at LANL.)

Yes, that's the case. Leftovers from USPAS training. HOST_ARCH looks OK.


If so, it doesn't look like there is anywhere in base/configure/* that
defines a motif include directory for use in the application. I don't know
what the `best' way to to do this is, but a simple way would be to have
the folowing in testApp/src/Makefile . .  .

        PROD_HOST += fd_caMotif
        fd_caMotif_CFLAGS += -I/usr/X11R6/include
        fd_caMotif_LDFLAGS += -L/usr/X11R6/lib -lXm -lXt -lX11
        fd_caMotif_LIBS += $(EPICS_BASE_HOST_LIBS)

I added these two lines:


        fd_caMotif_CFLAGS += -I/usr/X11R6/include
        fd_caMotif_LDFLAGS += -L/usr/X11R6/lib

and the Make proceeded successfully, thanks. (The rest looked like it was already there.) It's still a mystery why my laptop from the class with the same environment doesn't require them. Oh, well.


Thanks again.
--
eric



References:
Re: fd_caMotif build can't find Xm includes Eric Williams
fd_caMotif build can't find Xm includes Eric Williams
Re: fd_caMotif build can't find Xm includes Steven Hartman

Navigate by Date:
Prev: Re: fd_caMotif build can't find Xm includes Steven Hartman
Next: RE: Preemptive callback required Jeff Hill
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: fd_caMotif build can't find Xm includes Steven Hartman
Next: R3.14.2 linker options for building on linux Geoff Savage
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·