xenomai_ros error finding headers
/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 ?
Just a comment: the repository you link shows this:
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.
o... i didn't noticed the date this time on this repo.