Cross build google-protobuf

Please provide the following info (check/uncheck the boxes after clicking “+ Create Topic”):
Software Version
[*] DRIVE OS Linux 5.2.0 and DriveWorks 3.5

Target Operating System
[*] Linux

Hardware Platform
[*] NVIDIA DRIVE™ AGX Xavier DevKit (E3550)

SDK Manager Version

Host Machine Version
[*] native Ubuntu 18.04

Hi! I’m trying to build the google-protobuf for DRIVE AGX.

I have enough knowledge for the “cmake and make” workflow for DRIVE AGX mainly by setting CMAKE_TOOLCHAIN_FILE.

However, the c++ version of google-protobuf is built based on the “./configure and make” workflow.

In this case, how can I cross build the google-protobuf on my host machine? Or should I just build it on the target machine?

Thanks in advance.

Hi @shaozhenlei

Could you please refer to the doc for DriveWorks Cross Compilation?

Hi @SteveNV
I have already read this document. I can cross-build a project based on the cmake tool. My problem is that the document only shows the solution based on cmake and how can I build a project based on GNU autotools? (i.e., the ./configure && make workflow)

Hi @shaozhenlei
Could you please refer to the following link for your inquiry?

Thanks for your advice.
However, I have already found another way: Directly building the protobuf or any other auto-config based source code on the target machine! Though it may be a little slower than my Host PC.