Ubuntu build C++ project ND313

Install C++ Compiler on Ubuntu (command line)

-- The CXX compiler identification is unknown
No CMAKE_CXX_COMPILER could be found.


sudo apt-get update && sudo apt-get install build-essentialORsudo apt install cmake

Install Point Cloud Library (PCL)

The Point Cloud Library (or PCL) is a large scale, open project for point cloud processing.
The PCL framework contains numerous state-of-the art algorithms including filtering, feature estimation, surface reconstruction, registration, model fitting and segmentation.
PCL is released under the terms of the BSD license and is open-source software. It is free for commercial and research use. We are financially supported by Willow Garage, NVidia, and Google.

sudo apt install libpcl-dev$ sudo apt-get update




Prepare Workspace for ND313

GITHUB:
$ pwd
/media/uki/REPO/SFND313_Lidar_Obstacle_Detection/
$ mkdir build$ cd buildSFND313_Lidar_Obstacle_Detection/build$ cmake ../CMakeLists.txt 



CMake Error: The current CMakeCache.txt directory /media/psf/DATA/_Drive/_REPOS/SFND313_Lidar_Obstacle_Detection/CMakeCache.txt is different than the directory /Volumes/DATA/_Drive/_REPOS/SFND_Lidar_Obstacle_Detection where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txtCMake Error: The source "/media/psf/DATA/_Drive/_REPOS/SFND313_Lidar_Obstacle_Detection/CMakeLists.txt" does not match the source "/Volumes/DATA/_Drive/_REPOS/SFND_Lidar_Obstacle_Detection/CMakeLists.txt" used to generate cache. Re-run cmake with a different source directory.
$ rm ../CMakeCache.txt $ cmake ../CMakeLists.txt

-- Configuring done-- Generating done-- Build files have been written to: /media/psf/DATA/_Drive/_REPOS/SFND313_Lidar_Obstacle_Detection

$ cd ..$ make
make: *** No targets specified and no makefile found.  Stop.
$ cd ..$ pwd/media/psf/DATA/_Drive/_REPOS/SFND313_Lidar_Obstacle_Detection$ make

[100%] Linking CXX executable environment[100%] Built target environment> ls -alt environment -rwxr-xr-x 1 uki uki 506464 Jul 15 07:34 environment
$ ./environment starting enviroment