Example of how the C version CycloneDDS source code is compiled on an X86 architecture Linux system to generate an idlc executable file (cyclonedds-master/build/bin/idlc)

Preface (generation of idlc file and its role in cross-compilation)

idlcThe executable file is only generated when the C version is CycloneDDScompiled on the X86 architecture

As shown below:
Please add a picture description

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_generateThis 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文件

1 Summary of the role of the idlc file</

Guess you like

Origin blog.csdn.net/qq_42595610/article/details/131716859