<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 03/08/2012 12:51 PM, Binkowski, Cassio wrote:
<blockquote
cite="mid:CAG93Rg4L6ECx--MOMF7MnZfGA7bgyQLaXJLYWrjg4mVD9CqhJw@mail.gmail.com"
type="cite">Hi everyone. I'm not being able to make the Hello
application in the CentOS Virtual Machine.<br>
Please see below the steps I took to build RTEMS and then try
building the Hello World app.<br>
<br>
1) Created the folder TEST in /home/rtems.<br>
<br>
2) In the terminal, inside the folder TEST:<br>
2.1) export PATH=/opt/rtems-4.11/bin:${PATH}<br>
2.2) ~/rtems-4.11-work/rtems/configure
--target=sparc-rtems4.11 --disable-posix --disable-networking
--disable-cxx --enable-rtemsbsp=sis --enable-tests=samples<br>
</blockquote>
<br>
There is no --prefix option on this to specify an install point.<br>
If you used --prefix=/home/rtems/rtems-4.11-work/bsp-install,<br>
then RTEMS_MAKEFILE_PATH would be set to <br>
/home/rtems/rtems-4.11-work/bsp-install/sparc-rtems4.11/sis<br>
<blockquote
cite="mid:CAG93Rg4L6ECx--MOMF7MnZfGA7bgyQLaXJLYWrjg4mVD9CqhJw@mail.gmail.com"
type="cite">
2.3) gmake all<br>
<br>
<br>
</blockquote>
No install step<br>
<blockquote
cite="mid:CAG93Rg4L6ECx--MOMF7MnZfGA7bgyQLaXJLYWrjg4mVD9CqhJw@mail.gmail.com"
type="cite">3) Copied the folder Samples from
~/rtems-4.11-work/rtems/testsuites/samples. Pasted it inside the
TEST folder.<br>
<br>
-- The HELLO folder, inside Samples, has the following contents:<br>
<div style="margin-left:40px">
hello.doc<br>
hello.scn<br>
init.c<br>
Makefile.am<br>
Makefile.in<br>
</div>
<br>
</blockquote>
The Makefile.* indicates it is an autoconf build system<br>
and (for RTEMS) only works inside the source tree.<br>
3.1) still inside the Terminal: export
RTEMS_MAKEFILE_PATH=/home/rtems/test/sparc-rtems4.11/sis<br>
<blockquote
cite="mid:CAG93Rg4L6ECx--MOMF7MnZfGA7bgyQLaXJLYWrjg4mVD9CqhJw@mail.gmail.com"
type="cite"><br>
</blockquote>
There is a set of example programs .. examples-v2 which use a simple<br>
build system and use RTEMS_MAKEFILE_PATH to find the BSP
installation.<br>
<br>
Grr... violated my own rule of rushing something to get out the door
before a<br>
weekend, trip, or holiday. You always end up in a hurry and missing
stuff.<br>
The VM is missing the checkout of examples-v2. :(<br>
<br>
cd ~/rtems-4.11-work<br>
git clone git://git.rtems.org/examples-v2.git<br>
<br>
Then there are various programs which can be built using the<br>
RTEMS_MAKEFILE_PATH build system and an installed RTEMS.<br>
<br>
Look in the subdirectory hello and you will see 3 hello world
variants<br>
that can be built against an install RTEMS.<br>
<br>
<blockquote
cite="mid:CAG93Rg4L6ECx--MOMF7MnZfGA7bgyQLaXJLYWrjg4mVD9CqhJw@mail.gmail.com"
type="cite">3.2) I have tried 2 commands to try in making it,
unsuccessfully though. See below:<br>
<br>
[rtems@localhost hello]$ make<br>
make: *** No targets specified and no makefile found. Stop.<br>
[rtems@localhost hello]$ make -f Makefile.am<br>
Makefile.am:12: /make/custom/@RTEMS_BSP@.cfg: No such file or
directory<br>
Makefile.am:13: /../automake/<a moz-do-not-send="true"
href="http://compile.am">compile.am</a>: No such file or
directory<br>
Makefile.am:14: /../automake/<a moz-do-not-send="true"
href="http://leaf.am">leaf.am</a>: No such file or directory<br>
Makefile.am:24: /../automake/<a moz-do-not-send="true"
href="http://local.am">local.am</a>: No such file or directory<br>
make: *** No rule to make target `/../automake/<a
moz-do-not-send="true" href="http://local.am">local.am</a>'.
Stop.<br>
[rtems@localhost hello]$ make -f Makefile.in<br>
Makefile.in:16: *** missing separator. Stop.<br>
</blockquote>
<br>
The Makefile.am is a very stylized file which is processed by two<br>
tools to get the real Makefile.<br>
<blockquote
cite="mid:CAG93Rg4L6ECx--MOMF7MnZfGA7bgyQLaXJLYWrjg4mVD9CqhJw@mail.gmail.com"
type="cite"><br>
I guess I'm missing something or just trying to build Hello World
in the wrong folder.<br>
Can you guys help me out?<br>
</blockquote>
<br>
You ran into another of my mistakes.<br>
<br>
On a positive note, you are making a good impression. The reports
and<br>
catching the mistakes are awesome. I will update the VM when you<br>
succeed and we go through the issues you had to make sure I fixed
them.<br>
<br>
<pre class="moz-signature" cols="72">--
Joel Sherrill, Ph.D. Director of Research& Development
<a class="moz-txt-link-abbreviated" href="mailto:joel.sherrill@OARcorp.com">joel.sherrill@OARcorp.com</a> On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
</pre>
</body>
</html>