qiayuanl / legged_control

Nonlinear MPC and WBC framework for legged robot based on OCS2 and ros-controls
BSD 3-Clause "New" or "Revised" License
854 stars 217 forks source link

Build in A1 (nvidia tegra xavier (nvgpu)/integrated, armv8, ubuntu 18.04) #65

Open Zhihaibi opened 2 months ago

Zhihaibi commented 2 months ago

Hi,

I am trying to compile hpipm on Arm (nvidia tegra xavier (nvgpu)/integrated, armv8, ubuntu 18.04 )

and meet these error: Unrecognized command line option '-m64' and '-mavx'

9630b789c645be070e45f001ce36885

I have already switched to the GENERIC target in HPIPM in Cmakelist.txt:

Target architecture

set(TARGET AVX CACHE STRING "Set CPU architecture target")

set(TARGET GENERIC CACHE STRING "Set CPU architecture target")

and in makefile.rule, I modify to:

Target architecture

TARGET = AVX512

TARGET = AVX

TARGET = GENERIC

But I still get this error, do you know how to solve it? Thank you very much!

nanbwrn commented 1 month ago

hi,@Zhihaibi
I encountered the same issue as you. Have you resolved it? Thank you very much for your response.

Zhihaibi commented 1 month ago

I guess that ocs2 is only tested in 20.04. Update the system to 20.04 and try again.

---Original--- From: "Xiangbo @.> Date: Sat, Jul 13, 2024 15:30 PM To: @.>; Cc: "Zhihai @.**@.>; Subject: Re: [qiayuanl/legged_control] Build in A1 (nvidia tegra xavier (nvgpu)/integrated, armv8, ubuntu 18.04) (Issue #65)

@.*** I encountered the same issue as you. Have you resolved it? Thank you very much for your response.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

nanbwrn commented 1 month ago

I am using the Jetson AGX Orin with system version ubuntu 20.04, but I'm still encountering the same error as you. It's likely due to compiling for the ARM64 architecture. The code compiles fine on my laptop, but I encounter errors when compiling it on the Orin.

fangzhiyuan1995 commented 1 month ago

image

Hi,

I am trying to compile hpipm on Arm (nvidia tegra xavier (nvgpu)/integrated, armv8, ubuntu 18.04 )

and meet these error: Unrecognized command line option '-m64' and '-mavx'

9630b789c645be070e45f001ce36885

I have already switched to the GENERIC target in HPIPM in Cmakelist.txt:

Target architecture

set(TARGET AVX CACHE STRING "Set CPU architecture target") set(TARGET GENERIC CACHE STRING "Set CPU architecture target")

and in makefile.rule, I modify to:

Target architecture

TARGET = AVX512 #TARGET = AVX TARGET = GENERIC

But I still get this error, do you know how to solve it? Thank you very much!

set(TARGET GENERIC CACHE STRING "Set CPU architecture target") At the same time, it is necessary to delete the compilation history of hpipm_catkin in the build and develop folders, and then compile the catkin build hpipm_catkin. The system uses Ubuntu 20.04