minhanghuang/CyberRT

how to cross compile the project for arm?

fengmao31 opened this issue · 8 comments

I want to use cyberRT in a arm platform. how to cross compile for arm. only need to set some gcc and g++ option in the CMAKELIST?

Compilation is the same on aarch64 platform and x86-64 platform, and there are adaptations in the code third_party script and cmake

I need compile cyberRT in x86 ubuntu for a aarch64 device. I finsh the install part .so generation. but I fail in uuid and other .h file.

image

Hi, @fengmao31 you can try to install uuid

sudo apt install uuid-dev

my local environment is ARM platform, there is no problem.
image

I know it. but now I use thirdpart gcc and g++ to compile the cyberRT in the x86 pc for aarch64 platform.

I don't have a cross compile for arm to test this. you can check the installation path of the uuid

I finish the cross compile. the package installed by apt should be compiled for arm at first. thank you.

I finish the cross compile. the package installed by apt should be compiled for arm at first. thank you.
i got this error
find_package(PkgConfig REQUIRED)
image

I finish the cross compile. the package installed by apt should be compiled for arm at first. thank you.
i got this error
find_package(PkgConfig REQUIRED)
image

@duanchengwen sudo apt install -y pkg-config