PX4 Compilation Error Using catkin build

Hi.

I created a symbolic link of Firmware inside my catkin_ws/src

ls -s ~/src/Firmware ~/catkin_ws/src/px4

When I use catkin build, I get the following error,

/home/mzahana/catkin_ws/src/px4/src/modules/mavlink/mavlink_tests/mavlink_ftp_test.cpp:851:41: error: ‘reply’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
   ut_compare("Offset incorrect", reply->offset, full_packet_bytes);
                                         ^
compilation terminated due to -Wfatal-errors

Can anyone please help in explaining and solving this issue?

Thanks.

2 Likes

Did you solve this issue?

Hai
I am also facing the same issue.
Can anyone help me to solve this?

I just ended up compiling the Firmware outside the workspace as per the PX4 instructions.

1 Like