Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cyclonedds-dev] Reg: Cross Compilation of cyclone dds

Hi,

Yes, cross compilation is definitely supported. CMake has to know that
you're cross compiling though. i.e. CMAKE_CROSSCOMPILING must be true.
>From the output you posted, I'm guessing you're not using a toolchain
file? ddsconf is a tool that's executed on the host to generate a
source file. If CMAKE_CROSSCOMPILING is false the tool is compiled and
then executed, if it's true, the tool is looked up on the system and
executed. The latter is required for cross compilation.

That being said, the new compiler has been merged to master this week
and our own cross compilation builds are currently failing. You may
want to use a commit from before that and use the Java-based compiler
until it is taken care of.

Let me know if you have more questions.

- Jeroen


On Thu, 2021-03-25 at 19:13 +0000, Venkata Rao V (RBEI/EMT1) via
cyclonedds-dev wrote:
> Hello Team,
>  
>   Cross compilation of cyclone dds is supported? I could see the
> following error
>  
> [ 18%] Generating defconfig.c
> /bin/sh: 1: ../../bin/ddsconf: Exec format error
> src/core/CMakeFiles/ddsc.dir/build.make:81: recipe for target
> 'src/core/defconfig.c' failed
> make[2]: *** [src/core/defconfig.c] Error 2
> CMakeFiles/Makefile2:720: recipe for target
> 'src/core/CMakeFiles/ddsc.dir/all' failed
> make[1]: *** [src/core/CMakeFiles/ddsc.dir/all] Error 2
> Makefile:171: recipe for target 'all' failed
> make: *** [all] Error 2
>  
>  
> Mit freundlichen Grüßen / Best regards
> 
> V Venkata Rao
> _______________________________________________
> cyclonedds-dev mailing list
> cyclonedds-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/cyclonedds-dev




Back to the top