2014-10-02 0:36 GMT+03:00 Lennart Sorensen <[email protected]>:
> On Thu, Oct 02, 2014 at 12:27:34AM +0300, agnes jurek wrote: > > I tried to write simple code myself using xenomai rtdm module. When I > added > > " > > #include <xenomai/rtdm/rtdm.h>", compilation was ok. But when I added " > > #include <xenomai/native/task.h>", I got an error message. It said that > > "/usr/include/xenomai/native/task.h:25:27: fatal error: nucleus/sched.h: > No > > such file or directory > > compilation terminated." > > Xenomai unfortunately requires you to add /usr/include/xenomai to your > includes, which does mean you don't have to put xenomai/ in your #include > statements though. > > # pkg-config --cflags libxenomai_rtdm libxenomai_native > -D_GNU_SOURCE -D_REENTRANT -D__XENO__ -I/usr/include/xenomai > > # pkg-config --libs libxenomai_rtdm libxenomai_native > -lrtdm -lnative -lxenomai -lpthread -lrt > > pkg-config is handy, and worth using. > > -- > Len Sorensen > @Lennart, you said "you don't have to put xenomai/ in your #include statements though.". But when I added "#include <rtdm/rtdm.h>" and "-lrtdm" on linking, I got error. If I add "#include <xenomai/rtdm/rtdm.h>", it is ok. _______________________________________________ Xenomai mailing list [email protected] http://www.xenomai.org/mailman/listinfo/xenomai
