|
|
Preparation for working with DSPElib using Visual Studio Code
|
|
|
1. Visual Studio code – basic installation
|
|
|
2. Add C++ support (see: https://code.visualstudio.com/docs/languages/cpp)
|
|
|
- C/C++ IntelliSense, debugging, and code browsing
|
|
|
2. Add C++ support for VSCode (see: https://code.visualstudio.com/docs/languages/cpp)
|
|
|
- Extension: C/C++ IntelliSense, debugging, and code browsing
|
|
|
- Extension: Graphviz (dot) language suport for VSC
|
|
|
- Library is mainly developed and tested using GCC compiler
|
|
|
- some versions have been successfully compiled with Visual Studio 2019
|
|
|
- .vscode folder in the workspace contains configurations for VSC
|
... | ... | @@ -14,10 +15,11 @@ Preparation for working with DSPElib using Visual Studio Code |
|
|
- => restart msys2
|
|
|
- pacman -Sy
|
|
|
- pacman -S make
|
|
|
- update path to msys (for example: C:\msys64\usr\bin\\) in in system path or \*.bat file
|
|
|
- optional: update path to msys (for example: C:\msys64\usr\bin\\) in in system path or \*.bat file
|
|
|
- MinGW-w64 GCC (provided with MSYS2)
|
|
|
- pacman -S --needed base-devel mingw-w64-x86_64-toolchain
|
|
|
- update path to gcc (for example: C:\msys64\mingw\bin\\) in in system path or \*.bat file
|
|
|
- optional (for 32bit applications compilation): pacman -S --needed base-devel mingw-w64-i686-toolchain
|
|
|
- optional: update path to gcc (for example: C:\msys64\mingw\bin\\) in in system path or \*.bat file
|
|
|
4. If msys and gcc are not in system path
|
|
|
- **(version 1)** run_VScode.bat ([run_VScode.bat](uploads/e2c8f797454db50f5252b4d7846a450d/run_VScode.bat))
|
|
|
- Script setups paths (MinGW gcc and MSys) and runs VS Code
|
... | ... | @@ -37,7 +39,7 @@ Preparation for working with DSPElib using Visual Studio Code |
|
|
- https://code.visualstudio.com/docs/cpp/c-cpp-properties-schema-reference
|
|
|
- The status bar in VS Code will show you which configuration is active. You can also click on the label in the status bar to change the active configuration.
|
|
|
- first setup C++ in status bar
|
|
|
- next select C++ Configuyration in status bar, e.g. select "Windows64-Debug".
|
|
|
- next select C++ Configuration in status bar, e.g. select "Windows64-Debug".
|
|
|
- \note: this determines compilation actions.
|
|
|
7. .vscode/tasks.json
|
|
|
- compilation tasks configurations
|
... | ... | @@ -53,6 +55,7 @@ Preparation for working with DSPElib using Visual Studio Code |
|
|
- clean examples Windows/Linux
|
|
|
9. Debugging
|
|
|
- launch.json
|
|
|
- debuger path might need updating
|
|
|
- https://code.visualstudio.com/docs/cpp/config-mingw
|
|
|
10. Linux required sound libraries
|
|
|
- sudo apt install libasound2
|
... | ... | |