From: Franz Engel <franz_lambert_engel@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] Problem with Posix Skin and RTnet
Date: Tue, 22 Mar 2011 11:52:47 +0000 (GMT) [thread overview]
Message-ID: <846378.85636.qm@domain.hid> (raw)
[-- Attachment #1: Type: text/plain, Size: 2243 bytes --]
Hello,
I've a little problem. I began a new project where I've to use Kdevelop. So I thought it is a good idea to work with cmake-project and the posix skin to get a more commone code. I want to use RTnet for my communication. But I think that Xenomai don't use the RTnet-Driver. I got the message:
"Cannot assign requested address" from the function "ret=recvfrom(socket, &buffer, sizeof(buffer), (struct sockaddr *)&dest_addr, &sizeof(dest_addr))"
I think the problem is that Xenomai use the standart recvfrom and the standart recvfrom can not recognize the realtime driver. I use the following cmake file:
PROJECT(robotclient)
cmake_minimum_required(VERSION 2.8)
set(Robot_Client_VERSION_MAJOR 1)
set(Robot_Client_VERSION_MINOR 0)
set(XENOMAI_SEARCH_PATH "/usr/xenomai" "/usr/local/xenomai")
find_path(${XENOMAI_DIR} "include/xeno_config.h" ${XENOMAI_SEARCH_PATH})
IF(${XENOMAI_DIR})
set(XENOMAI_INCLUDE_DIR ${XENOMAI_DIR}/include)
set(XENOMAI_INCLUDE_POSIX_DIR ${XENOMAI_DIR}/include/posix)
find_library(XENOMAI_LIBRARY_XENOMAI xenomai ${XENOMAI_DIR}/lib)
find_library(XENOMAI_LIBRARY_PTHREAD_RT pthread_rt ${XENOMAI_DIR}/lib)
find_library(XENOMAI_LIBRARY_RTDM rtdm ${XENOMAI_DIR}/lib)
find_library(XENOMAI_LIBRARY_RT rt ${XENOMAI_DIR}/lib)
set(EXTRA_LIBS ${EXTRA_LIBS} ${XENOMAI_LIBRARY_XENOMAI})
set(EXTRA_LIBS ${EXTRA_LIBS} ${XENOMAI_LIBRARY_PTHREAD_RT})
set(EXTRA_LIBS ${EXTRA_LIBS} ${XENOMAI_LIBRARY_RTDM})
set(EXTRA_LIBS ${EXTRA_LIBS} ${XENOMAI_LIBRARY_RT})
find_file(XENOMAI_POSIX_WRAPPERS lib/posix.wrappers {XENOMAI_SEARCH_PATH})
set(XENOMAI_EXE_LINKER_FLAGS "-W1,@${XENOMAI_POSIX_WRAPPERS}")
set(CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} ${XENOMAI_EXE_LINKER_FLAGS})
set(XENOMAI_DEFINITIONS "-D_GNU_SOURCE -D_REENTRANT -Wall -pipe -D__XENO__")
set(EXTRA_DEFINITIONS ${EXTRA_DEFINITIONS} ${XENOMAI_DEFINITIONS})
include_directories(${XENOMAI_DIR}/include)
include_directories(${XENOMAI_DIR}/include/posix)
ENDIF(${XENOMAI_DIR})
ADD_DEFINITIONS(${EXTRA_DEFINITIONS})
ADD_EXECUTABLE(robotclient main.cpp)
TARGET_LINK_LIBRARIES(robotclient ${EXTRA_LIBS})
Is there something wrong?
regards,
franz
[-- Attachment #2: Type: text/html, Size: 2961 bytes --]
next reply other threads:[~2011-03-22 11:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-22 11:52 Franz Engel [this message]
2011-03-22 12:15 ` [Xenomai-help] Problem with Posix Skin and RTnet Gilles Chanteperdrix
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=846378.85636.qm@domain.hid \
--to=franz_lambert_engel@domain.hid \
--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.