Basic application tempplate for VSCode. Used: wxWidgets and MinGW-W64
Don't expect much of this template - I'm not "true" programmer.
This is simple project template for VSCode with MinGW-W64 compiler and wxWidgets C++ framework.
This template was made with great help of video this tutorial.
I added .tutorials directory with some examples:
- zetcode.com. Almost all of them just copypaste. I made some slight changes to make some of them work. Some examples use depricated features of wxWidgets and don' work as expected - not the worst sandbox to start playing I think :);
- Book Cross-Platform GUI Programming with wxWidgets scroll down to find original download link;
- And, lot more examples here. I didn,t include them to the .tutorials directory cause they are part of wxWidgets sources.
To start using it you need:
-
VSCode;
-
MinGW-W64 compiler. I used this version: GCC 11.1.0 + LLVM/Clang/LLD/LLDB 12.0.0 + MinGW-w64 9.0.0 - release 2
-
wxWidgets (better to buil it youself).
You can download a kind of "release" of this template with precompiled wxWidgets 3.1.x here
Or build and copy compilled wxWidgets DLLs into corresponding ./build/ directory.
The .vscode/settings.json file contains following settings:
-
"compilerPath" - path to your compiler bin directory;
-
"wxWidgetsRoot" - path to your wxWidgets root directory it points to "${workspaceFolder}\deps\wxWidgets" to make this template kind of "portable" change it if needed :);
-
"wxWidgetsMonoRoot" - the same as "wxWidgetsRoot" but all DLLs compiled into single file (use it if you want to link single library and forget about it :).
The .vscode/settings.json file contains settings for four build types x_64 Debug (monolitic and nonmonolitic) and x_64 Release (monolitic and nonmonolitic).
That is all - just open template directory with VSCode and happy coding :).
If you find bugs or want me to add something to this template - fell free to make bug report or pull request.