# CanOpen module probleme including Lely CANopen

**URL:** <https://discuss.px4.io/t/canopen-module-probleme-including-lely-canopen/37499>\
**Category:** PX4 Autopilot\
**Created:** [March 27, 2024, 10:23am UTC](https://discuss.px4.io/t/canopen-module-probleme-including-lely-canopen/37499 "2024-03-27T10:23:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rovbot](https://discuss.px4.io/letter_avatar_proxy/v4/letter/r/e495f1/32.png) [@rovbot](https://discuss.px4.io/u/rovbot)\
**Post date:** [March 27, 2024, 10:23am UTC](https://discuss.px4.io/t/canopen-module-probleme-including-lely-canopen/37499/1 "2024-03-27T10:23:02Z")

</div>

Hi everyone,

I need to be able to use CanOpen and so I decided to create my own module, using Lely CANopen ( liblely-coapp ).  
After a bit of trouble I manage to make a simple module to test the lib that work in simulation, but when I try to compile it for fmu-v5x I have the following error :

```auto
In file included from /usr/include/asm/ioctl.h:1,
                 from /usr/include/linux/ioctl.h:5,
                 from /usr/include/asm-generic/ioctls.h:5,
                 from /usr/include/asm/ioctls.h:1,
                 from /usr/include/bits/ioctls.h:23,
                 from /usr/include/sys/ioctl.h:26,
                 from /home/rovbot/projet/px4/platforms/common/include/px4_platform_common/defines.h:42,
                 from /home/rovbot/projet/px4/platforms/common/include/px4_platform_common/log.h:123,
                 from /home/rovbot/projet/px4/src/drivers/can/can.cpp:42:
/usr/include/asm-generic/ioctl.h:69: error: "_IOC" redefined [-Werror]
   69 | #define _IOC(dir,type,nr,size) \
      | 
compilation terminated due to -Wfatal-errors.

```

So I think I need the library to also compile when I compile px4 for fmu-v5x, but liblely-coapp uses automake and not cmake.  
Does anyone know or have an idea how to make this work?
