HKUST-Aerial-Robotics / Fast-Planner

A Robust and Efficient Trajectory Planner for Quadrotors
GNU General Public License v3.0
2.46k stars 664 forks source link

Build fails on Ubuntu 18.04.5 with ROS Melodic #59

Closed pauljurczak closed 4 years ago

pauljurczak commented 4 years ago

Unfortunately, I don't see a reason why. Here are the last few lines of catkin output:

/home/paul/hkust/src/Fast-Planner/fast_planner/path_searching/src/astar.cpp: In member function ‘double fast_planner::Astar::getDiagHeu(Eigen::Vector3d, Eigen::Vector3d)’:
/home/paul/hkust/src/Fast-Planner/fast_planner/path_searching/src/astar.cpp:256:25: warning: ‘h’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   return tie_breaker_ * h;
                         ^
[ 69%] Linking CXX shared library /home/paul/hkust/devel/lib/libpath_searching.so
[ 69%] Built target path_searching
Makefile:159: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed

I followed the instructions from https://github.com/HKUST-Aerial-Robotics/Fast-Planner#3-setup-and-config

zhangzhijie1998 commented 4 years ago

run "catkin_make --debug" to find more information. I encountered the same error. The reason might be related to libnlopt-dev.

xdke666 commented 4 years ago

ubuntun16.04 , same error, "Built target path_searching" failed

xdke666 commented 4 years ago

I have solved this problem. Generally, the. So file is missing. There are prompts during compilation. Install the missing library to the correct path

pushkar-khetrapal commented 3 years ago

Hi, @xdke666 how did you found the solution? I'm getting the same error.