The compilation process of HelloWorld in the C++ version of CycloneDDS on the ARM architecture Linux operating system (cross-compilation tool chain)

1 Create a build directory under the root directory and enter compilation

2 Solve the failure of idlc_generate under the ARM architecture

1. First comment out the idlc_generate instruction in the CMakeLists.txt file (and delete the statement that references the target library file)

2. Copy the HelloWorldData.cpp and hpp files generated by the C++ version under X86, and change the address of the header file introduced in cpp

3 The first error cmake

Linux terminal input:
cmake-DCMAKE_PREFIX_PATH=/home/ubuntu/Documents/ARM_C_CycloneDDS/cyclonedds-master/install_DDS_ARM -DCMAKE_TOOLCHAIN_FILE=/home/ubuntu/Documents/ARM_C_CycloneDDS/cyclonedds-master/arm.cmake -DENABLE_SSL=NO ..

specify:

arm.cmakeThe file address
ARM下C++installation location
SSLis not enabled

But the error is as follows:

Guess you like

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