Building project - Eclipse

Binkowski, Cassio cassioiks at gmail.com
Tue Mar 13 12:26:24 UTC 2012


On Mon, Mar 12, 2012 at 3:00 PM, Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:

> It is really hard to guess what you are doing.
>
>
> On 12/03/12 18:20, Binkowski, Cassio wrote:
>
>> Interesting!
>> I was able to fix those errors by changin the BSP path to:
>>
>> /home/rtems/test/sparc-rtems4.**11/c/sis/make
>>
>
> This is inside the build tree.  This will not work.  You must install the
> BSP with "make install".
>
>
>  Of course, I didn't do the "gmake install" before, so I had to re-build it
>> all. But anyway.
>>
>> The thing now is it won't find any includes, bsp.h or rtems.h
>>
>> How to proceed?
>>
>
> Run "make install" and set the BSP directory to
> "<prefix>/sparc-rtems4.11/sis"**.


Ok. I did it.
Rebuilt it with the prefix and did a "make install".

Eclipse configuration:
Base path: /opt/rtems-4.11
BSP path: /home/rtems/build/sparc-rtems4.11/sis

I'm trying to compile the example application found in:

http://www.rtems.org/onlinedocs/releases/rtemsdocs-4.10.2/share/rtems/html/c_user/c_user00533.html

And I'm getting this in Eclipse console:


**** Build of configuration Debug for project asd ****

make all
Building file: ../init.c
Invoking: Cross GCC Compiler
gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"init.d" -MT"init.d" -o
"init.o" "../init.c"
../init.c:10:17: warning: bsp.h: No such file or directory
../init.c:11:19: warning: rtems.h: No such file or directory
../init.c:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘user_application’
../init.c:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘init_task’
../init.c:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘user_application’
../init.c:71:22: warning: confdefs.h: No such file or directory
make: *** [init.o] Error 1

**** Build Finished ****

Can you help?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20120313/f116813b/attachment.html>


More information about the users mailing list