<div class="gmail_quote">Hi Joel, my comments below:</div><div class="gmail_quote"><br></div><div class="gmail_quote">On Thu, Mar 8, 2012 at 4:24 PM, Joel Sherrill <span dir="ltr"><<a href="mailto:joel.sherrill@oarcorp.com">joel.sherrill@oarcorp.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><div class="im">
On 03/08/2012 12:51 PM, Binkowski, Cassio wrote:
<blockquote 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></div>
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></div></blockquote><div><br></div><div>Will try to do this. However, it's not on the wiki. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<blockquote type="cite">
2.3) gmake all<br>
<br>
<br>
</blockquote>
No install step</div></blockquote><div><br></div><div>Can you describe this a little better?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF">
<div class="im"><br>
<blockquote 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></div>
The Makefile.* indicates it is an autoconf build system<br>
and (for RTEMS) only works inside the source tree.<div class="im"><br>
3.1) still inside the Terminal: export
RTEMS_MAKEFILE_PATH=/home/rtems/test/sparc-rtems4.11/sis<br>
<blockquote type="cite"><br>
</blockquote></div>
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://<a href="http://git.rtems.org/examples-v2.git" target="_blank">git.rtems.org/examples-v2.git</a><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.<div class="im"><br></div></div></blockquote><div>You know, I have been able to compile this sample application.</div><div>I found the folders inside the following directory:</div>
<div>~/test/sparc-rtems4.11/c/sis/testsuites/samples/hello</div><div><br></div><div>Due to this discovery, I changed the RTEMS_MAKEFILE_PATH</div><div> from:</div><div><br></div><div> export RTEMS_MAKEFILE_PATH=/home/rtems/test/sparc-rtems4.11/sis
</div><div><br></div><div>to:</div><div><br></div><div>export RTEMS_MAKEFILE_PATH=/home/rtems/test/sparc-rtems4.11/c/sis
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF"><div class="im">
<br>
<blockquote 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 href="http://compile.am" target="_blank">compile.am</a>: No such file or
directory<br>
Makefile.am:14: /../automake/<a href="http://leaf.am" target="_blank">leaf.am</a>: No such file or directory<br>
Makefile.am:24: /../automake/<a href="http://local.am" target="_blank">local.am</a>: No such file or directory<br>
make: *** No rule to make target `/../automake/<a href="http://local.am" target="_blank">local.am</a>'.
Stop.<br>
[rtems@localhost hello]$ make -f Makefile.in<br>
Makefile.in:16: *** missing separator. Stop.<br>
</blockquote>
<br></div>
The Makefile.am is a very stylized file which is processed by two<br>
tools to get the real Makefile.<div class="im"><br>
<blockquote 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></div>
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.</div></blockquote><div><br></div><div>Thanks Joel. I was actually afraid of doing something wrong, but you guys were really cooperative and helped me out every time I needed.</div><div><br></div><div>I will always contribute and report whatever I find wrong of for improvements :)</div>
<div><br></div><div>Cassio</div></div>