- Install Visual Studio Code
- Update CMake to 3.7 or above
      - "cmake --version": Check cmake version with execution of "cmake --version" on terminal. The following steps can be skipped if the version is 3.7 or above
- Visit https://cmake.org/download/ and download the latest binaries, eg. cmake-3.12.4-Linux-x86_64.sh
- "chmod +x /path/to/cmake-3.12.4-Linux-x86_64.sh" (use your own file location here, chmod makes the script executable)
- "sudo apt remove cmake": Remove existing version of cmake
- "sudo /path/to/cmake-3.12.4-Linux-x86_64.sh" (you'll need to press y twice)
- The downloaded cmake package will be found in directory "cmake-3.12.4-Linux-x86_64".  You could consider to move the cmake package into /opt with "sudo mv /path/to/cmake-3.12.4-Linux-x86_64 /opt". This step is optional.
- If you have moved the package under "/opt", create soft link with "sudo ln -s /opt/cmake-3.12.4-Linux-x86_64/bin/* /usr/local/bin". If you have not, create soft link under "/usr/local/bin" for the cmake binary tools in your desired directory.
 
- "
- Install following Visual Studio Code Plugins
      - "C/C++" from Microsoft
- "CMake" from twxs
- "CMake Tools" from "vector-of-bool"
 
Monday, December 10, 2018
Setup Visual Studio Code on Ubuntu for C++ Debugging
Subscribe to:
Post Comments (Atom)
 
No comments:
Post a Comment