Hi, I think I got solved the last error (* ./task_test : error while loading shared libraries : libnative.so.0 : cannot > open shared object file : Not such file or directory*) when I tried to execute my application below: #include <sys/mman.h> #include <native/task.h> #include <stdio.h> #define TASK_PRIO 99 /* Highest RT priority */ #define TASK_MODE 0 /* No flags */ #define TASK_STKSZ 0 /* Stack size (use default one) */
RT_TASK task_desc;
void task_body (void *cookie)
{
for (;;) {
printf("%s\n",'a');
}
}
int main (int argc, char *argv[])
{
int err;
mlockall(MCL_CURRENT|MCL_FUTURE);
err = rt_task_create(&task_desc,
"MyTaskName",
TASK_STKSZ,
TASK_PRIO,
TASK_MODE);
if (!err)
rt_task_start(&task_desc,&task_body,NULL);
/* ... */
}
void cleanup (void)
{
rt_task_delete(&task_desc);
}
I used the Makefile attached!!!
But now, when I execute ./task_test on my environment I got:
*segmentation fault
*Does it any relation with my application?*
*
Thanks,
Breno
Makefile
Description: Binary data
_______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
