udacity/SFND_Lidar_Obstacle_Detection

Build error on Mac

hariperla opened this issue · 3 comments

Followed the steps to setup the required packages and cloned the repo. When I tried to build, I get the following dependency error and I am not sure what's the cause.

Screen Shot 2022-02-16 at 8 34 23 AM

The error is related to Qt5;

First check if qt@5 is installed with pcl:
brew info pcl

Following command worked for me:

QT5_DIR=$(brew info qt5 | grep "^$(brew --cellar qt5)" | cut -d' ' -f1)
cmake .. ... -DCMAKE_PREFIX_PATH=$QT5_DIR/

Check here for more comments: Cockatrice/Cockatrice#205 (comment)

I got the same error. I installed Qt5.15 using the online installer and have Python3.9 and Anaconda installed. I had to set the path for Qt5 and Python in bash_profile to solve the error. This is how my bash_profile file looks:
PATH=dir_where_qt_is_installed/5.15.2/clang_64/bin:$PATH export PATH PYTHONPATH="/usr/local/bin/python3" export PYTHONPATH

hope this helps