xenomai_ros error finding headers

asked 2020-04-02 05:54:36 -0600

dinesh gravatar image

updated 2020-04-02 06:11:23 -0600

/usr/xenomai/include/boilerplate/lock.h:23:10: fatal error: boilerplate/wrappers.h: No such file or directory

i'm getting this erro while building my ros package with xenomai. i build this xenomai_ros packge from this repo.

when i buiild this file iwth makefile only it works. here is the makefile:

XENO_CONFIG := /usr/xenomai/bin/xeno-config
# below is wrong =>  must not use --cobalt flag => need wrapping
# see: https://xenomai.org/documentation/xenomai-3/html/man1/xeno-config/index.html
#CFLAGS := $(shell $(XENO_CONFIG) --alchemy --cobalt --cflags)
#LDFLAGS := $(shell $(XENO_CONFIG) --alchemy --cobalt --ldflags)


CFLAGS := -marm $(shell $(XENO_CONFIG)   --posix --alchemy  --cflags)
LDFLAGS := -marm $(shell $(XENO_CONFIG)  --posix --alchemy --ldflags)

#CFLAGS := $(shell $(XENO_CONFIG)   --alchemy  --cflags)
#LDFLAGS := $(shell $(XENO_CONFIG)  --alchemy --ldflags)


EXTRA :=
#CC := $(shell $(XENO_CONFIG) --cc)
CC :=arm-linux-gnueabihf-gcc   

EXECUTABLE := blink

all: $(EXECUTABLE)

%: %.c
    $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS) $(EXTRA)

clean: 
    rm -f $(EXECUTABLE)

run: $(EXECUTABLE)
    bash run.sh

freshrun: 
    make clean
    make run

Here is the cmakelists.txt file which is not working:

cmake_minimum_required(VERSION 2.8.3)
project(my_ros_pkg)

find_package(catkin REQUIRED COMPONENTS
  xenomai_ros 
  roscpp
)

find_package(catkin REQUIRED COMPONENTS
  xenomai_ros 
  roscpp
)
include_directories(
  ${Xenomai_INCLUDE_DIR}
  ${catkin_INCLUDE_DIRS}
)
add_executable(${PROJECT_NAME}_node src/my_ros_node.cpp)

can i just convert this makefile into CMakefile.txt ?

edit retag flag offensive close merge delete

Comments

Just a comment: the repository you link shows this:

Latest commit b496c6f on Sep 2, 2013

that's almost 7 years ago.

Xenomai has changed significantly since that time.

You may want to try and find a more recent CMake integration/wrapper/find script.

gvdhoorn gravatar image gvdhoorn  ( 2020-04-02 07:34:35 -0600 )edit

o... i didn't noticed the date this time on this repo.

dinesh gravatar image dinesh  ( 2020-04-02 09:09:06 -0600 )edit