|
1. Visual Studio code – instalacja podstawowa
|
|
Preparation for working with DSPElib using Visual Studio Code
|
|
2. cpp support: https://code.visualstudio.com/docs/languages/cpp
|
|
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
|
|
- C/C++ IntelliSense, debugging, and code browsing
|
|
- Using GCC with MinGW https://code.visualstudio.com/docs/cpp/config-mingw
|
|
- Assumes use of GCC
|
|
- .vscode folder in the workspace
|
|
- some versions have been compiled with Visual Studio 2019
|
|
|
|
- on Windows used with MinGW gcc compilers
|
|
|
|
- for examples compiler provided with https://code.visualstudio.com/docs/cpp/config-mingw
|
|
|
|
- .vscode folder in the workspace contains configurations for VSC
|
|
3. run_VScode.bat ([run_VScode.bat](uploads/e2c8f797454db50f5252b4d7846a450d/run_VScode.bat))
|
|
3. run_VScode.bat ([run_VScode.bat](uploads/e2c8f797454db50f5252b4d7846a450d/run_VScode.bat))
|
|
- konfiguracja ścieżek do MinGW i Msys
|
|
- Windows cmd batch with configuration of MinGW and Msys paths (this allows avoiding setting global system paths and using different compiler sets)
|
|
- https://sourceforge.net/projects/mingw/files/MSYS/Base/msys-core/msys-1.0.11/MSYS-1.0.11.exe/download?use_mirror=kumisystems
|
|
- MSYS
|
|
- uruchomienie VS Code
|
|
- 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/
|
|
|
|
- Runs VS Code
|
|
4. Open folder: d:\Eclipse_Mars\git_folder\DSPElib\DSPE_lib\src\
|
|
4. Open folder: d:\Eclipse_Mars\git_folder\DSPElib\DSPE_lib\src\
|
|
5. c_cpp_properties.json – konfiguracja ścieżek
|
|
5. .vscode/c_cpp_properties.json – C++ configurations
|
|
- "compilerPath": "d:/CodeBlocks_20_03/MinGW/bin/gcc",
|
|
|
|
- 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.
|
|
- najpierw trzeba w status bar ustawić C++
|
|
- first in status bar setup C++
|
|
6. Edycja tasks.json
|
|
6. .vscode/tasks.json
|
|
- choose Terminal > Configure Default Build Task
|
|
- compilation tasks configurations
|
|
7. Kompilacja: np. Terminal -> run task
|
|
7. Compilation:
|
|
8. Debuging
|
|
- in menu choose Terminal > Run Task... to select compilation task
|
|
|
|
- Ctrl+Shift+B - default compilation task
|
|
|
|
- Compilation actions depend on C++ language configuration (e.g. Windows64-Debug)
|
|
|
|
- Compilation actions:
|
|
|
|
- Build DSPElib - debug/release compilation based on C++ language configuration
|
|
|
|
- Clean DSPElib
|
|
|
|
- Install DSPElib - compile both Debug and Release and copy library files to _DSPE_lib_minGW_ folder
|
|
|
|
- build examples Windows (depends on last "Install DSPElib")
|
|
|
|
- clean examples Windows
|
|
|
|
8. Debugging
|
|
- launch.json
|
|
- launch.json
|
|
- https://code.visualstudio.com/docs/cpp/config-mingw
|
|
- https://code.visualstudio.com/docs/cpp/config-mingw
|
|
9. Linux
|
|
9. Linux
|
|
- sudo apt install libasound2
|
|
- sudo apt install libasound2
|
|
- sudo apt-get install libasound2-dev
|
|
- sudo apt-get install libasound2-dev
|
|
- git
|
|
- git
|
|
- git config --global user.email "toja@example.com"
|
|
- git config --global user.email "me@example.com"
|
|
- git config --global user.name "Twoje Imię Nazwisko"
|
|
- git config --global user.name "Your Name and Surname"
|
|
10. Wiki
|
|
10. Wiki
|
|
- https://git.pg.edu.pl/dspe/DSPElib/wikis/git_access
|
|
- https://git.pg.edu.pl/dspe/DSPElib/wikis/git_access
|
|
|
|
|
... | | ... | |