well then you need to figure out while configure fails to get the proper flags in your case. A pull request would be welcome.
> With your first reply, I think the problem occur during migrate xenomai 3 into machinekit. So I checkout machinekit an older version. It works already.
can you isolate the difference and provide a patch in case there is an error? please look at the git SHA's which 'work' and 'do not work' and look at the diff for
configure.ac, this might provide a clue.
> In the other hand, I also want to try use xenomai 3 with machinekit
see
https://github.com/machinekit/machinekit/issues/598
Xenomai3 is -> unreleased <- - why on earth should one support a kernel/thread system which still has a changing API? If any, this makes sense after a release, and after packaged kernels have appeared. IMO before that it is pretty much a waste of time.
Machinekit Xenomai3 support is unfinished, and hence not supported. AFAICT there will be no gain but pain if you try. Be prepared to help yourself in this case.
Also, do not expect any wonders from a Xenomai3 kernel.
The quest for shaving off a few microseconds latency is a cargo cult with a loooooong tradition practiced enthusiastically by many folks, but it has practically no bearing on actual results, especially if you have hardware stepgen/encoder/pwm's (like mesanet or BB PRU). Some would say the majority of the latency discussion as practiced is a classic case of group think.
There are basic capabilities which can be added to provide much greater value, read for instance
https://github.com/machinekit/machinekit/issues/687 . That is much more interesting than kernel fiddling, and an interesting work area. Supporting yet another not-quite-finished RT kernel is not IMO.
Also, please understand that Xenomai3 is basically a transition vehicle for Xenomai2 users to use RT-PREEMPT underneath without much API breakage.
Machinekit supports RT-PREEMPT natively so it does not have that problem. So what is the point for a grand detour?
> , May I know now default xenomai lib directory? Maybe I can try to install xenomai lib into this directory, and test again.
well wherever you installed it, and xeno-config will point to it
If building say trivial-periodic.c with the supplied Makefile and xeno-config works, then you need to investigate changes to
configure.ac to get your setup to work.
>
>
>
> > Suggestion: use Debian wheezy as recommended
> >
> > I am trying Debian wheezy before, but it always got one error: The system run in low graphic.
>
> I am positive wheezy can be made to run with arbitrary resolution on just about PC platforms. But that would be better solved using some Debian forum.
>
> your time is better invested in retrying with wheezy instead of trying to tame ubuntu
>
> Thanks for your advise, I will try to use wheezy. By the way, may i know the latency will be less when work in Wheezy platform?
no, latency is primarily a kernel issue
if it is the xenomai latency test and a homebrew kernel, I fear there is little which can be done here to answer that.
What are you actually trying to achieve?
If you want a stable platform on a PC to actually run things, use wheezy (soon jessie - not just yet), machinekit master and a recent rt-preempt kernel or the Xenomai2 3.8 kernel from the dovetail repo as per
machinekit.io instructions, and be done with it
that works, packages available, build from source verified to work.
If you want to help develop, that is certainly welcome but make sure you understand what you are getting into. You will be out on your own, pretty much - such is life in bleeding edge territory.
- Michael