All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pintu Kumar <pintu.ping@gmail.com>
To: Philippe Gerum <rpm@xenomai.org>
Cc: "Xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] Simple application for invoking rtdm driver
Date: Tue, 3 Apr 2018 16:14:19 +0530	[thread overview]
Message-ID: <CAOuPNLjwJj1iw6wkhceaOs4S=KL=v01nrQ6B3edbOweBRasE+w@mail.gmail.com> (raw)
In-Reply-To: <CAOuPNLjLT==YZU3EEDWvfoJBhR4bsYtKyMCTfz6SNt+YSxYzSQ@mail.gmail.com>

Hi,

Any clue on this?

I guess native and alchemy skin is internally same.
Then why rt_dev_xxx does not work with alchemy skin.
Please let me know the alternate API to invoke rtdm driver with alchemy skin.

Thanks,
Pintu


On Mon, Apr 2, 2018 at 7:18 PM, Pintu Kumar <pintu.ping@gmail.com> wrote:
> Hi,
>
> I tried changing "native" skin to "alchemy" skin and replaced header
> from native/timer.h to alchemy/timer.h
> But when I build my rtdm application, I get below error:
>
> app_test.c: In function ‘main’:
> app_test.c:41:7: warning: implicit declaration of function
> ‘rt_dev_open’ [-Wimplicit-function-declaration]
>   fd = rt_dev_open(DEVICE_NAME, O_RDWR);
>        ^
> app_test.c:50:8: warning: implicit declaration of function
> ‘rt_dev_write’ [-Wimplicit-function-declaration]
>   ret = rt_dev_write(fd, msg, len);
>         ^
> app_test.c:65:8: warning: implicit declaration of function
> ‘rt_dev_read’ [-Wimplicit-function-declaration]
>   ret = rt_dev_read(fd, buff, len);
>         ^
> app_test.c:76:2: warning: implicit declaration of function
> ‘rt_dev_close’ [-Wimplicit-function-declaration]
>   rt_dev_close(fd);
>   ^
> /tmp/ccTcHyFz.o: In function `main':
> app_test.c:(.text.startup+0x45): undefined reference to `rt_dev_open'
> app_test.c:(.text.startup+0x85): undefined reference to `rt_dev_write'
> app_test.c:(.text.startup+0xf2): undefined reference to `rt_dev_read'
> app_test.c:(.text.startup+0x15e): undefined reference to `rt_dev_close'
> collect2: error: ld returned 1 exit status
> Makefile:11: recipe for target 'app_test' failed
> make: *** [app_test] Error 1
>
> ---------------------------------------
> I even tried adding "-lrtdm" to the cflags but it did not work.
> skin = alchemy
> CC := $(shell $(INSTALL_PATH)/xeno-config --cc)
> CFLAGS := $(shell $(INSTALL_PATH)/xeno-config --skin=$(skin) --cflags)
> -O2 -lrtdm
>
> I am using Xenomai-3.0.
>
> Is there any specific library I need to include for alchemy with RTDM API?
>
>
>
> Thanks,
> Pintu
>
>


      reply	other threads:[~2018-04-03 10:44 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-20  1:42 [Xenomai] Simple application for invoking rtdm driver Pintu Kumar
2018-03-20  3:33 ` Greg Gallagher
2018-03-20  5:27   ` Pintu Kumar
2018-03-20  7:26     ` Pintu Kumar
2018-03-20  9:32       ` Philippe Gerum
2018-03-20 11:31         ` Pintu Kumar
2018-03-20 11:37           ` Philippe Gerum
2018-03-20 11:45           ` Philippe Gerum
2018-03-20 12:00             ` Pintu Kumar
2018-03-20 13:09               ` Philippe Gerum
2018-03-23 12:40                 ` Pintu Kumar
2018-03-25 12:09                   ` Philippe Gerum
2018-03-26 13:12                     ` Pintu Kumar
2018-03-26 15:09                       ` Philippe Gerum
2018-03-27 12:09                         ` Pintu Kumar
2018-03-27 13:05                           ` Philippe Gerum
2018-04-02 13:48                             ` Pintu Kumar
2018-04-03 10:44                               ` Pintu Kumar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOuPNLjwJj1iw6wkhceaOs4S=KL=v01nrQ6B3edbOweBRasE+w@mail.gmail.com' \
    --to=pintu.ping@gmail.com \
    --cc=rpm@xenomai.org \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.