Hi all,

I am running a 2.5.6 xenomai version (under a 2.5.32.7 Debian squeeze 64b
linux). I used to have a can driven by CanFestival which is supported for
both linux and xenomai. I had no problem with linux and i am now trying to
use it with xenomai. The point is that the configuration of makefile uses
old xeno-config commands that shows depracated use cases like :
xeno-config  --xeno-ldflags
--xeno-ldflags is deprecated, use --skin=name --ldflags instead

Here is the old code FYI :
    RT_LIB_DIR=`$XENO_CONFIG --library-dir`\ -Wl,-rpath\ `$XENO_CONFIG
--library-dir`
    SUB_EXE_CFLAGS=$SUB_EXE_CFLAGS\ `$XENO_CONFIG --xeno-ldflags`\
-L$RT_LIB_DIR\ -lnative\ -lrtdm
    SUB_PROG_CFLAGS=$SUB_PROG_CFLAGS\ -DUSE_XENO\ `$XENO_CONFIG
--xeno-cflags`

which ended in :
SUB_EXE_CFLAGS=... -L/usr/lib -lxenomai -lpthread -L/usr/lib -Wl,-rpath
/usr/lib -lnative -lrtdm
SUB_PROG_CFLAGS= ... -DUSE_XENO -I/usr/include/xenomai -D_GNU_SOURCE
-D_REENTRANT -Wall -pipe -D__XENO__
Note : I don't really know if those where correct for previous versions this
xenomai case may be nroken.

Now, as xeno-config depracated messages suggest I should not use "
$XENO_CONFIG --xeno-ldflags" but "$XENO_CONFIG --skin=native --ldflags"
without adding -lnative.
My problem is that I have both -lnative and -lrtdm so I wonder why skin is
only accepting one at a time.
Is it forbidden now to do such mixes ?
Did CanFestival code should be separated into 2 pieces one with skin=native
the other with skin=rtdm ?
Should I only add -lrtdm "brutally"


BTW, the helper message of xeno-config is not very clear, it seems it is
printed twice , one with an old message, and one with a new :
xeno-config --verbose
        --version="2.5.6"
        --cc="gcc"
        --arch="x86"
        --prefix="/usr"
        --xeno-cflags="-I/usr/include/xenomai -D_GNU_SOURCE -D_REENTRANT
-Wall -pipe -D__XENO__"
        --xeno-ldflags="-L/usr/lib -lxenomai -lpthread "
        --posix-cflags=""
        --posix-ldflags="-Wl,@/usr/lib/posix.wrappers -L/usr/lib
-lpthread_rt -lxenomai -lpthread -lrt "
        --library-dir="/usr/lib"
Usage xeno-config --skin=skinname OPTIONS
Options :
    --help
    --v,--verbose
    --version
    --cc
    --arch
    --prefix
    --skin native|posix|psos|rtai|rtdm|uitron|vrtx|vxworks
    --cflags
    --ldflags
    --lib*-dir,--libdir,--user-libdir

Deprecated options:
    --xeno-cflags
    --xeno-ldflags
    --posix-cflags
    --posix-ldflags
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to