|
Preparation for working with DSPElib using Visual Studio Code
|
|
Preparation for working with DSPElib using Visual Studio Code
|
|
1. Visual Studio code – basic installation
|
|
1. Visual Studio code – basic installation
|
|
2. Add C++ support (see: https://code.visualstudio.com/docs/languages/cpp)
|
|
2. Add C++ support for VSCode (see: https://code.visualstudio.com/docs/languages/cpp)
|
|
- C/C++ IntelliSense, debugging, and code browsing
|
|
- Extension: C/C++ IntelliSense, debugging, and code browsing
|
|
|
|
- Extension: Graphviz (dot) language suport for VSC
|
|
- Library is mainly developed and tested using GCC compiler
|
|
- Library is mainly developed and tested using GCC compiler
|
|
- some versions have been successfully compiled with Visual Studio 2019
|
|
- some versions have been successfully compiled with Visual Studio 2019
|
|
- .vscode folder in the workspace contains configurations for VSC
|
|
- .vscode folder in the workspace contains configurations for VSC
|
... | @@ -14,10 +15,11 @@ Preparation for working with DSPElib using Visual Studio Code |
... | @@ -14,10 +15,11 @@ Preparation for working with DSPElib using Visual Studio Code |
|
- => restart msys2
|
|
- => restart msys2
|
|
- pacman -Sy
|
|
- pacman -Sy
|
|
- pacman -S make
|
|
- 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)
|
|
- MinGW-w64 GCC (provided with MSYS2)
|
|
- pacman -S --needed base-devel mingw-w64-x86_64-toolchain
|
|
- 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
|
|
4. If msys and gcc are not in system path
|
|
- **(version 1)** run_VScode.bat ([run_VScode.bat](uploads/e2c8f797454db50f5252b4d7846a450d/run_VScode.bat))
|
|
- **(version 1)** run_VScode.bat ([run_VScode.bat](uploads/e2c8f797454db50f5252b4d7846a450d/run_VScode.bat))
|
|
- Script setups paths (MinGW gcc and MSys) and runs VS Code
|
|
- Script setups paths (MinGW gcc and MSys) and runs VS Code
|
... | @@ -37,7 +39,7 @@ Preparation for working with DSPElib using Visual Studio 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
|
|
- 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.
|
|
- 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
|
|
- 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.
|
|
- \note: this determines compilation actions.
|
|
7. .vscode/tasks.json
|
|
7. .vscode/tasks.json
|
|
- compilation tasks configurations
|
|
- compilation tasks configurations
|
... | @@ -53,6 +55,7 @@ Preparation for working with DSPElib using Visual Studio Code |
... | @@ -53,6 +55,7 @@ Preparation for working with DSPElib using Visual Studio Code |
|
- clean examples Windows/Linux
|
|
- clean examples Windows/Linux
|
|
9. Debugging
|
|
9. Debugging
|
|
- launch.json
|
|
- launch.json
|
|
|
|
- debuger path might need updating
|
|
- https://code.visualstudio.com/docs/cpp/config-mingw
|
|
- https://code.visualstudio.com/docs/cpp/config-mingw
|
|
10. Linux required sound libraries
|
|
10. Linux required sound libraries
|
|
- sudo apt install libasound2
|
|
- sudo apt install libasound2
|
... | | ... | |