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 | 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 |
<== 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 |
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.
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.)
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)
fd_caMotif_CFLAGS += -I/usr/X11R6/include fd_caMotif_LDFLAGS += -L/usr/X11R6/lib