Not building Sample app in CentOS
Binkowski, Cassio
cassioiks at gmail.com
Thu Mar 8 20:13:13 UTC 2012
Hi Joel, my comments below:
On Thu, Mar 8, 2012 at 4:24 PM, Joel Sherrill <joel.sherrill at oarcorp.com>wrote:
> On 03/08/2012 12:51 PM, Binkowski, Cassio wrote:
>
> Hi everyone. I'm not being able to make the Hello application in the
> CentOS Virtual Machine.
> Please see below the steps I took to build RTEMS and then try building the
> Hello World app.
>
> 1) Created the folder TEST in /home/rtems.
>
> 2) In the terminal, inside the folder TEST:
> 2.1) export PATH=/opt/rtems-4.11/bin:${PATH}
> 2.2) ~/rtems-4.11-work/rtems/configure --target=sparc-rtems4.11
> --disable-posix --disable-networking --disable-cxx --enable-rtemsbsp=sis
> --enable-tests=samples
>
>
> There is no --prefix option on this to specify an install point.
> If you used --prefix=/home/rtems/rtems-4.11-work/bsp-install,
> then RTEMS_MAKEFILE_PATH would be set to
> /home/rtems/rtems-4.11-work/bsp-install/sparc-rtems4.11/sis
>
Will try to do this. However, it's not on the wiki.
> 2.3) gmake all
>
>
> No install step
>
Can you describe this a little better?
>
> 3) Copied the folder Samples from
> ~/rtems-4.11-work/rtems/testsuites/samples. Pasted it inside the TEST
> folder.
>
> -- The HELLO folder, inside Samples, has the following contents:
> hello.doc
> hello.scn
> init.c
> Makefile.am
> Makefile.in
>
> The Makefile.* indicates it is an autoconf build system
> and (for RTEMS) only works inside the source tree.
>
> 3.1) still inside the Terminal: export
> RTEMS_MAKEFILE_PATH=/home/rtems/test/sparc-rtems4.11/sis
>
>
> There is a set of example programs .. examples-v2 which use a simple
> build system and use RTEMS_MAKEFILE_PATH to find the BSP installation.
>
> Grr... violated my own rule of rushing something to get out the door
> before a
> weekend, trip, or holiday. You always end up in a hurry and missing stuff.
> The VM is missing the checkout of examples-v2. :(
>
> cd ~/rtems-4.11-work
> git clone git://git.rtems.org/examples-v2.git
>
> Then there are various programs which can be built using the
> RTEMS_MAKEFILE_PATH build system and an installed RTEMS.
>
> Look in the subdirectory hello and you will see 3 hello world variants
> that can be built against an install RTEMS.
>
> You know, I have been able to compile this sample application.
I found the folders inside the following directory:
~/test/sparc-rtems4.11/c/sis/testsuites/samples/hello
Due to this discovery, I changed the RTEMS_MAKEFILE_PATH
from:
export RTEMS_MAKEFILE_PATH=/home/rtems/test/sparc-rtems4.11/sis
to:
export RTEMS_MAKEFILE_PATH=/home/rtems/test/sparc-rtems4.11/c/sis
>
> 3.2) I have tried 2 commands to try in making it, unsuccessfully though.
> See below:
>
> [rtems at localhost hello]$ make
> make: *** No targets specified and no makefile found. Stop.
> [rtems at localhost hello]$ make -f Makefile.am
> Makefile.am:12: /make/custom/@RTEMS_BSP at .cfg: No such file or directory
> Makefile.am:13: /../automake/compile.am: No such file or directory
> Makefile.am:14: /../automake/leaf.am: No such file or directory
> Makefile.am:24: /../automake/local.am: No such file or directory
> make: *** No rule to make target `/../automake/local.am'. Stop.
> [rtems at localhost hello]$ make -f Makefile.in
> Makefile.in:16: *** missing separator. Stop.
>
>
> The Makefile.am is a very stylized file which is processed by two
> tools to get the real Makefile.
>
>
> I guess I'm missing something or just trying to build Hello World in the
> wrong folder.
> Can you guys help me out?
>
>
> You ran into another of my mistakes.
>
> On a positive note, you are making a good impression. The reports and
> catching the mistakes are awesome. I will update the VM when you
> succeed and we go through the issues you had to make sure I fixed them.
>
Thanks Joel. I was actually afraid of doing something wrong, but you guys
were really cooperative and helped me out every time I needed.
I will always contribute and report whatever I find wrong of for
improvements :)
Cassio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20120308/5f09b350/attachment-0001.html>
More information about the users
mailing list