EPICS Controls 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  <20122013  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  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: EPICS build on armv6l
From: Florian Feldbauer <[email protected]>
To: Tim Robinson <[email protected]>
Cc: [email protected]
Date: Wed, 13 Jun 2012 09:24:30 +0200
Hi all,

worked for me too. Tim is right, you have to include
$(CONFIG)/CONFIG.gnuCommon, too, in order
to have the $(CC) and $(CCC) macros in the Makefiles
defined.
Without it make uses the commands 'c' for .cpp and 'cc' for .c.
Since cc is a compiler, this works, but 'c' is not a command, so compiling .cpp fails.

Best regards and thanks for your help
Florian

On 06/13/2012 01:06 AM, Tim Robinson wrote:
Hi

My raspberryPi arrived this morning, one of the things I wanted to
try on it was EPICS. I have time on my hands at the moment, so I
did a quick trial of this.

Hi Florian,

On 2012-06-12 Florian Feldbauer wrote:
Currently arm is only supported as target not as host for build.
Since the Raspberry Pi has a gnu c compiler and all the libraries I
need (also a x-server), would it be possible to build EPICS directly
on this system instead of building it on a different system?
Yes, although as Jeff said you might need to add a few things to the
configure/os directory to get it to build.  Since you're self-hosting I
think you should be able to use the generic target name linux-arm for
this build, which should simplify the Base configuration process.
I also chose linux-arm, though I wondered if I should indicate endianness
too.

You will need to create the file CONFIG.linux-arm.Common containing the
line
     include $(CONFIG)/os/CONFIG.UnixCommon.Common
but that might be all you actually have to do.  CONFIG.Common.linux-arm
may look like it's only set up for cross-compilation, but those
settings are actually overrides to variables set in
CONFIG.Common.UnixCommon so first try building without making any
changes there.
I did that, and also included $(CONFIG)/CONFIG.gnuCommon
I dare say that's not the way (or place) to do it, but I found that
without that, COMPILE.cpp was undefined, so I was able to compile .c
sources, but not .cpp
I haven't got to the bottom of that, maybe tomorrow.

In case it's not clear, files names *.<host>.Common are included
whenever building on<host>  irrespective of the target; files named
*.Common.<target>  are included whenever compiling for<target>  on any
host; files named *.<host>.<target>  are used whenever that particular
combination of<host>  and<target>  are involved.  Files named
CONFIG.*.* contain default settings for the build process, while files
named CONFIG_SITE.*.* are intended for site- specific settings such as
paths that might vary (location of cross-compilers etc.).

After a top-level 'make' succeeds, you will want to use 'make runtests'
to execute the build-in test programs (note that epicsMessageQueueTest
takes 5 minutes to run, don't assume it has crashed when the messages
stop mid-test).
The tests passed
That's all I've tried so far

Thanks

tim

Hope this gets you started, ask if you get stuck.  I would be
interested in adding your configuration files to the Base distribution
if you would like to contribute them once you have everything working.

- Andrew
--
Never interrupt your enemy when he is making a mistake.
-- Napoleon Bonaparte


--
-------------------------------------
| Florian Feldbauer                 |
| Ph.D. student                     |
|                                   |
| Institut für Experimentalphysik I |
| Ruhr-Universität Bochum           |
| Universitätsstr. 150              |
| D-44780 Bochum                    |
|                                   |
| Office: NB 2/173                  |
| Phone:  (+49)234 / 32-23538       |
| Fax:    (+49)234 / 32-14170       |
| Web:    http://www.ep1.rub.de     |
-------------------------------------


Replies:
Re: EPICS build on armv6l Andrew Johnson
References:
EPICS build on armv6l Florian Feldbauer
Re: EPICS build on armv6l Andrew Johnson
RE: EPICS build on armv6l Tim Robinson

Navigate by Date:
Prev: RE: EPICS build on armv6l Tim Robinson
Next: MEDM replacement for linux and windows based on Qt Mezger Anton Christian
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: EPICS build on armv6l Tim Robinson
Next: Re: EPICS build on armv6l Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·