... | ... | @@ -2,13 +2,11 @@ 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
|
|
|
- Assumes use of GCC
|
|
|
- Library is mainly developed and tested using GCC compiler
|
|
|
- some versions have been successfully compiled with Visual Studio 2019
|
|
|
- on Windows just like in Linux it has been mostly used with gcc compilers
|
|
|
- for example compiler provided with https://code.visualstudio.com/docs/cpp/config-mingw
|
|
|
- .vscode folder in the workspace contains configurations for VSC
|
|
|
3. (Windows) MSYS (v.2 is better choice)
|
|
|
- MSYS v.1.0: https://sourceforge.net/projects/mingw/files/MSYS/Base/msys-core/msys-1.0.11/MSYS-1.0.11.exe/download?use_mirror=kumisystems
|
|
|
- (deprecated) MSYS v.1.0: https://sourceforge.net/projects/mingw/files/MSYS/Base/msys-core/msys-1.0.11/MSYS-1.0.11.exe/download?use_mirror=kumisystems
|
|
|
- MSYS2: https://www.msys2.org/
|
|
|
- install msys2 (64bit)
|
|
|
- in MSYS2 terminal
|
... | ... | @@ -33,11 +31,14 @@ Preparation for working with DSPElib using Visual Studio Code |
|
|
},
|
|
|
},
|
|
|
~~~
|
|
|
5. Open folder: d:\Eclipse_Mars\git_folder\DSPElib\DSPE_lib\src\
|
|
|
- In Windows VSCode might require setting default terminal profile to Command Prompt (Ctrl+Shift+P: select default profile).
|
|
|
5. Open main folder DSPE_lib in VSC.
|
|
|
6. .vscode/c_cpp_properties.json – C++ configurations
|
|
|
- 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 in status bar setup C++
|
|
|
- first setup C++ in status bar
|
|
|
- next select C++ Configuyration in status bar, e.g. select "Windows64-Debug".
|
|
|
- \note: this determines compilation actions.
|
|
|
7. .vscode/tasks.json
|
|
|
- compilation tasks configurations
|
|
|
8. Compilation:
|
... | ... | @@ -47,16 +48,16 @@ Preparation for working with DSPElib using Visual Studio Code |
|
|
- Compilation actions:
|
|
|
- Build DSPElib - debug/release compilation based on C++ language configuration
|
|
|
- Clean DSPElib - clears both debug and release tmp compilation folders
|
|
|
- Install DSPElib - compile both Debug and Release and copy library files to _DSPE_lib_minGW_ folder
|
|
|
- build examples Windows/Linux (requires/depends on last "Install DSPElib")
|
|
|
- Install DSPElib - building both Debug and Release versions and copying library files to _DSPE_lib_minGW_ folder in the subforder depending on platform and the compiler
|
|
|
- build examples Windows/Linux (requires (depends on last) "Install DSPElib" done beforehand)
|
|
|
- clean examples Windows/Linux
|
|
|
9. Debugging
|
|
|
- launch.json
|
|
|
- https://code.visualstudio.com/docs/cpp/config-mingw
|
|
|
10. Linux
|
|
|
10. Linux required sound libraries
|
|
|
- sudo apt install libasound2
|
|
|
- sudo apt-get install libasound2-dev
|
|
|
- git
|
|
|
11. Git configuration in Linux
|
|
|
- git config --global user.email "me@example.com"
|
|
|
- git config --global user.name "Your Name and Surname"
|
|
|
11. Wiki
|
... | ... | |