<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:#000000">Sure! <a href="https://github.com/syrba4eva/RTEMS/blob/main/wscript">https://github.com/syrba4eva/RTEMS/blob/main/wscript</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 15 Mar 2021 at 20:36, Vijay Kumar Banerjee <<a href="mailto:vijay@rtems.org">vijay@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Mar 15, 2021 at 1:30 PM Olga Syrbachova <<a href="mailto:syrba4eva28@gmail.com" target="_blank">syrba4eva28@gmail.com</a>> wrote:<br>
><br>
> Thank you very much for your reply!<br>
> Unfortunately I'm still a bit confused and don't quite understand what to do. Where do I need to modify the "include" parameter? In the wscript file from the "hello" example there is no "include" parameter. I also tried to find a tutorial on how to write a wscript, but didn't find any (Could you suggest any please?). So I tried to copy the file "tmacros.h" from testsuites/support/include to app/ticker. Now after running ./waf I get an error, which tells me that "buffer_test_io.h" wasn't found. When I copied it to my app/ticker directory it didn't work and I still have the same error.<br>
><br>
Would it be possible for you to paste your wscript somewhere (like<br>
<a href="http://gist.github.com" rel="noreferrer" target="_blank">gist.github.com</a>) and share it here so that we can have a look and help<br>
you with that?<br>
<br>
Best regards,<br>
Vijay<br>
<br>
> Waf: Entering directory `/home/olga/development/app/ticker/build/sparc-rtems5-erc32'<br>
> [1/3] Compiling tasks.c<br>
> [2/3] Compiling init.c<br>
> In file included from ../../system.h:17:0,<br>
> from ../../init.c:15:<br>
> ../../tmacros.h:32:10: fatal error: buffer_test_io.h: No such file or directory<br>
> #include <buffer_test_io.h><br>
> ^~~~~~~~~~~~~~~~~~<br>
> compilation terminated.<br>
><br>
> In file included from ../../system.h:17:0,<br>
> from ../../tasks.c:22:<br>
> ../../tmacros.h:32:10: fatal error: buffer_test_io.h: No such file or directory<br>
> #include <buffer_test_io.h><br>
> ^~~~~~~~~~~~~~~~~~<br>
> compilation terminated.<br>
><br>
> Waf: Leaving directory `/home/olga/development/app/ticker/build/sparc-rtems5-erc32'<br>
> Build failed<br>
> -> task in 'ticker.exe' failed with exit status 1 (run with -v to display more information)<br>
> -> task in 'ticker.exe' failed with exit status 1 (run with -v to display more information)<br>
><br>
> On Mon, 15 Mar 2021 at 16:21, Vijay Kumar Banerjee <<a href="mailto:vijay@rtems.org" target="_blank">vijay@rtems.org</a>> wrote:<br>
>><br>
>> Hi Olga,<br>
>><br>
>><br>
>> On Mon, Mar 15, 2021 at 8:29 AM Olga Syrbachova <<a href="mailto:syrba4eva28@gmail.com" target="_blank">syrba4eva28@gmail.com</a>> wrote:<br>
>> ><br>
>> > Thank you very much for your reply!<br>
>> ><br>
>> > I've built the RTEMS Kernel for erc32. Then I followed this tutorial <a href="https://docs.rtems.org/branches/master/user/start/app.html" rel="noreferrer" target="_blank">https://docs.rtems.org/branches/master/user/start/app.html</a> to build a "Hello World" application and it works just fine. Then I've tried to create another application following the steps in the tutorial.<br>
>> > 1. In $HOME/development/app/ I created a directory "ticker".<br>
>> > 2. cd ticker<br>
>> > 3. curl <a href="https://waf.io/waf-2.0.19" rel="noreferrer" target="_blank">https://waf.io/waf-2.0.19</a> > waf<br>
>> > chmod +x waf<br>
>> > git init<br>
>> > git submodule add git://<a href="http://git.rtems.org/rtems_waf.git" rel="noreferrer" target="_blank">git.rtems.org/rtems_waf.git</a> rtems_waf<br>
>> > 4. I've copied the files "init.c", "tasks.c", "system.h" from testsuites/samples<br>
>> > 5. In the "wscript" I've changed the lines 32 and 34 to target = 'ticker.exe', source = ['init.c', 'tasks.c']<br>
>> > 6. ./waf configure --rtems=$HOME/development/rtems/5 --rtems-bsp=sparc/erc32<br>
>> > 7. and running ./waf next, I get an error. It looks like the file "tmacros.h", which is included in "system.h", cannot be found.<br>
>> ><br>
>> You have changed the "target" and "source" parameters in your wscript.<br>
>> You'd also need to modify the "include" parameter and add relative<br>
>> path to tmacros.h. For multiple headers, you'll have to add the paths<br>
>> as a string with space-separated values or a list like this:<br>
>> `includes='./ ../ ./path/to/include/'`<br>
>><br>
>><br>
>> > What am I doing wrong? Is the way to run other examples exactly the same as to run a "Hello World" example?<br>
>> The other examples will also follow a similar wscript structure but<br>
>> hello world is the simple one with fewer includes so it's a good place<br>
>> to start if you're trying to learn how to make a separate project with<br>
>> RTEMS applications using waf.<br>
>><br>
>><br>
>> Best regards,<br>
>> Vijay<br>
>> > _______________________________________________<br>
>> > users mailing list<br>
>> > <a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
>> > <a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a><br>
</blockquote></div>