Offline construction of Gtest on the ARM platform (let Gtest compile and install the executable file .so into ARM-ARM aarch64) (practical)

Automatically call the static or dynamic library file description of Cunit or Gtest when compiling

Here I usr/local/libhave installed CUnitand Gtestunder X86_64 before, which is also the default Linux architecture. If you don’t -DCMAKE_PREFIX_PATHspecify it when compiling, it will automatically read the library files under this package.

The file format is shown in the figure below:

Both commands work:
file 文件名
readelf -h 文件名

Please add a picture description

Copy the Gtest installation package to a new directory

Copy the Gtest installation package to a certain directory for compilation

If you don’t have Gtest, you can download it from the official website

Here I am copying to usr/local/gtest
the process as shown in the figure below:

Guess you like

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