udacity / robotics-beta-test-issues

1 stars 0 forks source link

Monte Carlo Localization - Compiling command #731

Closed ancabilloni closed 6 years ago

ancabilloni commented 6 years ago

Ran into this error due to missing numpy folder in the guided folder src/matplotlibcpp.h:20:33: fatal error: numpy/arrayobject.h: No such file or directory

I could fix it with: locate numpy/arrayobject.h -> Find where this script location (mine was located in /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h)

Update the compiling command with new found location: g++ main.cpp -o app -std=c++11 -I/usr/include/python2.7 -I/usr/local/lib/python2.7/dist-packages/numpy/core/include/ -lpython2.7


Please add possible solution if any student can run into the same error.