Preface (generation of idlc file and its role in cross-compilation)
idlc
The executable file is only generated when the C version is CycloneDDS
compiled on the X86 architecture
As shown below:
The idlc file is not generated when compiling the C++ version cyclonedds source code or cross-compiling on X86
When compiling the C++ version cyclonedds source code on the X86 architecture, you need to add the installation path of the C version to import the library files installed by the C version ( CMAKE_PREFIX_PATH
)
idlc_generate
This file is very important when cross-compiling, because it is not available during cross-compilation , so you need to manually generate source files and header files by idlc文件
addingidl文件